Open ktk opened 8 years ago
Possible solutions:
Easy solution (efficient but requires config):
Other solution:
text/html
has a q-value of 1, return HTMLHEAD
request to SPARQL endpoint with unmodified accept header. If the value of the content-type
header of the response is media type of a higher q-value than HTML, do non-html processing. Otherwise do HTML processing
Currently one does not get any triples back from Trifid-LD when using
rapper
from Redland RDF Libraries. I filed an issue for rapper: http://bugs.librdf.org/mantis/view.php?id=590 (text taken from there):Rapper currently (2.0.14) seems to send the following Accept header:
This works fine as long as RDF/XML is supported by the server. However, if the server only serves Turtle or NTriples, the server will answer to that with HTML before a RDF serialization.
RDF/XML is no longer supported by all servers out there so I would propose to give Turtle and NTriples a higher priority than HTML to make sure we get RDF back if it is supported by the server.
Dave answered with a question:
Redland is still quite popular so I would like to know if we do something wrong or if Redland needs to adjust its request. I'm a bit lost here, maybe @retog could have a look at that and compare it with content-negotiation specs?