Skip to content

Instantly share code, notes, and snippets.

@edsu
Created June 11, 2013 14:02
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/5757093 to your computer and use it in GitHub Desktop.
Save edsu/5757093 to your computer and use it in GitHub Desktop.
.-(ed@prajna 09:57:59) ~
`-->python
Python 2.7.2 (default, Oct 11 2012, 20:14:37)
[GCC 4.2.1 Compatible Apple Clang 4.0 (tags/Apple/clang-418.0.60)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import rdflib
>>> g = rdflib.Graph()
>>> g.parse('http://www.bbc.co.uk/news/world-us-canada-22857062')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/Library/Python/2.7/site-packages/rdflib/graph.py", line 1002, in parse
parser.parse(source, self, **args)
File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/structureddata.py", line 268, in parse
vocab_cache=vocab_cache)
File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/structureddata.py", line 148, in _process
_check_error(processor_graph)
File "/Library/Python/2.7/site-packages/rdflib/plugins/parsers/structureddata.py", line 57, in _check_error
raise Exception("RDFa parsing Error! %s" % msg)
Exception: RDFa parsing Error!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment