Class: type_mapping
Represents how a slot or type can be serialized to a format.
- Canonical name:
TypeMapping - Names in code:
TypeMapping(Scala, TypeScript, Python, Java, Rust, GraphQL) - URI:
linkml:TypeMapping(https://w3id.org/linkml/TypeMapping) - Mixins: extensible, annotatable, common_metadata
- Subsets: SpecificationSubset
Own slots
Section titled “Own slots”-
Used on a slot that stores the string serialization of the containing object. The syntax follows python formatted strings, with slot names enclosed in {}s. These are expanded using the values of those slots. We call the slot with the serialization the s-slot, the slots used in the {}s are v-slots. If both s-slots and v-slots are populated on an object then the value of the s-slot should correspond to the expansion. Implementations of frameworks may choose to use this property to either (a) PARSE: implement automated normalizations by parsing denormalized strings into complex objects (b) GENERATE: implement automated to_string labeling of complex objects For example, a Measurement class may have 3 fields: unit, value, and string_value. The string_value slot may have a string_serialization of {value}{unit} such that if unit=cm and value=2, the value of string_value shouldd be 2cm
-
framework_key (
frameworkin data) (key) · string · requiredThe name of a format that can be used to serialize LinkML data. The string value should be a code from the LinkML frameworks vocabulary, but this is not strictly enforced
-
mapped_type (
typein data) · type_definition (reference)type to coerce to
-
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 |
|---|---|---|
| slot_definition | type_mappings | 0..* |