Open knoan opened 9 years ago
does the sesame client prevent the request from specifying the media type which it actually wants?
Unfortunately there's no direct way to control the accepted type at the connection level: accepted types and quality values are centrally controlled by a static type registry.
As a last resort, it's possible to remove all but the required format from the registry, but that could have unintended consequences on other section of the code.
so, the only control is to specify the intent indirectly, through the quality factor?
Probably so and in a global way: 'accept' header generation is hardwired with no apparent way to override the global registry.
The source-quality attribute in 'Accept:' HTTP headers is currently ignored when choosing the response format for SPARQL requests.
If the client includes multiple 'Accept:' headers in the request like the following (transcript from an actual request generated from the Sesame 2.8 framework):
currently the last value (
text/csv
) is selected regardless of theq
parameter, which would implyapplication/sparql-results+xml
The issue breaks interoperability with the Sesame framework as the
text/csv
format doesn't include datatype information for returned RDF literals.