-
Notifications
You must be signed in to change notification settings - Fork 32
fix: status's range is string instead of uriorcurie
#263
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
Draft
Silvanoc
wants to merge
1
commit into
main
Choose a base branch
from
fix-status-slot
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
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
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.
Could we test this change against OWL generator?
While investigating linkml/linkml#3803 I tried this patch but found
OwlSchemaGenerator.add_metadata()is silently dropping status annotation from OWL output due to thisowlgen.pyconditionalThis skips metaslots whose URI falls back to the native linkml: namespace - and after deleting
slot_uri: bibo:status, the slot's URI becomeslinkml:status, and every element's status value vanishes from the generated OWL.https://github.com/linkml/linkml/blob/8e443f15faa4673acc3345923ea84199f73e7f50/packages/linkml/src/linkml/generators/owlgen.py#L379
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.
@noelmcloughlin it might be related with issue linkml/linkml#3752. Please give the attached PR a try.
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.
Seems different bug... let me clarify
this PR alone is problematic. After removing
slot_uri: bibo:status, slot's URI becomeslinkml:status, and every element (ArrayExpression, apply_to, range_expression, etc.) status value vanishes from generated OWL (on my branch, I confirmed zero "testing" occurrences in my output, versus ~32 bibo:testing triples using alternativeuriocurieapproach). So a sibling PR forowlgen.pyis needed to address falloutThere 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.
Hmm, this PR is not changing
statusitself, only itsrange. Since you have tried it out, I assume that the explanation is not precise, but the problematic effect exists.I'll switch this PR to
draftuntil I've clarified the situation and, it needed, provided the required sibling PR forowlgen.py.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.
@noelmcloughlin I've realized this issue trying to make
SchemaView.expand_curiestrict (trying to expand something that is neither a URI -no expansion needed- nor a CURIE -can be expanded) on PR linkml/linkml#3805 (specifically commit linkml/linkml@85fb0c9). Apparently this and that PRs are somehow coupled together.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.
yes, three lines in
owlgen.pyare coupled to this PRThere 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.
@noelmcloughlin Can you give me the link to a schema to reproduce the issue?
With the
kitchen_sink.yamlschema I cannot see any difference on how this spot behaves after the change in the model. I'm printing outmetaslot_curieand saving the output with and without the model change and I get exactly the same values.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.
The owlgen spot is about the slot URI, not about the value (what this patch changes), therefore I'm unsure if the diagnose is correct.