Re: Format of SPARQL Update results

On 23 Dec 2010, at 10:28, Andy Seaborne wrote:

> 
> 
> On 23/12/10 10:20, Steve Harris wrote:
>> On 2010-12-23, at 10:07, Alexandre Passant wrote:
>> 
>>> Hi,
>>> 
>>> Reading the discussion about JSON serialization of query results, I figured out that we don't have a proper format for results of SPARQL Update queries.
>>> Since we agreed to send only success / failure as a result, I suggest to use the boolean return form (as for ASK) with true / false values depending on the success / failure (so that it does not require updates to the XML / JSON result formats).
>>> 
>>> I don't think we need a formal vote for that, but if anyone objects or have other opinions, please let me know.
>>> If not, I'll include that to the next round of publishing.
>> 
>> Due to user requests we added some text along the lines of "12 triples added, 7 removed" in the response to a SPARQL Update requests in 5store. So, whatever format is specified, I'd like to be able to include some human readable text somewhere.
>> 
>> Worst case it can go in a XML comment, but that's not ideal.
>> 
>> - Steve
>> 
> 
> The query protocol uses HTTP status codes.  200 for success , 400 for parse error and 500 for execution problems or any other appropriate HTTP status code.
> 
> We could define the update protocol similarly, then leave the body content, if any, to implementations. c.f. query parse error messages.

That would be ok, but what if one is using SPARQL Update without HTTP calls, e.g. a command-line client ?
Or maybe we could extend the results with a "comment" field in the header (in addition to the current "link" one)

Alex.

> 
> 	Andy
> 

--
Dr. Alexandre Passant
Digital Enterprise Research Institute
National University of Ireland, Galway
:me owl:sameAs <http://apassant.net/alex> .

Received on Thursday, 23 December 2010 10:33:02 UTC