W3C home > Mailing lists > Public > public-rdf-dawg-comments@w3.org > October 2006

JSON from SPARQL for multiple assertions

From: conor325 <conor@the325project.org>
Date: Sat, 7 Oct 2006 13:34:43 -0700
Message-Id: <0E2F4138-03E1-4931-AFDB-219E96E2C136@the325project.org>
To: public-rdf-dawg-comments@w3.org

In the following:

_:a    ex:name   "Robert" .
_:a    ex:name   "Bobby" .

select ?name
where {?a ex:name ?name}

should the JSON output have a binding per name assertion or gather  
the name values in one binding? - one binding is much easier to  
process. If the values are gathered, should the literals be in one  
array or an array of values? In other words:

     "bindings": [
       {
         "name": { "type": "literal" , "value": "Robert" }
       } ,
       {
         "name": { "type": "literal" , "value": "Bobby" }
       } ,

		OR

     "bindings": [
       {
         "name": { "type": "literal" , "value": ["Bobby", "Robert"] }
       } ,
                    OR

     "bindings": [
       {
         "name": [{ "type": "literal" , "value": "Bobby" }, { "type":  
"literal" , "value": "Robert" }]
       } ,
Received on Saturday, 7 October 2006 20:34:52 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:14:50 GMT