W3C home > Mailing lists > Public > public-rdf-wg@w3.org > April 2011

Re: [JSON] JSON Serializations Lineup (ACTION-20)

From: Steve Harris <steve.harris@garlik.com>
Date: Tue, 5 Apr 2011 16:15:38 +0100
Cc: RDF WG <public-rdf-wg@w3.org>, Hannes Mühleisen <hannes@muehleisen.org>
Message-Id: <5A455BA6-AA4F-4034-84C8-380DE5163B2C@garlik.com>
To: Thomas Steiner <tomac@google.com>
On 2011-04-05, at 14:18, Thomas Steiner wrote:

> Dear all,
> 
> In (hopefully) fulfillment of ACTION-20 [1], please find my JSON
> serializations lineup at [2]. It contains one relatively interesting
> sample graph [3] serialized as far as possible in the following
> formats: Linked Data API,
> JRON, JSN3, JSON-LD (CURIEs), JSON-LD (terms), JTriples, RDF/JSON,
> RDFj, SPARQL Query Results in JSON, Flat triples approach to RDF
> graphs in JSON.

Thanks Thomas, that's very helpful.

However, it looks like the sample data in [3] is a simple tree. Is it possible to add some more triples to it so that it expresses more of RDF graph nature? e.g. loops, diamonds, repeated references etc.

Something like:

<http://jondoe.example.org/#me> :address _:addr .
<http://janedoe.example.org/#me> :address _:addr .

_:addr :street "1 Some Street" ;
       :postcode "W1A 1AA" ;
       :city "The Metrop" ;
       :inhabitant <http://jondoe.example.org/#me>, <http://janedoe.example.org/#me> .

- Steve

> It is the product of one long-haul flight and a long-haul train ride,
> the prior accompanied by Hannes Mühleisen (CC'ed, thanks for your
> help), and some sanity checks from Nathan, Manu, and Sandro (thanks,
> too). There will probably still be some bugs in there, but all JSON
> has been "linted" and in most cases double-checked. If you are a spec
> author of one of the serializations, feel free to check for
> correctness and please fix potential bugs. Concentration went down a
> little after t = t_airborne + 7 ;-)
> 
> I'll present some of my findings at the F2F during the JSON
> presentation after Matteo. Most (all?) of hit has been covered by
> Nathan's _excellent_ syntax options write-up [4] way before my work.
> 
> Cheers,
> Tom
> 
> [1] http://www.w3.org/2011/rdf-wg/track/actions/20
> [2] http://www.w3.org/2011/rdf-wg/wiki/JSON-Serialization-Examples#JSON_Serializations_Lineup
> [3] http://www.w3.org/2011/rdf-wg/wiki/JSON-Serialization-Examples#Shared_Example_for_Serialization_Lineup_.28Turtle.29
> [4] http://www.w3.org/2011/rdf-wg/wiki/JSON_Syntax_Options
> 
> -- 
> Thomas Steiner, Research Scientist, Google Inc.
> http://blog.tomayac.com, http://twitter.com/tomayac
> 

-- 
Steve Harris, CTO, Garlik Limited
1-3 Halford Road, Richmond, TW10 6AW, UK
+44 20 8439 8203  http://www.garlik.com/
Registered in England and Wales 535 7233 VAT # 849 0517 11
Registered office: Thames House, Portsmouth Road, Esher, Surrey, KT10 9AD
Received on Tuesday, 5 April 2011 15:16:14 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:41 GMT