Hey All I'm working on some code that creates a modified version of QueryEngineHttp that allows me to control what Accept header I send for different kinds of SPARQL query and thus I have to modify the code that parses the responses to parse according to the received format. The problem I've encountered is that I can't find any way to automatically parse SPARQL Results based on content type.
For RDF formats I can do this with WebContent.contentTypeToLang() and then calling Model.read() and providing the language name derived from the Lang object I got For SPARQL Result formats I can't find any equivalent, there is a ResultsFormat.guessSyntax() but this only guesses based on file extension which is of no use to me. Is there some equivalent to my preceding example for SPARQL Result formats? Cheers, Rob ps. I will likely contribute this as a patch to ARQ at some point when I have it working reliably
