W3C home > Mailing lists > Public > public-esw-thes@w3.org > April 2012

Re: JSON serialization of SKOS data

From: Christophe Dupriez <dupriez@destin.be>
Date: Thu, 26 Apr 2012 17:44:04 +0200
Message-ID: <4F996D44.6030501@destin.be>
To: Stéphane Corlosquet <scorlosquet@gmail.com>
CC: SKOS <public-esw-thes@w3.org>
Cher Stéphane, Merci!

The JSON-LD "Compact Mode" seems near from what I need with just what 
also allows to regenerate the original RDF.
I have now to analyze how to integrate this in the middle of my 
SKOS/POJO, SKOS/XML marshaller, RDF production JSP, Abdera AtomPub 
Server (alouette...) so not to build a "Gaz Plant".
More seriously, I need a Java serializer (JSON.parse() unserializes...) 
for my POJO beans modelled on the SKOS terminology (for instance Concept 
class with getPrefLabel method returning a List of Term with Language 
and Label). I suppose JSON-LD is made for RDF and that I have to find 
instead a kind of JAXB for JSON and adapt its output to make it 
compatible with JSON-LD?

I see ( http://blog.bdoughan.com/2011/04/jaxb-and-json-via-jettison.html 
) that |org.codehaus.|Jettison is just that but missing the "@context"...
If you have idea to have the best of both world!

Bonne fin de journée!

Christophe Dupriez
@ChristopheDupri (10 tweets a week)


Le 26/04/2012 15:05, Stéphane Corlosquet a écrit :
> Hi Christophe,
>
> Are you aware of the work being done in the JSON-LD group? If you have 
> your SKOS data available as RDF, you can serialize it in JSON-LD and 
> use it in javascript for example. JSON-LD has several ways of modeling 
> the serialized JSON output: compacted, expanded, normalized, and 
> framed. See some example at [1]. I'm cc'ing a couple of people 
> involved in JSON-LD, I'm sure they'll be able to give more advice.
>
> Steph.
>
> [1] http://json-ld.org/playground/
>
> On Thu, Apr 26, 2012 at 7:52 AM, Christophe Dupriez 
> <christophe.dupriez@destin.be <mailto:christophe.dupriez@destin.be>> 
> wrote:
>
>     Does anyone could guide me toward in depth work already done
>     toward defining a JSON serialization of basic SKOS data
>     (i.e. without necessity to support subclassing).
>     For now, my idea would be to consider every SKOS property as a
>     member of a Concept object in JavaScript.
>     In a way, a "DOM" for SKOS !
>
>     My goal is to publish a "standard" JSON from ASKOSI.org to make
>     SKOS data available to JavaScript applications.
>
>     Thanks in advance for any pointer!
>
>     Christophe
>
>     P.S. Anybody participating to Europeana Hackatons? I will try to
>     participate in Leuven this mid-June... Should be fun!
>
>
Received on Thursday, 26 April 2012 15:44:29 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Thursday, 26 April 2012 15:44:29 GMT