On 27/03/11 16:37, Anuj Kumar wrote:
Thanks Bob. Will take a look at it.

- Anuj

On Sun, Mar 27, 2011 at 7:14 PM, Bob DuCharme<[email protected]>  wrote:

is it better to go with SPARQL queries or Jena Inference mechanism?

You might want to look into SPIN, which provides a way to implement rules
using SPARQL CONSTRUCT and ASK queries: http://www.spinrdf.org/

Bob


On 3/26/2011 1:18 PM, Anuj Kumar wrote:

Hello Everyone,

I am trying some basic inferencing with Jena 2 Inference support and
following the tutorial given here: http://jena.sourceforge.net/inference/

There are some basic inferencing regarding the property of a resource and
its sub property in my TDB instance. I have loaded a set of triples into
TDB
and I am creating a model from the TDBFactory using the TDB database
location. The basic inferencing is taking longer time as compared to
SPARQL
queries. I have limited RAM of 2GB and just trying to compare the two
approaches.

Inferencing does take memory and time but it can be done once and the results stored, so query is done without recalculating.


What exactly is a better approach to do such inferencing? Also if you have
your own custom rules, is it better to go with SPARQL queries or Jena
Inference mechanism?

If you just have some RDFS, then riot.infer will, in a streaming fashion, expand the data once and for all. You can feed the output into the bulk loader.

        Andy

Reply via email to