Skip to content

Commit 8e91f26

Browse files
committed
ignore type thing
1 parent 302c70e commit 8e91f26

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

examples/sparqlstore_example.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,14 @@
3333
dbo = Namespace("http://dbpedia.org/ontology/")
3434
dbr = Namespace("http://dbpedia.org/resource/")
3535

36-
# EXAMPLE Update Store 1:
37-
graph = Graph("SPARQLUpdateStore", identifier="http://dbpedia.org")
38-
graph.open(("http://localhost:3030/db/sparql", "http://localhost:3030/db/update"))
39-
graph.add((dbr.Berlin, dbo.populationTotal, Literal(3)))
40-
graph.add((dbr.Brisbane, dbo.populationTotal, Literal(2)))
41-
4236
# EXAMPLE Update Store 2:
4337
update_store = SPARQLUpdateStore(
4438
query_endpoint="http://localhost:3030/db/sparql",
4539
update_endpoint="http://localhost:3030/db/update",
4640
)
4741
graph = Graph(store=update_store, identifier="http://dbpedia.org")
42+
graph.add((dbr.Berlin, dbo.populationTotal, Literal(3)))
43+
graph.add((dbr.Brisbane, dbo.populationTotal, Literal(2)))
4844
graph.add((dbr["Category:Capitals_in_Europe"], RDF.type, SKOS.Concept))
4945
graph.add((dbr["Category:Holy_Grail"], RDF.type, SKOS.Concept))
5046
graph.add((dbr["Category:Hospital_ships_of_Japan"], RDF.type, SKOS.Concept))

0 commit comments

Comments
 (0)