Re: JSON-LD serialization: performances?

2015-11-23 Thread François-Paul Servant
Hi Andy, again, you make very interesting remarks. > Le 23 nov. 2015 à 11:00, Andy Seaborne a écrit : > > On 22/11/15 14:17, François-Paul Servant wrote: >> Andy, >> >> I improved my test (running on the same file): several runs, RDFFormats >> variations… Results and code below (SSD disk, oth

Re: JSON-LD serialization: performances?

2015-11-23 Thread Andy Seaborne
On 22/11/15 14:17, François-Paul Servant wrote: Andy, I improved my test (running on the same file): several runs, RDFFormats variations… Results and code below (SSD disk, otherwise 5 years old mac powerbook) Main fact remains: JSON-LD serialization is slow (~10 times slower than turtle). But

Re: JSON-LD serialization: performances?

2015-11-23 Thread Rob Vesse
Francois As already pointed out Jena relies on a 3rd party library (java-jsonld) for JSON-LD support so performance is limited by 1) the need to translate Jena's data structures into data structures the java-jsonld understands and 2) the actual serialisation performance of the java-jsonld library

Re: JSON-LD serialization: performances?

2015-11-22 Thread Martynas Jusevičius
François-Paul, just to let you know, there's an alternative route: RDF/XML transformation to JSON-LD using XSLT: https://github.com/Graphity/graphity-client/blob/master/src/main/webapp/static/org/graphity/client/xsl/rdfxml2json-ld.xsl But I doubt it will be faster. On Sun, Nov 22, 2015 at 3:17 P

Re: JSON-LD serialization: performances?

2015-11-22 Thread François-Paul Servant
Andy, I improved my test (running on the same file): several runs, RDFFormats variations… Results and code below (SSD disk, otherwise 5 years old mac powerbook) Main fact remains: JSON-LD serialization is slow (~10 times slower than turtle). But people want JSON-LD. I think I’ll have a look at

Re: JSON-LD serialization: performances?

2015-11-21 Thread Andy Seaborne
On 21/11/15 01:28, François-Paul Servant wrote: Hi, it seems to me that JSON-LD serialization is slow. Do you have the same feeling? Here are the results of a comparative test that I run on my machine (outputing one model to a file, using Jena 3.0.1-SNAPSHOT) Are these single run costs? i.e.

JSON-LD serialization: performances?

2015-11-20 Thread François-Paul Servant
Hi, it seems to me that JSON-LD serialization is slow. Do you have the same feeling? Here are the results of a comparative test that I run on my machine (outputing one model to a file, using Jena 3.0.1-SNAPSHOT) model.size() 7559 JSON-LD TIME: 649 ms TURTLE TIME: 136 ms RDF/XML TIME: 548 ms N-TR