Skip to content

Instantly share code, notes, and snippets.

@iand
Created June 10, 2011 15:29
Show Gist options
  • Select an option

  • Save iand/1019058 to your computer and use it in GitHub Desktop.

Select an option

Save iand/1019058 to your computer and use it in GitHub Desktop.
Command line util for extracting RDFa from a page
#!/usr/bin/python
import sys
import rdflib
g = rdflib.Graph()
g.parse(sys.argv[1], format="rdfa")
print g.serialize(format="turtle")
@danmux

danmux commented Jun 10, 2011

Copy link
Copy Markdown

freaky - just about to post a gist - and you are the last person to post one :) coincydink

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment