Skip to content

Take too much time to create SQWRL Query Engine #6

@vanlot

Description

@vanlot

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions