You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a problem with creating query engine object. It takes too much time to generate an object of query engine (around 1 minute). My code is below:
....
String path = "C:/Ontology/Test/Heart.owl";
try {
// Create OWLOntology instances using the OWLAPI
ontologyManager = OWLManager.createOWLOntologyManager();
File file = new File(path);
ontology = ontologyManager.loadOntologyFromOntologyDocument(file);
queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);
} catch (OWLOntologyCreationException e) {
e.printStackTrace();
}
It take more than one minute to execute the code: queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);
Are there any solutions to make it run faster?
Thank you,
Van
The text was updated successfully, but these errors were encountered:
I am having the exact same issue . The ontology is pretty small with 2 SWRL rules , but it still takes longer time to load .
OWLOntologyManager owlManager = OWLManager.createOWLOntologyManager();
OWLOntology ontology = owlManager
.loadOntologyFromOntologyDocument(fileStorageService.loadFileAsResource("test.owl").getFile());
// The below line takes long time to load although the file is pretty small.
return SWRLAPIFactory.createSQWRLQueryEngine(ontology);
Hi friends,
I have a problem with creating query engine object. It takes too much time to generate an object of query engine (around 1 minute). My code is below:
....
String path = "C:/Ontology/Test/Heart.owl";
try {
// Create OWLOntology instances using the OWLAPI
ontologyManager = OWLManager.createOWLOntologyManager();
File file = new File(path);
ontology = ontologyManager.loadOntologyFromOntologyDocument(file);
queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);
} catch (OWLOntologyCreationException e) {
e.printStackTrace();
}
It take more than one minute to execute the code: queryEngine = SWRLAPIFactory.createSQWRLQueryEngine(ontology);
Are there any solutions to make it run faster?
Thank you,
Van
The text was updated successfully, but these errors were encountered: