Skip to content

Commit de228d8

Browse files
authored
Allow using similarity_measure at the set level. (#412)
We add the `similarity_measure` slot to the MappingSet class, as a propagatable slot. It should be quite common that all `similarity_score` for all mappings in a set are determined using the same measure, so it makes sense to allow setting the measure once and for all at the set level, without having to repeat that information for all individual mappings. closes #411
1 parent 06eb9ad commit de228d8

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
- Add `composed entity expression` as a new value in the `EntityType` enumeration ([issue](https://github.com/mapping-commons/sssom/issues/402)).
66
- Add `predicate_type` slot (previously defined but unused) to the `Mapping` and `MappingSet` classes ([issue](https://github.com/mapping-commons/sssom/issues/404)).
7+
- Add `similarity_measure` slot to the `MappingSet` class ([issue](https://github.com/mapping-commons/sssom/issues/411)).
78
- TBD
89

910
## SSSOM version 1.0.0

src/docs/spec-model.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,8 @@ For convenience, here is the current list of propagatable slots:
5757
* `subject_source`,
5858
* `subject_source_version`,
5959
* `subject_type`,
60-
* `predicate_type`.
60+
* `predicate_type`,
61+
* `similarity_measure`.
6162

6263
When a mapping set object has a value in one of its propagatable slots, this MUST be interpreted as if all mappings within the set had that same value in their corresponding slot. For example, if a set has the value _foo_ in its `mapping_tool` slot, all the mappings in that set MUST be treated as if they had the value _foo_ in their `mapping_tool` slot.
6364

src/sssom_schema/schema/sssom_schema.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,7 @@ slots:
235235
see_also:
236236
- https://github.com/mapping-commons/sssom/issues/143
237237
- https://github.com/mapping-commons/sssom/blob/master/examples/schema/predicate-types.sssom.tsv
238+
instantiates: sssom:Propagatable
238239
annotations:
239240
propagated: true
240241
examples:
@@ -643,6 +644,9 @@ slots:
643644
To make processing this field as unambiguous as possible, we recommend using
644645
wikidata CURIEs, but the type of this field is deliberately unspecified.
645646
range: string
647+
instantiates: sssom:Propagatable
648+
annotations:
649+
propagated: true
646650
examples:
647651
- value: https://www.wikidata.org/entity/Q865360
648652
description: the Wikidata IRI for the Jaccard index measure).
@@ -740,6 +744,7 @@ classes:
740744
- object_match_field
741745
- subject_preprocessing
742746
- object_preprocessing
747+
- similarity_measure
743748
- see_also
744749
- issue_tracker
745750
- other

0 commit comments

Comments
 (0)