We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Item | |
Wooden Plank | |
Stick | |
Torch | |
Crafting Table | |
Furnace | |
Chest | |
Wood Pickaxe | |
Stone Pickaxe | |
Iron Pickaxe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyodbc as db | |
#Define Connection | |
cnxn = db.connect("DSN=Local Virtuoso;UID=username;PWD=password") | |
#Define Cursor | |
cursor = cnxn.cursor() | |
#Execute Query | |
cursor.execute('status()') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyodbc as db | |
cnxn = db.connect("DRIVER=OpenLink Virtuoso ODBC Driver; SERVER=localhost:1111;UID=username;PWD=password;WideAsUTF16=yes") | |
cursor = cnxn.cursor() | |
cursor.execute('status()') | |
row = cursor.fetchall() | |
if row: | |
print(row) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pyodbc as db | |
cnxn = db.connect("DRIVER=OpenLink Virtuoso ODBC Driver; SERVER=localhost:1111;UID=username;PWD=password;WideAsUTF16=yes") | |
cursor = cnxn.cursor() | |
cursor.execute('SPARQL SELECT * WHERE {?s ?p ?o} LIMIT 5') | |
row = cursor.fetchall() | |
if row: | |
print(row) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX dbr: <http://dbpedia.org/resource/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
prefix ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX dbo: <http://dbpedia.org/ontology/> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
SELECT DISTINCT | |
?actor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX dbr: <http://dbpedia.org/resource/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
prefix ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX dbo: <http://dbpedia.org/ontology/> | |
PREFIX p: <http://www.wikidata.org/prop/> | |
SELECT DISTINCT | |
?actor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Declare JDBC Connection URL and SPARQL-Within-SQL (SPASQL) Payload | |
WITH 'jdbc:openlink://ODBC/DSN=demo_db/UID=vdb/PWD=vdb' AS c, | |
" | |
SELECT * FROM demo.dbpedia_wikidata.query | |
" AS q | |
CALL apoc.load.jdbc(c,q) YIELD row | |
//Create Node for RDJ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE VIEW demo.dbpedia_wikidata.query | |
AS | |
( | |
SPARQL | |
PREFIX dbr: <http://dbpedia.org/resource/> | |
PREFIX wd: <http://www.wikidata.org/entity/> | |
PREFIX wdt: <http://www.wikidata.org/prop/direct/> | |
prefix ps: <http://www.wikidata.org/prop/statement/> | |
PREFIX pq: <http://www.wikidata.org/prop/qualifier/> | |
PREFIX dbo: <http://dbpedia.org/ontology/> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SELECT * | |
WHERE | |
{ | |
?company dbp:type <http://dbpedia.org/resource/Public_company>; | |
rdfs:label ?companyName; | |
dbo:industry dbr:Automobile; | |
dbo:product/rdfs:label ?product. | |
FILTER(lang(?companyName)= 'en' && lang(?product) = 'en'). | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE VIEW demo.dbpedia.company | |
AS | |
( | |
SPARQL | |
PREFIX dbr: <http://dbpedia.org/resource/> | |
PREFIX dbp: <http://dbpedia.org/property/> | |
PREFIX dbo: <http://dbpedia.org/ontology/> | |
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#> | |
SELECT * |
OlderNewer