gjhiggins/rdflib — Issue #96: lax rdfa parser - when html5 parser missing, please suggest the exact library needed  
Author: gjhiggins
Created: 2011-10-19 01:19:35+00:00
State: open

Originally filed by danbrick...@gmail.com on 2009-12-29T13:38:25

(sudo) easy_install html5lib ... worked for me, but I had to figure out
which library it wanted first.

g = rdflib.graph.ConjunctiveGraph().parse('http://example.org/foo/',
format='rdfa', lax=True)

gave 'rdflib.syntax.parsers.rdfa.RDFaError: XHTML Parsing error in input
file: not well-formed (invalid token): line 104, column 600. Though parsing
is lax, HTML5 parser not available'
as an error message. The library name 'html5lib' is worth mentioning;
perhaps also a reminder about 'easy_install'?