Search code examples
javaontologyowlowl-api

Does the loadOntologyFromOntologyDocument method use reasoning when loading an ontology?


I'm wondering why it takes so long to load an ontology from an owl file hosted on my localhost. I use the method loadOntologyFromOntologyDocument(IRI iri) from the OWLOntologyManagerImpl class. Does the loading use any reasoning to check consistency? The owl files I'm loading aren't that big though. They contain about 200 classes.


Solution

  • The loadOntologyFromOntologyDocument() method doesn't do any type of reasoning, it just reads the file and loads the corresponding objects into the memory.

    As advised before, it's better to read the file directly from the disk and not loading it via a proxy server like localhost if possible, as it adds more complexity into the process and potentially degrades the performances (you could compare and report the loading times).