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


Some problem with:

String query = "SELECT ?s ?p ?o WHERE {?s ?p ?o. FILTER(?s =<METEX://knowledge/infection> ).}"; QueryExecution qexec= QueryExecutionFactory.create(query, tmpModel);
        ResultSet rs = qexec.execSelect();

Is there a way or need to explicitly define a customized index?


Thorben

Reply via email to