On 27/08/14 11:58, Benson Margulies wrote:
Smile is the binary format for Json that comes in Jackson. Since the
transformation from RDF to Json is pretty simple, it occurred to me to
wonder how well that stack would, well, stack up.

Oh, that SMILE :-)

I haven't tried for this but its going to need encoding RDF terms into binary JSON (c.f. RDF/JSON or JSON-LD or SPARQL Result in JSON) which adds a layer of complexity to the process. I'd guess it's going to be a measurable time cost as more java objects being churned to do the parsing, bytes->JOSN java object, JSON java object to Jena Nodes/Triples.

RDF Thrift takes the string directly off the wire and builds Jena RDF objects. The encoding puts the RDF terms directly onto the wire with little overhead.

A nice feature of RDF Thrift files for graphs and datasets is that they can be concatented like N-triples files. JSON structures can't.

The converse is possible - there is a JSON version of Apache Thrift so that could be SMILE'ed. Seems like a lot of layers though.

        Andy



On Wed, Aug 27, 2014 at 6:23 AM, Andy Seaborne <[email protected]> wrote:
On 27/08/14 11:16, Benson Margulies wrote:

I'm curious if you compared this to SMILE.


Reference?

I wrote a comparison of RDF HDT, Sesame's binary format and RDF Thrift:

http://lists.w3.org/Archives/Public/semantic-web/2014Aug/0049.html

Summary:
1/ Dictionaries blow up for scale
2/ Using Thrift means it's much less work to implement.

         Andy


Reply via email to