summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorAshley Sommer <ashleysommer@gmail.com>2020-08-27 14:45:45 +1000
committerAshley Sommer <ashleysommer@gmail.com>2020-08-27 14:45:45 +1000
commitfbc091208fbf95c338ead7be7547136f5c3433cc (patch)
tree58e74adbf7fd96257ca5e17c34f50398a7b469e9 /examples
parent466518ed6f74b6cef3b79aa8a917be3c7184284a (diff)
parentaa527747bd6a5e48ea19463c483f5fb45c7ea230 (diff)
downloadrdflib-fbc091208fbf95c338ead7be7547136f5c3433cc.tar.gz
Merge remote-tracking branch 'origin/master' into t0b3_master
# Conflicts: # rdflib/namespace.py # rdflib/parser.py # rdflib/plugins/memory.py # rdflib/plugins/parsers/ntriples.py # test/test_iomemory.py
Diffstat (limited to 'examples')
-rw-r--r--examples/conjunctive_graphs.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/examples/conjunctive_graphs.py b/examples/conjunctive_graphs.py
index f714d9ff..289046ec 100644
--- a/examples/conjunctive_graphs.py
+++ b/examples/conjunctive_graphs.py
@@ -10,7 +10,7 @@ conjunction (union) of all the graphs.
from rdflib import Namespace, Literal, URIRef
from rdflib.graph import Graph, ConjunctiveGraph
-from rdflib.plugins.memory import IOMemory
+from rdflib.plugins.stores.memory import Memory
if __name__ == "__main__":
@@ -22,7 +22,7 @@ if __name__ == "__main__":
cmary = URIRef("http://love.com/lovers/mary")
cjohn = URIRef("http://love.com/lovers/john")
- store = IOMemory()
+ store = Memory()
g = ConjunctiveGraph(store=store)
g.bind("love", ns)
@@ -33,7 +33,7 @@ if __name__ == "__main__":
gmary.add((mary, ns["hasName"], Literal("Mary")))
gmary.add((mary, ns["loves"], john))
- # add a graph for Mary's facts to the Conjunctive Graph
+ # add a graph for John's facts to the Conjunctive Graph
gjohn = Graph(store=store, identifier=cjohn)
# John's graph contains his cute name
gjohn.add((john, ns["hasCuteName"], Literal("Johnny Boy")))