-
Notifications
You must be signed in to change notification settings - Fork 15
Fix support for literal mappings. #624
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
Merged
gouttegd
merged 1 commit into
mapping-commons:master
from
gouttegd:fix-literal-mapping-check
Oct 6, 2025
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| #curie_map: | ||
| # FBcv: http://purl.obolibrary.org/obo/FBcv_ | ||
| # ORCID: https://orcid.org/ | ||
| # obo: http://purl.obolibrary.org/obo/ | ||
| #mapping_set_id: http://purl.obolibrary.org/obo/fbcv/agr-vocabs.sssom.tsv | ||
| #mapping_set_description: Mappings between the FlyBase Controlled Vocabulary (FBcv) and vocabulary terms from the Alliance of Genome Resources. | ||
| #creator_id: | ||
| # - ORCID:0000-0002-6095-8718 | ||
| #license: https://creativecommons.org/licenses/by/4.0/ | ||
| subject_id subject_label predicate_id object_label object_category mapping_justification subject_source object_type | ||
| FBcv:0000222 male skos:exactMatch male Genetic Sex semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0000334 female skos:exactMatch female Genetic Sex semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003124 species study skos:exactMatch species Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003125 strain study skos:exactMatch genome variation Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003127 developmental stage study skos:exactMatch developmental stage Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003128 circadian rhythm study skos:narrowMatch time of day Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003129 cell cycle study skos:exactMatch cell cycle Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003130 tissue type study skos:narrowMatch anatomical structure Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal | ||
| FBcv:0003131 cell type study skos:exactMatch cell type Data Set Category Tags semapv:ManualMappingCuration obo:fbcv.owl rdfs literal |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: As strange as it may look like, this is the normal way of comparing LinkML-defined enum values.
A comparison like this:
would not work because
EntityTypeEnum["rdfs literal"]is not the actual enum value, it is the LinkML PermissibleValue object that represents the enum value (that’s not the same thing!). We must give that value to theEntityTypeEnumconstructor to obtain an actual enum value that we can compare to the value of the slot.See here for details, and here for a request for an easier way of working with LinkML enums.
(Of course in our case this is make even weirder by the fact that our enum values contain space characters, and LinkML does not allow to distinguish between the actual value to be used in data and the symbol used in Python code.)