MappingSet

class MappingSet(*, id: AnyUrl, confidence: Annotated[float | None, Ge(ge=0.0), Le(le=1.0)] = None, description: str | None = None, source: list[AnyUrl] | None = None, title: str | None = None, version: str | None = None, publication_date: date | None = None, see_also: list[AnyUrl] | None = None, other: str | None = None, comment: str | None = None, sssom_version: str | None = None, license: AnyUrl | None = None, issue_tracker: AnyUrl | None = None, extension_definitions: list[ExtensionDefinition] | None = None, creators: list[Reference] | None = None, creator_label: list[str] | None = None)[source]

Bases: BaseModel

A processed representation of a mapping set.

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

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Summary

get_prefixes()

Get prefixes appearing in all parts of the metadata.

to_record()

Create a record, for dumping to SSSOM directly.

Attributes Documentation

model_config = {'frozen': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

Methods Documentation

get_prefixes() set[str][source]

Get prefixes appearing in all parts of the metadata.

to_record() MappingSetRecord[source]

Create a record, for dumping to SSSOM directly.