Re: Agenda: Linked JSON Telecon - Tuesday, July 26th 2011

Hi,

Since I won't be able to attend the telco, some input on point 4

On Sun, Jul 24, 2011 at 9:09 PM, Manu Sporny <msporny@digitalbazaar.com> wrote:

> 4. Overriding default JSON-SD keywords

Regarding the override of @, could it be URI-less in the JSON, using
@base to URI-fy it ?

e.g.

"@context" {
  "id" : "@",
  "base" : "http://example.org/",
  "name" : "http://example.org/name"
}

in the data:

{
  'id' : 'foobar#id',
  'name' : 'xxx'
}

would translate to

<http://example.org/foobar#id> <http://example.org/name> "xxx" .

(maybe that's already the case ?)

Also, ideally, a base_prepend / base_hash keyword could be added for #uris, e.g

"@context" {
  "id" : "@",
  "base" : "http://example.org/",
  "base_prepend" : "#id",
  "base_hash" : "id",
  "name" : "http://example.org/name"
}

and data would be

{
'id' : 'foobar'
'name' : 'xxx'
}

This makes the JSON even more readable IMO - no URIs, nor need to add
the # in the ID.

m2c

Alex.




>
> -- manu
>
> --
> Manu Sporny (skype: msporny, twitter: manusporny)
> Founder/CEO - Digital Bazaar, Inc.
> blog: Uber Comparison of RDFa, Microformats and Microdata
> http://manu.sporny.org/2011/uber-comparison-rdfa-md-uf/
>
>



-- 
Dr. Alexandre Passant - @terraces
Founder, CEO - seevl.net - @seevl
Reinventing Music Discovery

Received on Tuesday, 26 July 2011 10:48:03 UTC