I have ontology which has another ontology imported in it. I want to know how OWLOntologyManager
's loadOntologyFromOntologyDocument(OWLOntologyDocumentSource documentSource, OWLOntologyLoaderConfiguration config)
works internally.
I have used OWLOntologyLoaderConfiguration
class to handle the Missing Imports (want to know which import fails with help of MissingImportListener
class).
I am able to listen the missing imports. But if any of my ontology file having import for WEB resource then above method fetches it from its location. Is there any way so that I can restrict the call for WEB resource and asks to load the copy which I have in my system ?
e.g In case of BBC's sport ontology loading method loads following ontologies internally :
- http://purl.org/NET/c4dm/event.owl
- FOAF (http://xmlns.com/foaf/0.1/)
- Time (http://www.w3.org/2006/time)
just like opening BBC's sport ontology inside Protege.