obophenotype / upheno-dev

Framework for the automated construction of uPheno 2.0
MIT License
5 stars 5 forks source link

PLANA_0007536 is both a property and a class/individual #33

Open marius-mather opened 2 years ago

marius-mather commented 2 years ago

I've been attempting to use the uPheno 2 OWL file (http://purl.obolibrary.org/obo/upheno/v2/upheno.owl) with the owlready2 Python library. Attempting to load the ontology gives an error:

TypeError: 'http://purl.obolibrary.org/obo/PLANA_0007536' belongs to more than one entity types (cannot be both a property and a class/an individual)!

owlready2 does not support entities having more than one type. I realise this may not be an issue for other tools, but would there way be a way to handle this entity so that the ontology can be used by tools with this restriction?

matentzn commented 2 years ago

We will talk about this in our meeting. In this case, this may even be a bug in the planarian anatomy ontology @srobb1 but generally, this is not illegal! You can have an individual be both at the same time.