-
Notifications
You must be signed in to change notification settings - Fork 28
Add 0:0 special cardinality value.
#480
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
Conversation
This commit adds a new cardinality value of `0:0`, to be used for mapping records where both the `subject_id` and the `object_id` are sssom:NoTermFound. Such records are allowed and may be used to represent the fact that there is no overlap between a subject vocabulary and an object vocabulary. We also try to explain a bit more what the different cardinality values mean exactly, and provide two examples: * one that illustrates all possible cardinality values between real mappings (1:1, 1:n, n:1, n:n); * one that illustrates the special cases where the subject_id and/or the object_id is sssom:NoTermFound. closes #477
977dbfc to
909d2af
Compare
matentzn
left a comment
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.
Looks great to me, some minor comments, let me know what you think.
Co-authored-by: Nico Matentzoglu <[email protected]>
matentzn
left a comment
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.
Looks great! Thanks a ton!
ehartley
left a comment
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.
There is one minor typo, but otherwise everything looks good!
Co-authored-by: Emily Hartley <[email protected]>
Resolves [#477]
docs/have been added/updated if necessarymake testhas been run locallyIf you are proposing a change to the SSSOM metadata model, you must
examples/see_alsofield of the linkml modelsrc/docs/spec-models.md) accordinglyThis PR adds a new cardinality value of
0:0, to be used for mapping records where both thesubject_idand theobject_idaresssom:NoTermFound. Such records are allowed and may be used to represent the fact that there is no overlap between a subject vocabulary and an object vocabulary.The spec is updated to explain how mappings involved
sssom:NoTermFoundshould be handled when computing cardinality values.We also try to explain a bit more what the different cardinality values mean exactly, and provide two examples:
closes #477