RDFLib/rdflib — Issue #131: Does not handle application/xhtml+xml
Author: gjhiggins
Created: 2012-02-20 08:33:26+00:00
State: open

vfaronov, 2010-09-18T22:29:30.000Z

application/xhtml+xml is the official Internet media type for XHTML documents[1]. RDFLib's Graph.parse should automatically choose the RDFa parser for entities of this type, like it does for text/html. The attached patch fixes this.

(In theory, such documents could also contain RDF/XML markup, but RDFa is a much more reasonable default.)

[1] http://www.w3.org/TR/xhtml-media-types/

Comment 1 by ed.summers

Comment 2 by ed.summers
This issue was closed by revision r1896.

Comment 3 by ed.summers
This issue was closed by revision 855dc6446448.