Hi Dorian, Currently the Virtuoso SPARQL endpoint expects one value in this header and always prefers to use the ‘format’ url parameter. Development are working on a fix to allow such accept headers and I shall notify when it is available ...
Best Regards Hugh Williams Professional Services OpenLink Software, Inc. // http://www.openlinksw.com/ Weblog -- http://www.openlinksw.com/blogs/ LinkedIn -- http://www.linkedin.com/company/openlink-software/ Twitter -- http://twitter.com/OpenLink Google+ -- http://plus.google.com/100570109519069333827/ Facebook -- http://www.facebook.com/OpenLinkSoftware Universal Data Access, Integration, and Management Technology Providers On 27 Mar 2014, at 18:38, dorian taylor <dorian.taylor.li...@gmail.com> wrote: > Hi there, > > I'm in the process of fleshing out a SPARQL driver for an RDF library, > and I want it to be able to handle JSON, because its parser is by far > the fastest for the language in question. My strategy was to supply an > Accept: header which preferred JSON responses over others, but I ran > into a few issues: > > 1) There appear to be at least three different JSON arrangements for > CONSTRUCT responses, *plus* application/sparql-results+json. This is > problematic because the driver does not, nor will it contain a bona > fide SPARQL parser, and will thus have to rely on heuristics to tell > whether or not to expect a variable bindings response versus a graph. > Virtuoso (6.1.8) seems to prefer Talis-style JSON graph responses; if > I tell it to use JSON-LD, it will respond with the graph embedded into > application/sparql-results+json. > > 2) Virtuoso (6.1.8) does not seem to respect the q-values set in the > Accept: header much anyway, but it could just be that I didn't find a > set of values that tipped the scales against the source quality values > set for the given content types. > > My question is: is there a way to tweak the source quality values for > the different SPARQL response types? *Without* having to make > product-specific concessions in the driver? My goal is to make the > driver as generic as possible. > > Thanks, > > -- > Dorian Taylor > http://doriantaylor.com/ > > ------------------------------------------------------------------------------ > _______________________________________________ > Virtuoso-users mailing list > Virtuoso-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/virtuoso-users
------------------------------------------------------------------------------
_______________________________________________ Virtuoso-users mailing list Virtuoso-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/virtuoso-users