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

Re: Practical J-Triples from SPARQL JSON results

From: Danny Ayers <danny.ayers@gmail.com>
Date: Fri, 2 Sep 2011 12:40:32 +0200
Message-ID: <CAM=Pv=TM1Ln5jGhVJPm4CiFgyfYUvCXhyPbYY5Za0ZQat5c4EQ@mail.gmail.com>
To: Linked JSON <public-linked-json@w3.org>
Cc: Andy Seaborne <andy.seaborne@gmail.com>
I've knocked together a serializer into this format for Jena for
experimentation:

https://github.com/danja/Scute/blob/master/src/org/hyperdata/scute/rdf/ModelToJSON.java

(Needs Jena libs for compile & run)
There's a little script to run it to convert RDF/XML (rdfxml2jt) and
some sample data in:

https://github.com/danja/Scute/tree/master/misc

I've only tried it on a couple of files - it fails on timbl's FOAF due
I think to an char encoding issue (not sure if that's due to the
source data or my choice of methods), haven't got time to look into it
now.

Anyhow it seems to have passed the "easy to serialize" test.

Cheers,
Danny.

-- 
http://dannyayers.com
Received on Friday, 2 September 2011 10:41:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:32 UTC