Hi Ivan, We have tested ASK queries again with the latest virtuoso snapshot : * 20090916*. As mentioned in the previous mails of this topic, the expected accept header for ASK queries should be *application/sparql-results+xml*. See http://www.w3.org/TR/rdf-sparql-XMLres/#boolean-results for more information.
Our test case is very simple : We query virtuoso endpoint with an html form with a "method" argument set to POST. The *accept* parameter of the form is set to "application/sparql-results+xml". - With virtuoso 5.0.9 the returned value is valid : <?xml version="1.0" ?> <sparql xmlns="http://www.w3.org/2005/sparql-results#" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation=" http://www.w3.org/2001/sw/DataAccess/rf1/result2.xsd"> <head></head> <boolean>false</boolean> </sparql> - With the latest virtuoso snapshot however only a string value is returned : "false" Moreover, we've tested the same query from a java application using jena with both 5.0.9 and 20090916 versions. In the first case the result value is correct and returns false as expected. But, in the second case, the returned value is *true* !! which is wrong ! There must be an issue with the virtuoso jena provider when it wraps the value returned by the virtuoso endpoint. In this case it should instead throw an exception as the result format is not valid. On our side the tests are failing and this issue is a blocking one. Could you please confirm this behavior ? Regards, Jonathan 2009/9/16 Maxime Aimetti <[email protected]> > Hi Ivan, > > I would like to know if you have any news on that topic. Please let us know > if the Open Source tree has been patched, otherwise any idea when it may be > available? We would like to upgrade as soon as possible our 5.0.9 > configuration, and this issue is a showstopper for us. > > Thanks in advance for your update. > > Regards, > Maxime > > > > > ---------- Forwarded message ---------- > From: Ivan Mikhailov <[email protected]> > Date: Fri, Aug 21, 2009 at 6:56 PM > Subject: Re: [Virtuoso-devel] Result format with ASK queries > To: Jonathan Dray <[email protected]> > Cc: Peter Ansell <[email protected]>, > [email protected], Maxime Aimetti <[email protected]>, > Laurent Bihanic <[email protected]>, Alexandre Bertails < > [email protected]> > > > Hello Jonathan, > > I'm now re-testing all output formatting issues in a batch, because I'm > adding an "accurate" support for NTriples. So I should have a big patch > early next week that will cover issues with ASK, NTriples and weird > ordering of some result sets. As usual, patched version will first > appear in closed CVS tree and become available as a patch, then Virtuoso > Open Source tree will be patched. > > Best Regards, > > Ivan Mikhailov > OpenLink Software > http://virtuoso.openlinksw.com > > On Tue, 2009-08-18 at 12:18 +0200, Jonathan Dray wrote: > > Hi Peter, > > > > Sorry, this is a typo. > > The value of the accept header was indeed application/sparql-results > > +xml > > > > Thanks for pointing this out. > > > > Now after reading the w3c recommendation on Sparql query resuls XML > > formats, it seems that "application/sparql-results+xml" is a valid > > accept header when the result format is of type Boolean. > > Which is the case for ask queries. > > > > It now makes me feel we are facing a virtuoso bug. > > > > Regards, > > Jonathan Dray. > > > > >
