MetaModel#
Definitions#
See Datamodel docs for full documentation
- class linkml_runtime.linkml_model.meta.SchemaDefinition(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
A collection of definitions that make up a schema or a data model.
- classes: Dict[str | ClassDefinitionName, dict | ClassDefinition] | List[dict | ClassDefinition] | None#
- enums: Dict[str | EnumDefinitionName, dict | EnumDefinition] | List[dict | EnumDefinition] | None#
- slots: Dict[str | SlotDefinitionName, dict | SlotDefinition] | List[dict | SlotDefinition] | None#
- subsets: Dict[str | SubsetDefinitionName, dict | SubsetDefinition] | List[dict | SubsetDefinition] | None#
- types: Dict[str | TypeDefinitionName, dict | TypeDefinition] | List[dict | TypeDefinition] | None#
- class linkml_runtime.linkml_model.meta.ClassDefinition(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
an element whose instances are complex objects that may have slot-value assignments
- attributes: Dict[str | SlotDefinitionName, dict | SlotDefinition] | List[dict | SlotDefinition] | None#
- classification_rules: dict | AnonymousClassExpression | List[dict | AnonymousClassExpression] | None#
- slot_conditions: Dict[str | SlotDefinitionName, dict | SlotDefinition] | List[dict | SlotDefinition] | None#
- slot_usage: Dict[str | SlotDefinitionName, dict | SlotDefinition] | List[dict | SlotDefinition] | None#
- class linkml_runtime.linkml_model.meta.SlotDefinition(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
an element that describes how instances are related to other instances
- array: dict | ArrayExpression | None = None#
- class linkml_runtime.linkml_model.meta.TypeDefinition(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
an element that whose instances are atomic scalar values that can be mapped to primitive types
- class linkml_runtime.linkml_model.meta.EnumDefinition(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
an element whose instances must be drawn from a specified set of permissible values
Arrays#
- class linkml_runtime.linkml_model.meta.ArrayExpression(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
defines the dimensions of an array
- alt_descriptions: Dict[str | AltDescriptionSource, dict | AltDescription] | List[dict | AltDescription] | None#
- dimensions: dict | DimensionExpression | List[dict | DimensionExpression] | None#
- class linkml_runtime.linkml_model.meta.DimensionExpression(*args, _if_missing: Callable[[JsonObj, str], Tuple[bool, Any]] | None = None, **kwargs)[source]#
defines one of the dimensions of an array
- alt_descriptions: Dict[str | AltDescriptionSource, dict | AltDescription] | List[dict | AltDescription] | None#
- class_class_uri: ClassVar[URIRef] = rdflib.term.URIRef('https://w3id.org/linkml/DimensionExpression')#
- class_model_uri: ClassVar[URIRef] = rdflib.term.URIRef('https://w3id.org/linkml/DimensionExpression')#