Reputation: 6529
In my own application as well as in Protege, the OWL API adds definitions for things that an ontology mentions. This causes a large set of ontology files to become unmaintainable. The Financial Industry Business Ontology Team has moved away from the OWL API in their tooling for this reason. Is there a way to make the OWL API not define classes and properties that belong under the jurisdiction of another ontology file to a mentioning ontology file?
Upvotes: 0
Views: 75
Reputation: 10659
When saving an ontology, you can pass an OWLDocumentFormat
instance. It has a setAddMissingTypes(boolean)
method that allows you to disable adding missing declarations.
However missing declarations should be added only if no declaration is found in the imports closure, which, from your description, seems to not be the case. If you have an example of an ontology where this happens, I'd be happy to check whether it's a bug.
Upvotes: 1