[OTDev] Experiments with RDF

Nina Jeliazkova jeliazkova.nina at gmail.com
Wed Oct 6 18:58:31 CEST 2010


Egon,

Thanks for the pointers.


On Wed, Oct 6, 2010 at 4:29 PM, Egon Willighagen <egon.willighagen at gmail.com
> wrote:

> Nina,
>
> On Wed, Oct 6, 2010 at 3:24 PM, Nina Jeliazkova
> <jeliazkova.nina at gmail.com> wrote:
> > Has anybody tried/ can recommend how to serialize/read RDF objects
> to/from
> > JSON ?  Would be nice to compare with RDF/XML.
>
> I have not had time to test it, but here are some options:
>
>
> http://www.semanticoverflow.com/questions/1506/how-can-i-use-jena-to-serialize-rdf-in-the-json-syntax
>


@All

Using   http://code.google.com/p/linked-data-api for RDF JSON serialization
is quite straightforward and the dataset resource output looks like .

Datasets are now available in JSON as well, via Accept header
application/json.

curl -H "Accept:application/json" '
http://ambit.uni-plovdiv.bg:8080/ambit2/dataset/9?page=0&pagesize=1000' 1>
9.json

curl -H "Accept:application/json" '
http://apps.ideaconsult.net:8080/ambit2/dataset/9?page=0&pagesize=1000' 1>
9.json

It seems there is not much difference neither in file size, nor in response
time, but I havent' done enough measurements to be sure.

Also, I am not sure the right mime type should be "application/json" - how
does one tell between different json contents?

Best regards,
Nina


> Egon
>
> --
> Dr E.L. Willighagen
> Homepage: http://egonw.github.com/
> LinkedIn: http://se.linkedin.com/in/egonw
> Blog: http://chem-bla-ics.blogspot.com/
> PubList: http://www.citeulike.org/user/egonw/tag/papers
> _______________________________________________
> Development mailing list
> Development at opentox.org
> http://www.opentox.org/mailman/listinfo/development
>



More information about the Development mailing list