Re: RDF/JSON

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