Class: type_definition
an element that whose instances are atomic scalar values that can be mapped to primitive types
- Canonical name:
TypeDefinition - Names in code:
TypeDefinition(Scala, TypeScript, Python, Java, Rust, GraphQL) - URI:
linkml:TypeDefinition(https://w3id.org/linkml/TypeDefinition) - Parent: element
- Mixins: type_expression
- Subsets: SpecificationSubset, BasicSubset, OwlProfile
Inheritance
Section titled “Inheritance”- element
- type_definition
Own slots
Section titled “Own slots”-
type_uri (
uriin data) · uriorcurieThe IRI (URI) that defines the possible values for the type definition
-
The alternative name to be used in serializations of an instance instead of the canonical name.
-
typeof · type_definition (reference)
A parent type from which type properties are inherited
-
python base type in the LinkML runtime that implements this type definition
-
the name of the python object that implements this type definition
-
union_of · list of type_definition (reference)
indicates that the domain element consists exactly of the members of the element in the range.
-
the string value of the slot must conform to this regular expression expressed in the string
-
the string value must contain at least this many characters (Unicode code-points).
-
the string value must contain at most this many characters (Unicode code-points).
-
an encoding of a unit
-
the slot must have range of a number and the value of the slot must equal the specified value
-
the slot must have range string and the value of the slot must equal the specified value
-
equals_string_in · list of string
the slot must have range string and the value of the slot must equal one of the specified values
-
Causes the slot value to be interpreted as a uriorcurie after prefixing with this string
-
maximum_value · Any
For ordinal ranges, the value must be equal to or lower than this
-
minimum_value · Any
For ordinal ranges, the value must be equal to or higher than this
-
structured_pattern · pattern_expression
the string value of the slot must conform to the regular expression in the pattern expression
-
any_of · list of anonymous_type_expression
holds if at least one of the expressions hold
-
exactly_one_of · list of anonymous_type_expression
holds if only one of the expressions hold
-
none_of · list of anonymous_type_expression
holds if none of the expressions hold
-
all_of · list of anonymous_type_expression
holds if all of the expressions hold
-
name (identifier) · string · required
the unique name of the element within the context of the schema. Name is combined with the default prefix to form the globally unique subject of the target class.
-
An established standard to which the element conforms.
-
The native IRI (URI) of the element. This is always within the namespace of the containing schema. Contrast with the assigned IRI, via class_uri or slot_uri
-
implements · list of uriorcurie
An element in another schema which this element conforms to. The referenced element is not imported into the schema for the implementing element. However, the referenced schema may be used to check conformance of the implementing element.
-
instantiates · list of uriorcurie
An element in another schema which this element instantiates.
-
local_names · list of local_name
Attributed labels of an element
-
id_prefixes · list of ncname
An allowed list of prefixes for which identifiers must conform. The identifier of this class or slot must begin with the URIs referenced by this prefix
-
id_prefixes_are_closed · boolean
If true, then the id_prefixes slot is treated as being closed, and any use of an id that does not have this prefix is considered a violation.
-
extensions · list of extension
a tag/text tuple attached to an arbitrary element
-
annotations · list of annotation
a collection of tag/text tuples with the semantics of OWL Annotation
-
A concise human-readable display label for the element. The title should mirror the name, and should use ordinary textual punctuation.
-
a textual description of the element’s purpose and use
-
the relative order in which the element occurs, lower values are given precedence
-
aliases · list of langstring
Alternate names/labels for the element. These do not alter the semantics of the schema, but may be useful to support search and alignment.
-
alt_descriptions · list of alt_description
A sourced alternative description for an element
-
broad_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have broader meaning.
-
categories · list of uriorcurie
Controlled terms used to categorize an element.
-
close_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have close meaning.
-
comments · list of langstring
notes and comments about an element intended primarily for external consumption
-
contributors · list of uriorcurie
agent that contributed to the element
-
agent that created the element
-
time at which the element was created
-
Description of why and when this element will no longer be used
-
deprecated_element_has_exact_replacement · uriorcurie
When an element is deprecated, it can be automatically replaced by this uri or curie
-
deprecated_element_has_possible_replacement · uriorcurie
When an element is deprecated, it can be potentially replaced by this uri or curie
-
exact_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have identical meaning.
-
example usages of an element
-
id of the schema that defined the element
-
the imports entry that this element was derived from. Empty means primary source
-
the primary language used in the sources
-
keywords · list of langstring
Keywords or tags used to describe the element
-
time at which the element was last updated
-
mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have comparable meaning. These may include terms that are precisely equivalent, broader or narrower in meaning, or otherwise semantically related but not equivalent from a strict ontological perspective.
-
agent that modified the element
-
narrow_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have narrower meaning.
-
notes · list of langstring
editorial notes about an element intended primarily for internal consumption
-
related_mappings · list of uriorcurie
A list of terms from different schemas or terminology systems that have related meaning.
-
see_also · list of uriorcurie
A list of related entities or URLs that may be of relevance
-
A related resource from which the element is derived.
-
status of the element
-
structured_aliases · list of structured_alias
A list of structured_alias objects, used to provide aliases in conjunction with additional metadata.
-
Outstanding issues that needs resolution
-
in_subset · list of subset_definition (reference)
used to indicate membership of a term in a defined subset of terms used for a particular domain or application.
Usages
Section titled “Usages”| Used by | Slot | Cardinality |
|---|---|---|
| schema_definition | default_range | 0..1 |
| schema_definition | types | 0..* |
| type_definition | typeof | 0..1 |
| type_definition | union_of | 0..* |
| type_mapping | mapped_type (type in data) |
0..1 |