Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix BFO incompatibility #709

Merged
merged 3 commits into from
Jun 27, 2023
Merged

Fix BFO incompatibility #709

merged 3 commits into from
Jun 27, 2023

Conversation

gouttegd
Copy link
Collaborator

@gouttegd gouttegd commented Apr 3, 2023

This is another way of fixing #107, as an alternative to #707.

It keeps the manually curated copy of BFO (as components bfo-classes-minimal.owl and bfo-axioms.owl), but updates the definitions on some the classes to match the definitions used in the version of BFO that is published at purl.obolibrary.org/obo/bfo.owl, so as to avoid clashing definitions when importing RO and BFO in the same ontology. Original definitions in the bio-classes-minimal.owl component are turned into comments.

This is the least intrusive way of fixing #107.

The BFO components are also properly imported into the -edit file.

Replace custom definitions in some BFO classes by their original
(upstream-defined) versions. Move the custom definitions into comments
instead.

This avoids trigerring the "multiple definitions" QC violation when one
needs to import both RO (and the included BFO "minimal classes" subset)
and the upstream-provided BFO.
Make sure the BFO components (bfo-classes-minimal.owl and
bfo-axioms.owl) are imported into the -edit file, as they used to be
(indirectly, through ro-core) prior to the ODK migration.
@gouttegd gouttegd requested a review from matentzn April 3, 2023 18:23
@wdduncan
Copy link
Collaborator

@gouttegd Thanks for updating the definitions. I noticed that the editor notes and examples of usage are not being pulled into the component/import. E.g., see [material entity()https://ontobee.org/ontology/BFO?iri=http://purl.obolibrary.org/obo/BFO_0000040) on Ontobee.
Having these annotations helps clarify the meaning, although, I suppose a case could be case for not including them.

However, I think it would be helpful include the http://www.w3.org/2000/01/rdf-schema#isDefinedBy: http://purl.obolibrary.org/obo/bfo.owl annotation. There has been discussion in OBO about how to manage IRIs that migrate to be managed by another ontology. For example part of has a BFO namespace, but (as far as I know) it is now managed by RO.

Copy link
Contributor

@matentzn matentzn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great, lets do this for sure

@gouttegd
Copy link
Collaborator Author

The conflicts with the current master branch are easy to fix, but the master branch is currently broken since #672, so I’d rather wait until it is fixed (which should be done with #731) before fixing the conflicts here.

@wdduncan
Copy link
Collaborator

There are many annotations mismatches that are breaking things. I don't know what the right way to fix all these are. I didn't implement the annotation qc checks that are causing issues (e.g., dc vs dcterms).

@gouttegd gouttegd merged commit 8545d35 into master Jun 27, 2023
1 check passed
@gouttegd gouttegd deleted the fix-bfo-incompatibility branch June 27, 2023 11:36
This was referenced Jun 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants