On 25/02/12 14:03, Damian Steer wrote:

On 25 Feb 2012, at 04:11, Osman, Taha wrote:

Hi,

Hi Taha,

Apologies for the brief reply.

  we were
surprised that Jena TDB's (0.8.10) response time was extremely slow in
general and did not return any results (Java runs out of heap space) for
all the UOBM queries even while using the least expressive RDFS reasoning.
Can you shed light on the matter?


and here is how we fire the queries:

Model jenaModel = TDBFactory.createModel(rootDirPath + repoName);
InfModel jenaInfModel = ModelFactory.createRDFSModel(jenaModel);

Here's the problem.  You're not really testing TDB here, but TDB with an 
in-memory reasoner on top. This will also prevent TDB optimising queries, and 
use heap space that TDB wouldn't.

IIRC the TDB loader has an option to perform RDFS reasoning as you load. That 
should work much better.

The command is riot.infer


Damian

and then using the bulkloader is faster that reading in through the API.

        Andy

Reply via email to