Closed h-mayorquin closed 7 months ago
Well, in that case the error is pretty self explanatory: OWL files should contain an owl:Ontology
XML element with the ontology metadata, and that is not the case in the cogat.owl
file that you linked.
I'm pretty sure the COGAT ontology doesn't follow the OBO format, so this library is probably not what you want to parse it, consider using an OWL-specific library such as py-horned-owl
or owlready
.
Thanks for your response. That makes sense.
The following code:
Throws the error:
This is identifical to: https://github.com/althonos/pronto/issues/68
But I am pretty sure I am using a local file. I suspect that the file is too old, I downloaded it from here:
https://bioportal.bioontology.org/ontologies/COGAT?p=summary
(the latest owl version)
Maybe there is a problem with the file and in that case a more informative error could be delivered?