gjhiggins/rdflib — Issue #140: Does not handle application/xhtml+xml
Author: gjhiggins
Created: 2011-10-19 01:29:56+00:00
State: open

Originally filed by vfaronov on 2010-09-18T22:29:30

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/