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

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

From: Thomas Steiner <tomac@google.com>
Date: Tue, 5 Apr 2011 17:35:04 +0200
Message-ID: <BANLkTinRpviWT-qdSkA3pYoUkyqcaR9nYw@mail.gmail.com>
To: Steve Harris <steve.harris@garlik.com>
Cc: RDF WG <public-rdf-wg@w3.org>, Hannes Mühleisen <hannes@muehleisen.org>
Hi Steve,

> 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> .

This doesn't sound like a big problem (BTW, was this on the sample
graph Wiki? [1]). None of the serializations enforces inlining, so
shared/circular references can be realized just as you did in your
mark-up above in JSON using the particular blank node or node
referencing mechanics of each serialization, which is shown in, e.g.,
the foaf:knows part. Does this respond to your doubt?


[1] http://lists.w3.org/Archives/Public/public-rdf-wg/2011Mar/0533.html

Thomas Steiner, Research Scientist, Google Inc.
http://blog.tomayac.com, http://twitter.com/tomayac
Received on Tuesday, 5 April 2011 15:35:50 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 22:01:58 UTC