Am 24.10.2011 18:11, schrieb Thorben Wallmeyer:
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... ;-)


Best,

Thorben

I've just tried it this way, but it results in the same problem:

iter = tmpModel.listStatements(new SimpleSelector(resource, null, (RDFNode) null));

Reply via email to