W3C home > Mailing lists > Public > public-cwm-talk@w3.org > April to June 2010

swap-scala inference, Jena and testing

From: Danny Ayers <danny.ayers@gmail.com>
Date: Wed, 28 Apr 2010 10:07:10 +0200
Message-ID: <w2o1f2ed5cd1004280107p822a0915xf04bc4576e51b22f@mail.gmail.com>
To: Dan Connolly <connolly@w3.org>
Cc: public-cwm-talk@w3.org
Hi Dan,

Great to see your recent blog posts about this project [1] - although
I'm reasonably familiar with Python, in the past I've found the
original swap code a wee bit opaque to grok what's going on.

Anyhow, just a thought - for testing e.g. RDFS inference it should be
straightforward to strap in Jena libs (and associated tests) to your
Scala code - Jena has pretty sophisticated & mature inference
capabilities [2].

I found it fairly trivial to reuse Jena libs in Scala, as in [3]
(using a TDB store, heavy use of SPARQL - alas my code is still mostly
Java written in Scala syntax rather than using Scala idioms - lot of
learning to do :)

Incidentally, not sure what you'll make of map/territory in Jena
(seems a little blurred, but works ok pragmatically - hmm, surely when
represented in code everything is "map" anyway..?):
public interface Resource
extends RDFNode
RDFNode -
Interface covering RDF resources and literals. Allows probing whether
a node is a literal/[blank, URI]resource, moving nodes from model to
model, and viewing them as different Java types using the .as()


[1] http://code.google.com/p/swap-scala/
[2] http://jena.sourceforge.net/inference/
[3] http://www.knowledgeforge.net/project/gradino/

Received on Wednesday, 28 April 2010 08:07:48 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:01:06 UTC