Skip to content

Instantly share code, notes, and snippets.

@edsu
Created December 10, 2008 14:16
Show Gist options
  • Save edsu/34334 to your computer and use it in GitHub Desktop.
Save edsu/34334 to your computer and use it in GitHub Desktop.
import rdflib
FOAF = rdflib.Namespace('http://xmlns.com/foaf/0.1/')
g = rdflib.ConjunctiveGraph()
g.parse('http://inkdroid.org/ehs')
for person, jabber_id in g.subject_objects(FOAF['jabberID']):
print "%s has jabber ID %s" % (person, jabber_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment