W3C home > Mailing lists > Public > public-linked-json@w3.org > July 2011

Re: About @type, @ and other tokens

From: glenn mcdonald <glenn@furia.com>
Date: Fri, 8 Jul 2011 11:45:39 -0400
Message-ID: <CAHNbrUuB-bvP_BugyggAcKNjFNU5bi1h6LV2raCdzB_sH+AWJg@mail.gmail.com>
To: Alexandre Passant <alex@seevl.net>
Cc: public-linked-json@w3.org
Yes, this is obviously also more in the spirit of applying context to
existing JSON.

On Fri, Jul 8, 2011 at 11:07 AM, Alexandre Passant <alex@seevl.net> wrote:

> Hi all,
>
> Regarding the "@source instead of @" and "@type instead of a" issues
> on the current spec.
> I'd favor a way to let this be defined in a context, in addition to
> the default value.
>
> E.g.
>
> {
>  "@context":
>  {
>     "#tokens":
>     {
>       "@" : "uri",
>       "@type" : "type"
>     }
>  }
> }
>
> so then I can use
>
> {
>   "uri" : "http://example.org/alex",
>   "type: : "foaf:Person"
> }
>
> I will make the spec more flexible as allowing people to use the
> naming they prefer - while keeping the RDF similar.
>
> Alex.
>
> --
> Dr. Alexandre Passant - @terraces
> Founder, CEO - seevl.net - @seevl
> Reinventing Music Discovery
>
Received on Friday, 8 July 2011 15:46:26 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:53:17 UTC