summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorgjhiggins <devnull@localhost>2009-05-15 13:53:41 +0000
committergjhiggins <devnull@localhost>2009-05-15 13:53:41 +0000
commit31176384acd1bf692f0244aa5f5ea761e0f566b0 (patch)
tree8b34ee191f9f1062f1c9fa34148d07f4afdb439e /examples
parent43abac0901e15f96db68b16f1613d39d29e52da5 (diff)
downloadrdflib-31176384acd1bf692f0244aa5f5ea761e0f566b0.tar.gz
Update import statements
Diffstat (limited to 'examples')
-rw-r--r--examples/example.py4
-rw-r--r--examples/swap_primer.py4
2 files changed, 6 insertions, 2 deletions
diff --git a/examples/example.py b/examples/example.py
index 747d995a..c1e808fc 100644
--- a/examples/example.py
+++ b/examples/example.py
@@ -8,8 +8,8 @@ _hdlr.setFormatter(logging.Formatter('%(name)s %(levelname)s: %(message)s'))
_logger.addHandler(_hdlr)
from rdflib.graph import Graph
-from rdflib import URIRef, Literal, BNode, Namespace
-from rdflib import RDF
+from rdflib.term import URIRef, Literal, BNode
+from rdflib.namespace import Namespace, RDF
store = Graph()
diff --git a/examples/swap_primer.py b/examples/swap_primer.py
index 123814f1..cc88bc0d 100644
--- a/examples/swap_primer.py
+++ b/examples/swap_primer.py
@@ -8,6 +8,10 @@
# Load up RDFLib
from rdflib import *
+from rdflib.graph import ConjunctiveGraph
+from rdflib.namespace import Namespace
+from rdflib.term import URIRef
+from rdflib.parser import StringInputSource
# Firstly, it doesn't have to be so complex.
# Here we create a "Graph" of our work.