ncbo / owlapi_wrapper

A command line utility that wraps the Java OWL-API to parse RDFS, OWL and OBO ontologies.
5 stars 9 forks source link

Check Version IRI for versioning OWL ontologies #11

Open jvendetti opened 4 years ago

jvendetti commented 4 years ago

When determining the version number for OWL format ontologies, the current code uses the owl:versionInfo annotation property:

https://github.com/ncbo/owlapi_wrapper/blob/1d2ab90a9a6db0540d6756d1ebae2ca7a304a4f2/src/main/java/org/stanford/ncbo/oapiwrapper/OntologyParser.java#L165

This was the standard location for storing version numbers in OWL 1 ontologies, but in OWL 2 the standard is Version IRI:

https://www.w3.org/TR/owl2-syntax/#Ontology_IRI_and_Version_IRI

Code should perhaps be modified to favor Version IRI, then versionInfo as a fallback.

See also: https://github.com/ncbo/bioportal-project/issues/168

paolaroncaglia commented 3 years ago

Please see also https://github.com/ncbo/bioportal-project/issues/168#issuecomment-926705174, thanks.