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

About @type, @ and other tokens

From: Alexandre Passant <alex@seevl.net>
Date: Fri, 8 Jul 2011 16:07:30 +0100
Message-ID: <CALF6uC=oekLU5f5G0twy7VT_q6Y4ruQcU9WNj-taKN+KDiLywQ@mail.gmail.com>
To: public-linked-json@w3.org
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:08:06 UTC

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