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: Wed, 6 Apr 2011 12:34:29 +0100
Cc: RDF WG <public-rdf-wg@w3.org>, Hannes Mühleisen <hannes@muehleisen.org>
Message-Id: <A4973895-776B-4991-ADBA-9A43EF1710D5@garlik.com>
To: Thomas Steiner <tomac@google.com>
On 2011-04-05, at 16:35, Thomas Steiner wrote:

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

Yes, absolutely. It's not obvious to someone who hasn't worked with those formats how to do references — they're not used in the examples.

I think Andy's sample graph had these features, but not the one you used to base the example on.

- Steve

-- 
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 Wednesday, 6 April 2011 11:35:01 GMT

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