You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resolves [#477]
This PR 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.
The spec is updated to explain how mappings involved `sssom:NoTermFound`
should 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:
* 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
---------
Co-authored-by: Nico Matentzoglu <[email protected]>
Co-authored-by: Emily Hartley <[email protected]>
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,7 @@
14
14
- Change all URI-typed slots to clarify that they expect _non-relative_ URIs as values ([issue](https://github.com/mapping-commons/sssom/issues/448)).
15
15
- Add `curation_rule` and `curation_rule_text` to the `MappingSet` class and made propagatable ([issue](https://github.com/mapping-commons/sssom/issues/464)).
SUBJ:0001skos:exactMatchsssom:NoTermFoundsemapv:ManualMappingCurationSRC:ASRC:B1:0S1 in vocabulary A has no exact match in vocabulary B
9
+
SUBJ:0001skos:closeMatchOBJ:0001semapv:ManualMappingCurationSRC:ASRC:B1:1S1 mapped only to O1, O1 mapped only to S1 -- the record involving sssom:NoTermFound does not count, as it is an absence of match rather than an actual mapping
10
+
sssom:NoTermFoundskos:exactMatchOBJ:0002semapv:ManualMappingCurationSRC:CSRC:D0:1O2 in vocabulary D has no exact match in vocabulary C
11
+
sssom:NoTermFoundskos:exactMatchsssom:NoTermFoundsemapv:ManualMappingCurationSRC:ESRC:F0:0No exact match between any term from vocabulary E and any term for vocabulary F (in other words, the two vocabularies are completely disjoint, at least as far as exact matches are considered)
Copy file name to clipboardExpand all lines: src/docs/spec-model.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -128,7 +128,7 @@ The `sssom:NoTermFound` value MUST NOT be used in any other slot than `subject_i
128
128
129
129
The meaning of the NOT predicate modifier in a mapping that refers to `sssom:NoTermFound` is unspecified.
130
130
131
-
When computing cardinality values (to fill the `mapping_cardinality` slot), mappings that refer to `sssom:NoTermFound` MUST be ignored.
131
+
When computing cardinality values (to fill the `mapping_cardinality` slot): (1) a mapping record with a `object_id` (respectively `subject_id`) of `sssom:NoTermFound` MUST be assigned a cardinality value of `1:0` (respectively `0:1`), regardless of any other record; (2) a mapping record with both the `subject_id` and the `object_id` set to `sssom:NoTermFound` MUST be assigned a cardinality value of `0:0`, regardless of any other record; (3) such records MUST be ignored when computing the cardinality of other records.
132
132
133
133
134
134
## Mapping cardinality and cardinality scope
@@ -288,3 +288,4 @@ Not all changes can be annotated thusly in the LinkML model, though. For changes
288
288
* The type of the `see_also` slot has been changed to `sssom:NonRelativeURI`. When parsing a SSSOM 1.0 set, implementations SHOULD accept arbitrary string values in that slot.
289
289
* All slots that were typed as `xsd:anyURI` have been re-typed as `sssom:NonRelativeURI`. When parsing a SSSOM 1.0 set, implementations SHOULD accept relative URI values in those slots.
290
290
* The `curation_rule` and `curation_rule_text` slots which previously only existed on the `Mapping` class, have been added to the `MappingSet` class. Both slots have now been typed [propagatable](#propagation-of-mapping-set-slots).
291
+
* A new value `0:0` has been added to the `mapping_cardinality_enum`.
0 commit comments