kasei/perlrdf — Issue #32: Hidden requirement RDF::RDFa::Parser
Author: nichtich
Created: 2011-11-02 11:34:25+00:00
State: open

I got some trouble with `RDF::Trine::Parser::RDFa`, which adds html to the list `$RDF::Trine::Parser::file_extensions`, and `$RDF::Trine::Parser::media_types` as if it would always provide an RDFa parser. Without having installed `RDF::RDFa::Parser`, however, creating a `RDF::Trine::Parser::RDFa` instance will always fail. For instance if i use the method `parse_url_into_model` from `RDF::Trine::Parser`, the HTTP request will contain html as media type in the `Accept` header, although my client cannot parse RDFa. I'd suggest that all RDF::Trine::Parser::* modules should only register in `$RDF::Trine::Parser::file_extensions`, and `$RDF::Trine::Parser::media_types`, if they can successfully operate.