- From: Gregg Kellogg <gregg@greggkellogg.net>
- Date: Thu, 26 Apr 2012 13:03:41 -0400
- To: Christophe Dupriez <dupriez@destin.be>
- CC: Stéphane Corlosquet <scorlosquet@gmail.com>, SKOS <public-esw-thes@w3.org>, "public-linked-json@w3.org JSON" <public-linked-json@w3.org>
On Apr 26, 2012, at 9:18 AM, Stéphane Corlosquet wrote: > From: Christophe Dupriez <dupriez@destin.be> > Date: Thu, Apr 26, 2012 at 11:44 AM > Subject: Re: JSON serialization of SKOS data > 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? Just to clarify, JSON-LD is not "made for RDF", but does include some facilities to go back and forth between RDF and JSON-LD. There are four implementations of JSON-LD which pretty much support what you want to do (JavaScript, PHP, Python and Ruby). Probably the best way to get started is using the "fromRDF" api call to get from an RDF graph into JSON-LD expanded form, and then compact or frame to make the structure of the JSON-LD match your needs. There's also a java implementation (https://github.com/tristan/jsonld-java), which may also implement many of the calls you need, but I don't have any direct experience with it. The group on the JSON-LD mailing list (http://lists.w3.org/Archives/Public/public-linked-json/) is quite active and can help to address your use cases. Gregg > 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> 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 17:04:33 UTC