I have a "core" ontology (core.owl) in which I import a separated online ontology (imports.owl) using Protégé, ending up with a declaration in header
<Import>https://raw.githubusercontent.com/...../imports.owl</Import>
Some classes are found both in core.owl and in imports.owl, to structure the final hierarchy. Unfortunately in both ontologies they also include annotations (such as rdfs:label) resulting in the duplication of a number of annotations in the final ontology, which is no good (for example, violates the OBO profile) and is what I'd like to solve.
Could anyone suggest methods to:
- identify classes in both ontologies
- remove all annotations those classes have in the core.owl ontology