W3C home > Mailing lists > Public > public-rdf-wg@w3.org > December 2013

Re: RDF 1.1 Primer

From: Pierre-Antoine Champin <pierre-antoine.champin@liris.cnrs.fr>
Date: Wed, 4 Dec 2013 18:47:17 +0100
Message-ID: <CA+OuRR9qphJd9DoM2AeXOO+4ogZmXmQ_xMggC=w79TMRCQE_Vg@mail.gmail.com>
To: Yves Raimond <yves.raimond@bbc.co.uk>
Cc: Guus Schreiber <guus.schreiber@vu.nl>, RDF WG <public-rdf-wg@w3.org>
Hi Yves,

On Wed, Dec 4, 2013 at 6:21 PM, Yves Raimond <yves.raimond@bbc.co.uk> wrote:

> [snip]

One quick question - any
> reason for mapping uri to @id instead of just reusing @id?
>

JSON attributes like @id and @type are quite unusual, as they are not as
easy as others to handle in Javascript (and other languages) : you cannot
acces them as obj.@id (syntactially incorrect), only as obj["@id"].

So idiomatic JSON will typically not have this kind of attribute natively.

  pa


> Best,
> Yves
> >
> >
> >  best
> >
> >   pa
> >
> >
>
>
>
> -----------------------------
> http://www.bbc.co.uk
> This e-mail (and any attachments) is confidential and
> may contain personal views which are not the views of the BBC unless
> specifically stated.
> If you have received it in
> error, please delete it from your system.
> Do not use, copy or disclose the
> information in any way nor act in reliance on it and notify the sender
> immediately.
> Please note that the BBC monitors e-mails
> sent or received.
> Further communication will signify your consent to
> this.
> -----------------------------
>
Received on Wednesday, 4 December 2013 17:47:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 17:04:36 UTC