Pydantic Mapping Configuration Data Model.
SemanticTriple = conlist(str, min_items=3, max_items=3)
module-attribute
MappingConfig
Bases: GenericConfig
Mapping Strategy Data Configuration.
Source code in oteapi/models/mappingconfig.py
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27 | class MappingConfig(GenericConfig):
"""Mapping Strategy Data Configuration."""
mappingType: str = Field(
..., description="Type of registered mapping strategy. E.g., `mapping/demo`."
)
prefixes: Optional[Dict[str, str]] = Field(
None,
description=(
"List of shortnames that expands to an IRI "
"given as local value/IRI-expansion-pairs."
),
)
triples: Optional[List[SemanticTriple]] = Field( # type: ignore[valid-type]
None,
description="List of semantic triples given as (subject, predicate, object).",
)
|
mappingType: str = Field(Ellipsis, description='Type of registered mapping strategy. E.g., `mapping/demo`.')
class-attribute
prefixes: Optional[Dict[str, str]] = Field(None, description='List of shortnames that expands to an IRI given as local value/IRI-expansion-pairs.')
class-attribute
triples: Optional[List[SemanticTriple]] = Field(None, description='List of semantic triples given as (subject, predicate, object).')
class-attribute