MappingSet
- class MappingSet(*, purl: str | None = None, name: str, version: str | None = None, license: str | None = None, confidence: float = 1.0)[source]
Bases:
BaseModel,ConfidenceMixin,KeyedMixin[(),MappingSetKey]Represents a set of semantic mappings.
For example, this might correspond to:
All the mappings extracted from an ontology
All the mappings published with a database
All the mappings inferred by SeMRA based on a given configuration
Mostly corresponds to the concept of a SSSOM mapping set, documented in https://mapping-commons.github.io/sssom/MappingSet.
There are the following optional fields:
namepurl(not optional if you’re writing to SSSOM)versionlicenseconfidence
Create a new model by parsing and validating input data from keyword arguments.
Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.
self is explicitly positional-only to allow self as a field name.
Attributes Summary
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Summary
Get the explicit confidence for the mapping set.
key()Get a picklable key representing the mapping set.
Attributes Documentation
- model_config: ClassVar[ConfigDict] = {'frozen': True}
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].
Methods Documentation
- key() MappingSetKey[source]
Get a picklable key representing the mapping set.