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

Lightweight Java RDF libraries

From: Norman Gray <norman@astro.gla.ac.uk>
Date: Mon, 12 Sep 2011 12:39:41 +0100
Message-Id: <FE20F89F-5595-463A-9CD2-A7FFBA4F529D@astro.gla.ac.uk>
To: Linking Open Data <public-lod@w3.org>


Can anyone point me towards a simple/lightweight Java RDF library?

Here, I mean 'lightweight' in the sense of having a small API, rather than a small jar, because if one is trying to persuade people that RDF is a useful and practical thing, then hauling out a manual which could crush a small donkey is a difficult place to start.  I want an RDF gateway drug^Wlibrary.

All I really want to be able to (demonstrate I can) do is to read and write RDF/XML and Turtle, create triples, and iterate through a graph.   Simple inference I wouldn't say no to, but wouldn't need; and SPARQL would be unnecessary for the scope and userbase I have in mind.

Ideally, I'd like to be able to say "here is a little jar to put on your classpath, and here is a webpage with a few examples which make simple things simple; have fun".

Jena I've used a lot, and like, but ... well, see remarks about maltreated donkeys above.  Sesame I've used less, but it's still a four-types-of-batteries included solution.

JRDF <http://jrdf.sourceforge.net/> is I think intended to be small, but looking at its documentation, it seems to have become fuller-featured over time.  Also, it's marked as 'inactive', which is nudging one away from using it for new projects.

rdf2go looks attractive, and seems to be aimed in part at the same semweb-sceptical userbase.  But as an abstraction layer over other triple stores, it fails my 'one jar' goal.

I imagine it would be possible to try to extract some some sort of bare-bones Jena subset, but I can't help thinking that would be quite a lot of work (I haven't looked at the feasibility in any detail).

Yes, disk space is cheap, and yes, I can' just write a "primer for sceptics" set of examples, but if there's a bare-bones librarylet knocking around, that I haven't found, then I'd like to use it, and I imagine the LOD list would know of it.

Thanks for any pointers.

All the best,


Norman Gray  :  http://nxg.me.uk
SUPA School of Physics and Astronomy, University of Glasgow, UK
Received on Monday, 12 September 2011 11:40:12 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:16:16 UTC