Wednesday, December 28, 2011

Introduction to RDFLib


>>> import rdflib
>>> from rdflib import ConjunctiveGraph
>>> graph = ConjunctiveGraph()
>>> graph.parse("http://semantictweet.com/ecolix")
)>
>>> for triple in graph:
...    print triple