Skip to content

Clarify difference between mapping_source and mapping_set_source #542

@cthoyt

Description

@cthoyt

The documentation for https://mapping-commons.github.io/sssom/dev/mapping_source/ says it takes an EntityReference and gives MONDO_MAPPINGS:mondo_exactmatch_ncit.sssom.tsv as an example

The mapping set this mapping was originally defined in. mapping_source is used for example when merging multiple mapping sets or deriving one mapping set from another.

Is this supposed to correspond to the mapping_set_id of the mapping set where it came from? This seems to be what the example implies. What should be done here when the mapping_set_id can't be easily compressed into a CURIE?

How does this match up to https://mapping-commons.github.io/sssom/dev/mapping_set_source/? This element is defined as a NonRelativeURI and can have multiple values. Its definition is

A mapping set or set of mapping set that was used to derive the mapping set.

This doesn't make sense to me - why are these fields named differently, why do they have different semantics (CURIE vs URI) and why is the first single valued but the second is multi-valued?

Further, should these slots have a propagatable relationship? Like if all mappings have the same source, shouldn't it get collapsed into a metadata-level element? This might not make sense because I do not understand the nuance between these two fields.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions