gjhiggins/rdflib — Issue #95: rdfa parser fails on not well-formed xhtml from a URL
Author: gjhiggins
Created: 2011-10-19 01:19:27+00:00
State: closed
Labels: Type-Defect

Originally filed by ed.summers on 2009-12-20T05:11:36

I noticed that Ivan's RDFa Distiller (which uses pyRDFa, the code that
rdflib's RDFa implementation was pulled from) is able to parse the new RDFa
at O'Reilly:

http://www.w3.org/2007/08/pyRdfa/extract?
uri=http://oreilly.com/catalog/9780596516499/

However, rdflib isn't able to extract any triples:

graph = ConjunctiveGraph()
graph.parse(location='http://oreilly.com/catalog/9780596516499/',
format='rdfa')
print len(graph)

This prints 0 instead of 77 triples.