Skip to content

mappingconfig

Pydantic Mapping Configuration Data Model.

RDFTriple = tuple[str, str, str] module-attribute

MappingConfig

Bases: GenericConfig

Mapping Strategy Data Configuration.

Source code in oteapi/models/mappingconfig.py
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
class MappingConfig(GenericConfig):
    """Mapping Strategy Data Configuration."""

    mappingType: str = Field(
        ...,
        description="Type of registered mapping strategy.",
    )
    prefixes: Optional[dict[str, str]] = Field(
        None,
        description=(
            "Dictionary of shortnames that expands to an IRI given as local "
            "value/IRI-expansion-pairs."
        ),
    )
    triples: Optional[set[RDFTriple]] = Field(
        None,
        description="Set of RDF triples given as (subject, predicate, object).",
    )

mappingType: str = Field(..., description='Type of registered mapping strategy.') class-attribute instance-attribute

prefixes: Optional[dict[str, str]] = Field(None, description='Dictionary of shortnames that expands to an IRI given as local value/IRI-expansion-pairs.') class-attribute instance-attribute

triples: Optional[set[RDFTriple]] = Field(None, description='Set of RDF triples given as (subject, predicate, object).') class-attribute instance-attribute