Open Public-Health-Bioinformatics opened 7 years ago
This situation can arise as well with erroneous annotation property definitions that reference object properties defined elsewhere, e.g.
<!-- http://purl.obolibrary.org/obo/RO_0002351 -->
<owl:AnnotationProperty rdf:about="http://purl.obolibrary.org/obo/RO_0002351"/>
Delete these. Happens when an object property or parent accidentally marked up as an annotation property.
What is happening is that OLS is loading the main ontology file probably using OWLAPI, and that has the weakness that annotatedTarget/Restriction/onProperty references, if they aren't defined, throw an error. Unfortunately the RO import isn't performed before this, or else the needed references would be found there. So main file has to have duplicates of ObjectProperty entries.
This happens when one annotates relations like "member of" RO_0002351 that an entity has in the OWL file. If the owl:onProperty RO_0002351 object property isn't defined in the genepio-edit.owl file directly, the error item will be created and displayed.
To fix, ensure that the appropriate object property is placed directly in genepio-edit.owl . Then the ontology parsing machinery can correctly annotate.
I've done this for latest GenEpiO to fix OLS display error.