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

Re: JSON-LD Java Implementation feedback.

From: Fabian Christ <christ.fabian@googlemail.com>
Date: Fri, 21 Oct 2011 08:10:09 +0200
Message-ID: <CA+_sZ+gHVsw-ngfWvLnW7pAVkbxm1gtS_TSi-DhO8RC1QOTnTA@mail.gmail.com>
To: Stephane Fellah <fellahst@gmail.com>
Cc: Gregg Kellogg <gregg@kellogg-assoc.com>, public-linked-json@w3.org
Hi,

I'm working on the JSON-LD serialization component in the Apache
Stanbol [1] incubating project and therefore I'm following this list.

In my implementation I'm trying to automatically guess short names for
properties. In cases where I get name clashes I have a fallback
mechanism to use the prefix variant.

Now, as I saw this, I thought yes, that would be nice to express in JSON-LD:

2011/10/20 Stephane Fellah <fellahst@gmail.com>:
>> PrefixMapping
> "@context": {
>     "@prefix" : {    // property namespace prefix mapping
>                          "foaf": "http://xmlns.com/foaf/0.1/"
>                      }
>     "@token" : {    // token is a property uri
>                          "name": "http://xmlns.com/foaf/0.1/name",  // can
> fully specified as iri
>                          "age"   : "foaf:age",    // or can leverage prefix
> mapping
>                          "homepage": "foaf:homepage"
>                      }
>     "@coerce": {
>                          "@iri": "homepage"
>                         "age" : "xsd:integer",
>                         "birthday" : "xsd:date"
>                      }
>   }
> }

I would be +1 for this.

[1] http://incubator.apache.org/stanbol/

Best
-- 
Fabian
http://twitter.com/fctwitt
Received on Friday, 21 October 2011 14:13:23 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:35 GMT