Mappings

class lccs.mappings.Mapping(data: dict, validate: bool = False)

Representation of a single mapping.

__init__(data: dict, validate: bool = False) None

Initialize a Mapping with metadata.

Parameters:
  • data – Dictionary containing mapping metadata.

  • validate – Whether to validate the data using jsonschema. Default is False.

property degree_of_similarity: float | None

Return the degree of similarity.

property description: str | None

Return the description of the mapping.

Return the links associated with the mapping.

property source_class: ClassificationSystemClass | None

Return the source class.

property target_class: ClassificationSystemClass | None

Return the target class.

property source_class_id: int | None

Return the ID of the source class.

property target_class_id: int | None

Return the ID of the target class.