OWLAPI: how does import boot ontology work?

I have an ontology into which there is another ontology. I want to know how the OWLOntologyManager loadOntologyFromOntologyDocument(OWLOntologyDocumentSource documentSource, OWLOntologyLoaderConfiguration config) works internally. I used the OWLOntologyLoaderConfiguration class to handle Missing Imports (I want to know which import failed using the MissingImportListener class).

I can listen to missing imports. But if any of my ontology file has an import for a WEB resource, then the above method extracts it from its location. Is there a way so that I can restrict the call to the WEB resource and ask to download a copy that I have on my system?

For example, in the case where the BBC sports ontology loading method loads the following ontologies:

just like the opening of the BBC sports ontology at Protege.

+5
source share
1 answer

You can use AutoIRIMapper - create one by pointing to a folder containing local copies and add it to the manager before loading the ontology that you are after.

For ontologies available at a different address, use SimpleIRIMapper , which will act as a redirect from the source address to the new address.

+1
source

All Articles