Re: Call for issues and comment on JSON result format

On 21/12/10 17:08, Gregory Williams wrote:
> On Dec 14, 2010, at 8:22 AM, Andy Seaborne wrote:
>
>> This message is collect any issues and comments on the DAWG Note:
>>
>> "Serializing SPARQL Query Results in JSON"
>> http://www.w3.org/TR/rdf-sparql-json-res/
>>
>> Please reply to this message with any issues on this Note within one week so we can assess the practical implications of taking this through to REC as part of this working group.
>
> I wanted to ask whether there'd be any support for adding JSONP[1] to the json results format. This would probably also involve the Protocol doc. It would allow easier use of sparql from within browsers.

I don't see anything to add to the JSON result doc (the results format) 
- did you have anything specific in mind?

> I'm not sure how prevalent support currently is, but I believe both ARC and Joseki currently implement JSONP.

Joseki (and Fuseki, the in-development successor) provide it with the 
parameter name "callback" (Yahoo! 
http://developer.yahoo.com/javascript/json.html)

add ?callback=FUNCTION and ask for JSON, and it comes back

FUNCTION({... json results ...})

	Andy

> .greg
>
> [1] http://en.wikipedia.org/wiki/JSON#JSONP
>
>

Received on Tuesday, 21 December 2010 21:31:15 UTC