Created
June 10, 2011 15:29
-
-
Save iand/1019058 to your computer and use it in GitHub Desktop.
Command line util for extracting RDFa from a page
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/python | |
import sys | |
import rdflib | |
g = rdflib.Graph() | |
g.parse(sys.argv[1], format="rdfa") | |
print g.serialize(format="turtle") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
freaky - just about to post a gist - and you are the last person to post one :) coincydink