Created
December 20, 2009 05:28
-
-
Save edsu/260361 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
""" | |
Extract some RDF from O'Reilly's not well-formed Book Catalog RDFa. | |
""" | |
from rdflib.graph import ConjunctiveGraph | |
g = ConjunctiveGraph() | |
g.parse('http://oreilly.com/catalog/9780596516499/', format='rdfa', lax=True) | |
print g.serialize() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment