althonos / pronto

A Python frontend to (Open Biomedical) Ontologies.
https://pronto.readthedocs.io
MIT License
226 stars 47 forks source link

NotImplementedWarning: cannot process plain `owl:AnnotationProperty` cls(self).parse_from(_handle) # type: ignore #198

Open CarMoreno opened 1 year ago

CarMoreno commented 1 year ago

Firstly, thank you very much for this amazing library to manage ontologies!. I have been testing it for a couple of weeks, using the ChEBI ontology in two representations: OBO and OWL and all looks going well. However, I have a doubt regarding a warning that I got using OWL representation.

When the library loads the ontology, I get

NotImplementedWarning: cannot process plain `owl:AnnotationProperty` cls(self).parse_from(_handle) # type: ignore

So, I would like to understand why the warning appears only for OWL. I am not an expert in ontologies and I want to be sure that the library is not skipping details or important information.

Thank you.

amstilp commented 1 year ago

I'm getting the same warning when reading the DUO ontology file: https://github.com/EBISPOT/DUO/blob/master/duo-basic.owl