On Mon, 2011-10-24 at 18:11 +0200, Thorben Wallmeyer wrote: 
> Hi,
> 
> I've got an OntModel with OnModelSpec.OWL_MEM_RULE_INF set that contains 
> about 25.000 statements and only 1(!) transitive property. Now I'm 
> trying to list all Statements with a special subject (http://myResource) 
> by calling
> 
> StmtIterator iter = 
> model.listStatements(model.createResource("http://myResource";), null, 
> (RDFNode) null);
> 
> Although execution of this method does not take a long time (some 
> seconds) I run in serious trouble/performance issue when calling
> 
> iter.hasNext();
> 
> This call does not terminate within 5 minutes and I'm asking myself if 
> what's wrong. Therefore I'm looking for better solution and your 
> suggestions... ;-)

The inference engine is taking a long time, that's all :)

Try with OWL_MICRO or switch to Pellet.

Dave


Reply via email to