- From: Danny Ayers <danny.ayers@gmail.com>
- Date: Fri, 2 Sep 2011 01:31:20 +0200
- To: Markus Lanthaler <markus.lanthaler@gmx.net>
- Cc: Linked JSON <public-linked-json@w3.org>
On 2 September 2011 00:52, Markus Lanthaler <markus.lanthaler@gmx.net> wrote:
> In JSON-LD you could serialize this as:
>
> [
> {
> "@subject": "http://hyperdata.org/seki/Hello",
> "http://purl.org/dc/elements/1.1/date": "2011-08-30T19:00Z"
> },
> {
> "@subject": "http://hyperdata.org/seki/Hello",
> "http://xmlns.com/foaf/0.1/maker": {
> "@iri": "http://dannyayers.com/me#"
> }
> }
> ]
Right, that nicely highlights the difference in approach. I believe
N-Triples was designed to be as easy as possible to serialize and
parse, so it's minimal in terms of specification, has a flat structure
and there are no abbreviations/shortcuts etc. The SPARQL
results-derived format is probably about as close to this as you can
get in JSON while supporting intuitive Javascript access paths.
JSON-LD adds structure and maps shortcuts for URIs - closer in spirit
to Turtle I suppose.
Cheers,
Danny.
--
http://dannyayers.com
Received on Thursday, 1 September 2011 23:31:49 UTC