W3C home > Mailing lists > Public > semantic-web@w3.org > September 2007

Re: RDF/JSON

From: Danny Ayers <danny.ayers@gmail.com>
Date: Tue, 11 Sep 2007 11:42:14 +0100
Message-ID: <1f2ed5cd0709110342h3a62f843l9d6e94fcf8be58a2@mail.gmail.com>
To: semantic-web@w3.org
Cc: n2-dev@googlegroups.com

Apologies if this came up already, but it just occurred to me that
there probably a JSON/RDF format already implied by a W3C Note:

Serializing SPARQL Query Results with JSON
http://www.w3.org/TR/rdf-sparql-json-res/

the graph serialization being the result of:

select  ?subject ?predicate ?object
where {  ?subject ?predicate ?object }

example (which I got from http://sparql.org/query.html ):

{
  "head": {
    "vars": [ "subject" , "predicate" , "object" ]
  } ,
  "results": {
    "bindings": [
      {
        "subject": { "type": "uri" , "value":
"http://example.org/book/book7" } ,
        "predicate": { "type": "uri" , "value":
"http://purl.org/dc/elements/1.1/title" } ,
        "object": { "type": "literal" , "value": "Harry Potter and the
Deathly Hallows" }
      } ,
...
    ]
  }
}

It'd be nice for SPARQL results and JSON/RDF viewers/processors to
have whatever interop is available, so I'd suggest that an obligatory
task with anyone proposing a new JSON/RDF format would be to write
converters to/from SPARQL results...

Cheers,
Danny.

-- 

http://dannyayers.com
Received on Tuesday, 11 September 2007 10:42:18 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 07:41:59 UTC