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

Update foreign SSSOM sets from the ontology. #3415

Merged
merged 3 commits into from
Nov 11, 2024

Conversation

gouttegd
Copy link
Collaborator

This PR amends the rules that refresh the externally maintained SSSOM mapping sets (the FBbt set and the Biomappings set) to include a step that check those sets against the current version of the ontology to

(1) remove any mapping to a Uberon entity that does not exist or is deprecated;
(2) add any missing label, using the labels found in the ontology.

This necessitates, as a preliminary:

(1) making sure we are using ODK 1.5.3, as previous versions do not include a recent enough version of SSSOM-Java;
(2) removing a bogus empty xml:base attribute in the XML catalog, that prevents sssom-cli from reading it.

The `group` element in the XML catalog contains a `xml:base` attribute
with an empty value (`xml:base=""`). It is unclear whether an empty
value is legal (though the XML Base specification [1] does not seem to
explicitly forbid it), but in any case it does not make any sense, and
some XML Catalog parsers barf upon encountering such an attribute. So
here we simply remove it.

This has (as expected) no effect on the parsing of the catalog by both
Protégé and ROBOT.

[1] https://www.w3.org/TR/xmlbase/
When importing an externally maintained SSSOM set (the FBbt mapping set
and the Biomappings set), check them against Uberon to

(1) remove any mapping to an Uberon entity that does not exist or is
deprecated, and

(2) add any missing label for Uberon entities.
Recent changes in the SSSOM pipelines require SSSOM-CLI's
`--update-from-ontology` option which was added in SSSOM-Java 0.7.9,
which itself was included in ODK 1.5.3.
src/ontology/uberon.Makefile Show resolved Hide resolved
@gouttegd gouttegd merged commit 2f8ec39 into master Nov 11, 2024
1 check passed
@gouttegd gouttegd deleted the update-foreign-sssom-set-from-ontology branch November 11, 2024 15:02
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.

2 participants