Return to Snippet

Revision: 21884
at December 22, 2009 15:43 by magicrebirth


Initial Code
import rdflib


from rdflib.Graph import Graph
g = Graph()

myfile = "/Users/mac/Code/Java/Jena-2.3/doc/inference/data/demoData.rdf"
g.parse(myfile, format="xml")

print "the lenght of the graph is: ", len(g)

for st in g:
    print st

Initial URL


Initial Description


Initial Title
Open an RDF graph

Initial Tags


Initial Language
Python