Skip to content

Instantly share code, notes, and snippets.

@edsu
Created July 21, 2009 15:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save edsu/151393 to your computer and use it in GitHub Desktop.
Save edsu/151393 to your computer and use it in GitHub Desktop.
import rdflib
from rdflib import ConjunctiveGraph, URIRef
g = ConjunctiveGraph()
g.add((URIRef('/foo'), URIRef('/bar'), URIRef('/baz')))
g.serialize(base="http://example.com", include_base=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment