LinkML Schema Metamodel
The metamodel for schemas defined using the Linked Data Modeling Language framework.
For more information on LinkML:
- linkml.io main website
- specification
LinkML is self-describing. Every LinkML schema consists of elements that instantiate classes in this metamodel.
Core metaclasses:
There are many subsets of profiles of the metamodel, for different purposes:
For canonical reference documentation on any metamodel construct, refer to the official URI for each construct, e.g. https://w3id.org/linkml/is_a
- ID:
linkml:meta - Name:
meta - Metamodel version: 1.12.0
- License: https://creativecommons.org/publicdomain/zero/1.0/
- Tree root: schema_definition
Classes
Section titled “Classes”| Class | Description |
|---|---|
| schema_definition | A collection of definitions that make up a schema or a data model. |
| class_definition | an element whose instances are complex objects that may have slot-value assignments |
| slot_definition | an element that describes how instances are related to other instances |
| type_definition | an element that whose instances are atomic scalar values that can be mapped to primitive types |
| enum_definition | an element whose instances must be drawn from a specified set of permissible values |
| subset_definition | an element that can be used to group other metamodel elements |
| prefix | prefix URI tuple |
| permissible_value | a permissible value, accompanied by intended text and an optional mapping to a concept URI |
| unique_key | a collection of slots whose values uniquely identify an instance of a class |
| type_mapping | Represents how a slot or type can be serialized to a format. |
| UnitOfMeasure | A unit of measure, or unit, is a particular quantity value that has been chosen as a scale for measuring other quantities the same kind (more generally of equivalent dimension). |
| alt_description | an attributed description |
| annotatable (mixin) | mixin for classes that support annotations |
| annotation | a tag/value pair with the semantics of OWL Annotation |
| anonymous_class_expression | A class expression that is not a top-level named class definition. Used for nesting. |
| anonymous_enum_expression | An enum_expression that is not named |
| anonymous_expression (abstract) | An abstract parent class for any nested expression |
| anonymous_slot_expression | A slot expression that is not a top-level named slot/attribute definition. Used for nesting. |
| anonymous_type_expression | A type expression that is not a top-level named type definition. Used for nesting. |
| array_expression | defines the dimensions of an array |
| class_expression (mixin) | A boolean expression that can be used to dynamically determine membership of a class |
| class_level_rule (abstract) | A rule that is applied to classes |
| class_rule | A rule that applies to instances of a class |
| common_metadata (mixin) | Generic metadata shared across definitions |
| definition (abstract) | abstract base class for core metaclasses |
| dimension_expression | defines one of the dimensions of an array |
| element (abstract) | A named element in the model |
| enum_binding | A binding of a slot or a class to a permissible value from an enumeration. |
| enum_expression | An expression that constrains the range of a slot |
| example | usage example and description |
| expression (abstract) | general mixin for any class that can represent some form of expression |
| extensible (mixin) | mixin for classes that support extension |
| extension | a tag/value pair used to add non-model information to an entry |
| extra_slots_expression | An expression that defines how to handle additional data in an instance of class beyond the slots/attributes defined for that class. See extra_slots for usage examples. |
| function_definition | A named function over the elements of a schema. Its parameters are the slots of one class. The return value is a class, a type or an enum. |
| import_expression | an expression describing an import |
| local_name | an attributed label |
| match_query | A query that is used on an enum expression to dynamically obtain a set of permissible values via a query that matches on properties of the external concepts. |
| path_expression | An expression that describes an abstract path from an object to another through a sequence of slot lookups |
| pattern_expression | a regular expression pattern used to evaluate conformance of a string |
| reachability_query | A query that is used on an enum expression to dynamically obtain a set of permissible values via walking from a set of source nodes to a set of descendants or ancestors over a set of relationship types. |
| setting | assignment of a key to a value |
| slot_expression (mixin) | an expression that constrains the range of values a slot can take |
| structured_alias | object that contains meta data about a synonym or alias including where it came from (source) and its scope (narrow, broad, etc.) |
| type_expression (mixin) | An abstract class grouping named types and anonymous type expressions |
| Slot | Description |
|---|---|
| id | The official schema URI |
| name | 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. |
| prefix_prefix | The prefix components of a prefix expansions. This is the part that appears before the colon in a CURIE. |
| class_uri | IRI (URI) of the class that provides a semantic interpretation of the element in a linked data context. The IRI may come from any namespace and may be shared between schemas |
| prefix_reference | The namespace to which a prefix expands to. |
| slot_uri | IRI (URI) of the class that provides a semantic interpretation of the slot in a linked data context. The IRI may come from any namespace and may be shared between schemas. |
| type_uri | The IRI (URI) that defines the possible values for the type definition |
| title | A concise human-readable display label for the element. The title should mirror the name, and should use ordinary textual punctuation. |
| description | a textual description of the element’s purpose and use |
| identifier | True means that the slot is the identifier slot of its class. Such a slot uniquely identifies instances of the class throughout an entire document, meaning there cannot be two (or more) instances of the class (or instances of any of its descendants) with the same value for the identifier slot anywhere in the document. |
| alias | The alternative name to be used in serializations of an instance instead of the canonical name. |
| multivalued | true means that slot can have more than one value and should be represented using a list or collection structure. |
| typeof | A parent type from which type properties are inherited |
| base | python base type in the LinkML runtime that implements this type definition |
| required | true means that the slot must be present in instances of the class definition |
| recommended | true means that the slot should be present in instances of the class definition, but this is not required |
| prefixes | A collection of prefix expansions that specify how CURIEs can be expanded to URIs |
| repr | the name of the python object that implements this type definition |
| default_prefix | The prefix that is used for all elements within a schema |
| is_a | A primary parent class or slot from which inheritable metaslots are propagated from. While multiple inheritance is not allowed, mixins can be provided effectively providing the same thing. The semantics are the same when translated to formalisms that allow MI (e.g. RDFS/OWL). When translating to a SI framework (e.g. java classes, python classes) then is a is used. When translating a framework without polymorphism (e.g. json-schema, solr document schema) then is a and mixins are recursively unfolded |
| default_range | default slot range to be used if range element is omitted from a slot definition |
| mixins | A collection of secondary parent classes or slots from which inheritable metaslots are propagated from. |
| settings | A collection of global variable settings |
| imports | A list of schemas that are to be included in this schema |
| text | The actual permissible value itself |
| meaning | the value meaning of a permissible value |
| inlined | True means that keyed or identified slot appears in an outer structure by value. False means that only the key or identifier for the slot appears within the domain, referencing a structure that appears elsewhere. |
| inlined_as_list | True means that an inlined slot is represented as a list of range instances. False means that an inlined slot is represented as a dictionary, whose key is the slot key or identifier and whose value is the range instance. |
| inlined_as_simple_dict | True means that an inlined slot is represented as a simple dict whose values are all atoms |
| license | license for the schema |
| tree_root | Indicates that this is the Container class which forms the root of the serialized document structure in tree serializations |
| pattern | the string value of the slot must conform to this regular expression expressed in the string |
| minimum_length | the string value must contain at least this many characters (Unicode code-points). |
| maximum_length | the string value must contain at most this many characters (Unicode code-points). |
| rank | the relative order in which the element occurs, lower values are given precedence |
| aliases | 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 | A sourced alternative description for an element |
| apply_to | Used to extend class or slot definitions. For example, if we have a core schema where a gene has two slots for identifier and symbol, and we have a specialized schema for my_organism where we wish to add a slot systematic_name, we can avoid subclassing by defining a class gene_my_organism, adding the slot to this class, and then adding an apply_to pointing to the gene class. The new slot will be ‘injected into’ the gene class. |
| categories | Controlled terms used to categorize an element. |
| code_set | the identifier of an enumeration code set. |
| code_set_tag | the version tag of the enumeration code set |
| code_set_version | the version identifier of the enumeration code set |
| comments | notes and comments about an element intended primarily for external consumption |
| conforms_to | An established standard to which the element conforms. |
| contributors | agent that contributed to the element |
| created_by | agent that created the element |
| created_on | time at which the element was created |
| defining_slots | The combination of is a plus defining slots form a genus-differentia definition, or the set of necessary and sufficient conditions that can be transformed into an OWL equivalence axiom |
| definition_uri | 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 |
| deprecated | Description of why and when this element will no longer be used |
| deprecated_element_has_exact_replacement | When an element is deprecated, it can be automatically replaced by this uri or curie |
| deprecated_element_has_possible_replacement | When an element is deprecated, it can be potentially replaced by this uri or curie |
| examples | example usages of an element |
| from_schema | id of the schema that defined the element |
| generation_date | date and time that the schema was loaded/generated |
| implements | 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. |
| imported_from | the imports entry that this element was derived from. Empty means primary source |
| in_language | the primary language used in the sources |
| instantiates | An element in another schema which this element instantiates. |
| keywords | Keywords or tags used to describe the element |
| last_updated_on | time at which the element was last updated |
| local_names | Attributed labels of an element |
| mappings | 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. |
| modified_by | agent that modified the element |
| notes | editorial notes about an element intended primarily for internal consumption |
| role | a textual descriptor that indicates the role played by the slot range |
| see_also | A list of related entities or URLs that may be of relevance |
| singular_name | a name that is used in the singular form |
| slot_group | allows for grouping of related slots into a grouping slot that serves the role of a group |
| source | A related resource from which the element is derived. |
| source_file | name, uri or description of the source of the schema |
| source_file_date | modification date of the source of the schema |
| source_file_size | size in bytes of the source of the schema |
| status | status of the element |
| structured_aliases | A list of structured_alias objects, used to provide aliases in conjunction with additional metadata. |
| todos | Outstanding issues that needs resolution |
| unit | an encoding of a unit |
| version | particular version of schema |
| preconditions | an expression that must hold in order for the rule to be applicable to an instance |
| postconditions | an expression that must hold for an instance of the class, if the preconditions hold |
| elseconditions | an expression that must hold for an instance of the class, if the preconditions no not hold |
| abstract | Indicates the class or slot cannot be directly instantiated and is intended for grouping purposes. |
| all_members | the value of the slot is multivalued with all members satisfying the condition |
| array | coerces the value of the slot into an array and defines the dimensions of that array |
| asymmetric | If s is antisymmetric, and i.s=v where i is different from v, v.s cannot have value i |
| bindings | A collection of enum bindings that specify how a slot can be bound to a permissible value from an enumeration. LinkML provides enums to allow string values to be restricted to one of a set of permissible values (specified statically or dynamically). Enum bindings allow enums to be bound to any object, including complex nested objects. For example, given a (generic) class Concept with slots id and label, it may be desirable to restrict the values the id takes on in a given context. For example, a HumanSample class may have a slot for representing sample site, with a range of concept, but the values of that slot may be restricted to concepts from a particular branch of an anatomy ontology. |
| children_are_mutually_disjoint | If true then all direct is_a children are mutually disjoint and share no instances in common |
| classification_rules | The collection of classification rules that apply to all members of this class. Classification rules allow for automatically assigning the instantiated type of an instance. |
| default_curi_maps | ordered list of prefixcommon biocontexts to be fetched to resolve id prefixes and inline prefix variables |
| designates_type | True means that the key slot(s) is used to determine the instantiation (types) relation between objects and a ClassDefinition |
| disjoint_with | Two classes are disjoint if they have no instances in common, two slots are disjoint if they can never hold between the same two instances |
| domain | defines the type of the subject of the slot. Given the following slot definition S1: domain: C1 range: C2 the declaration X: S1: Y |
| domain_of | the class(es) that reference the slot in a “slots” or “slot_usage” context |
| emit_prefixes | a list of Curie prefixes that are used in the representation of instances of the model. All prefixes in this list are added to the prefix sections of the target models. |
| enum_range | An inlined enumeration |
| enum_uri | IRI (URI) of the enum that provides a semantic interpretation of the element in a linked data context. The IRI may come from any namespace and may be shared between schemas |
| equals_expression | the value of the slot must equal the value of the evaluated expression |
| equals_number | the slot must have range of a number and the value of the slot must equal the specified value |
| equals_string | the slot must have range string and the value of the slot must equal the specified value |
| equals_string_in | the slot must have range string and the value of the slot must equal one of the specified values |
| exact_cardinality | the exact number of entries for a multivalued slot |
| extensions | a tag/text tuple attached to an arbitrary element |
| extra_slots | How a class instance handles extra data not specified in the class definition. Note that this does not define the constraints that are placed on additional slots defined by inheriting classes. |
| has_member | the value of the slot is multivalued with at least one member satisfying the condition |
| id_prefixes | 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 | 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. |
| ifabsent | function that provides a default value for the slot. * [Tt]rue – boolean True * [Ff]alse – boolean False * bnode – blank node identifier * class_curie – CURIE for the containing class * class_uri – URI for the containing class * default_ns – schema default namespace * default_range – schema default range * int(value) – integer value * slot_uri – URI for the slot * slot_curie – CURIE for the slot * string(value) – string value * EnumName(PermissibleValue) – enum value |
| implicit_prefix | Causes the slot value to be interpreted as a uriorcurie after prefixing with this string |
| in_subset | used to indicate membership of a term in a defined subset of terms used for a particular domain or application. |
| inherited | true means that the value of a slot is inherited by subclasses |
| inverse | indicates that any instance of d s r implies that there is also an instance of r s’ d |
| irreflexive | If s is irreflexive, then there exists no i such i.s=i |
| is_class_field | indicates that for any instance, i, the domain of this slot will include an assertion of i s range |
| is_grouping_slot | true if this slot is a grouping slot |
| key | True means that the slot is the “singular unique key” (also known more simply as the “key slot”) of its class. Such a slot uniquely identifies instances of the class within a single container, meaning there cannot be two (or more) instances of the class (or instances of any of its descendants) with the same value for the key slot within the container. |
| list_elements_ordered | If True, then the order of elements of a multivalued slot is guaranteed to be preserved. If False, the order may still be preserved but this is not guaranteed |
| list_elements_unique | If True, then there must be no duplicates in the elements of a multivalued slot |
| locally_reflexive | If s is locally_reflexive, then i.s=i for all instances i where s is a class slot for the type of i |
| maximum_cardinality | the maximum number of entries for a multivalued slot |
| maximum_value | For ordinal ranges, the value must be equal to or lower than this |
| metamodel_version | Version of the metamodel used to load the schema |
| minimum_cardinality | the minimum number of entries for a multivalued slot |
| minimum_value | For ordinal ranges, the value must be equal to or higher than this |
| mixin | Indicates the class or slot is intended to be inherited from without being an is_a parent. mixins should not be inherited from using is_a, except by other mixins. |
| path_rule | a rule for inferring a slot assignment based on evaluating a path through a sequence of slot assignments |
| range | defines the type of the object of the slot. Given the following slot definition S1: domain: C1 range: C2 the declaration X: S1: Y |
| range_expression | A range that is described as a boolean expression combining existing ranges |
| readonly | If present, slot is read only. Text explains why |
| reflexive | If s is reflexive, then i.s=i for all instances i |
| reflexive_transitive_form_of | transitive_form_of including the reflexive case |
| relational_role | the role a slot on a relationship class plays, for example, the subject, object or predicate roles |
| represents_relationship | true if this class represents a relationship rather than an entity |
| rules | the collection of rules that apply to all members of this class |
| shared | If True, then the relationship between the slot domain and range is many to one or many to many |
| slot_conditions | expresses constraints on a group of slots for a class expression |
| slot_names_unique | if true then induced/mangled slot names are not created for class_usage and attributes |
| string_serialization | 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 |
| structured_pattern | the string value of the slot must conform to the regular expression in the pattern expression |
| subproperty_of | Ontology property which this slot is a subproperty of. Note: setting this property on a slot does not guarantee an expansion of the ontological hierarchy into an enumerated list of possible values in every serialization of the model. |
| symmetric | If s is symmetric, and i.s=v, then v.s=i |
| transitive | If s is transitive, and i.s=z, and s.s=j, then i.s=j |
| transitive_form_of | If s transitive_form_of d, then (1) s holds whenever d holds (2) s is transitive (3) d holds whenever s holds and there are no intermediates, and s is not reflexive |
| type_mappings | A collection of type mappings that specify how a slot’s range should be mapped or serialized in different frameworks |
| union_of | indicates that the domain element consists exactly of the members of the element in the range. |
| unique_keys | A collection of named unique keys for this class. Such unique keys may be spread over several slots, which is why they are also called “compound keys”. A unique key uniquely identifies instances of the class within a given container, meaning there cannot be two (or more) instances of the class with the same values for all the slots that make up the unique key. |
| usage_slot_name | The name of the slot referenced in the slot_usage |
| value_presence | if PRESENT then a value must be present (for lists there must be at least one value). If ABSENT then a value must be absent (for lists, must be empty) |
| values_from | The identifier of a “value set” – a set of identifiers that form the possible values for the range of a slot. Note: this is different than ‘subproperty_of’ in that ‘subproperty_of’ is intended to be a single ontology term while ‘values_from’ is the identifier of an entire value set. Additionally, this is different than an enumeration in that in an enumeration, the values of the enumeration are listed directly in the model itself. Setting this property on a slot does not guarantee an expansion of the ontological hierarchy into an enumerated list of possible values in every serialization of the model. |
| classes | An index to the collection of all class definitions in the schema |
| permissible_values | A list of possible values for a slot range |
| slots | collection of slot names that are applicable to a class |
| enums | An index to the collection of all enum definitions in the schema |
| inherits | An enum definition that is used as the basis to create a new enum |
| slot_usage | the refinement of a slot in the context of the containing class definition. |
| attributes | Inline definition of slots |
| minus | An enum expression that yields a list of permissible values that are to be subtracted from the enum |
| types | An index to the collection of all type definitions in the schema |
| concepts | A list of identifiers that are used to construct a set of permissible values |
| slot_definitions | An index to the collection of all slot definitions in the schema |
| reachable_from | Specifies a query for obtaining a list of permissible values based on graph reachability |
| subsets | An index to the collection of all subset definitions in the schema |
| functions | The functions defined in the schema |
| include | An enum expression that yields a list of permissible values that are to be included, after subtracting the minus set |
| matches | Specifies a match query that is used to calculate the list of permissible values |
| pv_formula | Defines the specific formula to be used to generate the permissible values. |
| any_of | holds if at least one of the expressions hold |
| exactly_one_of | holds if only one of the expressions hold |
| none_of | holds if none of the expressions hold |
| all_of | holds if all of the expressions hold |
| is_usage_slot | True means that this slot was defined in a slot_usage situation |
| owner | the “owner” of the slot. It is the class if it appears in the slots list, otherwise the declaring slot |
| subclass_of | DEPRECATED – rdfs:subClassOf to be emitted in OWL generation |
| abbreviation | An abbreviation for a unit is a short ASCII string that is used in place of the full name for the unit in contexts where non-ASCII characters would be problematic, or where using the abbreviation will enhance readability. When a power of a base unit needs to be expressed, such as squares this can be done using abbreviations rather than symbols (source: qudt) |
| alias_contexts | The context in which an alias should be applied |
| alias_predicate | The relationship between an element and its alias. |
| allowed | Whether or not something is allowed. Usage defined by context. |
| alt_description_source | the source of an attributed description |
| alt_description_text | text of an attributed description |
| annotations | a collection of tag/text tuples with the semantics of OWL Annotation |
| bidirectional | in addition to preconditions entailing postconditions, the postconditions entail the preconditions |
| binds_value_of | A path to a slot that is being bound to a permissible value from an enumeration. |
| boolean_slot | A grouping of slots that expression a boolean operator over a list of operands |
| broad_mappings | A list of terms from different schemas or terminology systems that have broader meaning. |
| close_mappings | A list of terms from different schemas or terminology systems that have close meaning. |
| consider_nulls_inequal | By default, None values are considered equal for the purposes of comparisons in determining uniqueness. Set this to true to treat missing values as per ANSI-SQL NULLs, i.e NULL=NULL is always False. |
| deactivated | a deactivated rule is not executed by the rules engine |
| derivation | Expression for deriving this unit from other units |
| descriptive_name | the spelled out name of the unit, for example, meter |
| dimensions | definitions of each axis in the array |
| equals_number_in | the slot must have range number and the value of the slot must equal one of the specified values |
| errors | Classes describing the ways in which the function can fail. |
| exact_mappings | A list of terms from different schemas or terminology systems that have identical meaning. |
| exact_number_dimensions | exact number of dimensions in the array |
| extension_tag | a tag associated with an extension |
| extension_value | the actual annotation |
| followed_by | in a sequential list, this indicates the next member |
| framework_key | The 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 |
| has_quantity_kind | Concept in a vocabulary or ontology that denotes the kind of quantity being measured, e.g. length |
| identifier_pattern | A regular expression that is used to obtain a set of identifiers from a source_ontology to construct a set of permissible values |
| iec61360code | Associates a unit with its IEC 61360 code |
| import_as | Alias to use for this import |
| import_from | Source of the import expression |
| import_map | Settings to use for this import |
| inapplicable | true means that values for this slot must not be present |
| include_self | True if the query is reflexive |
| interpolated | if true then the pattern is first string interpolated |
| is_direct | True if the reachability query should only include directly related nodes, if False then include also transitively connected |
| list_value_specification_constant | Grouping for metamodel slots that constrain members of a multivalued slot value to equal a specified constant |
| literal_form | The literal lexical form of a structured alias; i.e the actual alias value. |
| local_name_source | the ncname of the source of the name |
| local_name_value | a name assigned to an element in a given ontology |
| mapped_type | type to coerce to |
| maximum_number_dimensions | maximum number of dimensions in the array, or False if explicitly no maximum. If this is unset, and an explicit list of dimensions are passed using dimensions, then this is interpreted as a closed list and the maximum_number_dimensions is the length of the dimensions list, unless this value is set to False |
| minimum_number_dimensions | minimum number of dimensions in the array |
| narrow_mappings | A list of terms from different schemas or terminology systems that have narrower meaning. |
| obligation_level | The level of obligation or recommendation strength for a metadata element |
| open_world | if true, the the postconditions may be omitted in instance data, but it is valid for an inference engine to add these |
| owned_by | agent that owns or is the steward of the element |
| parameters | The class whose slots are the parameters of the function, in slot order. |
| partial_match | if not true then the pattern must match the whole string, as if enclosed in ^…$ |
| publisher | An entity responsible for making the resource available |
| related_mappings | A list of terms from different schemas or terminology systems that have related meaning. |
| relational_logical_characteristic | An abstract grouping for metaslots that describe logical properties of a slot |
| relationship_types | A list of relationship types (properties) that are used in a reachability query |
| returns | What the function returns when it succeeds, as a class, a type or an enum. |
| reversed | true if the slot is to be inversed |
| setting_key | the variable name for a setting |
| setting_value | The value assigned for a setting |
| source_nodes | A list of nodes that are used in the reachability query |
| source_ontology | An ontology or vocabulary or terminology that is used in a query to obtain a set of permissible values |
| structured_imports | A list of specifications for how to import elements from external schemas |
| symbol | name of the unit encoded as a symbol |
| syntax | the string value of the slot must conform to this regular expression expressed in the string. May be interpolated. |
| traverse | the slot to traverse |
| traverse_up | True if the direction of the reachability query is reversed and ancestors are retrieved |
| ucum_code | associates a QUDT unit with its UCUM code (case-sensitive). |
| unique_key_name | name of the unique key |
| unique_key_slots | list of slot names that form a key. The tuple formed from the values of all these slots should be unique. |
| value | example value |
| value_description | description of what the value is doing |
| value_object | direct object representation of the example |
| value_specification_constant | Grouping for metamodel slots that constrain the a slot value to equal a specified constant |
| Enum | Description |
|---|---|
| pv_formula_options | The formula used to generate the set of permissible values from the code_set values |
| relational_role_enum | enumeration of roles a slot on a relationship class can play |
| alias_predicate_enum | permissible values for the relationship between an element and an alias |
| obligation_level_enum | The level of obligation or recommendation strength for a metadata element |
| presence_enum | enumeration of conditions by which a slot value should be set |
| Type | Description |
|---|---|
| boolean | A binary (true or false) value |
| curie | a compact URI |
| date | a date (year, month and day) in an idealized calendar |
| date_or_datetime | Either a date or a datetime |
| datetime | The combination of a date and time |
| decimal | A real number with arbitrary precision that conforms to the xsd:decimal specification |
| double | A real number that conforms to the xsd:double specification |
| float | A real number that conforms to the xsd:float specification |
| integer | An integer |
| jsonpath | A string encoding a JSON Path. The value of the string MUST conform to JSON Point syntax and SHOULD dereference to zero or more valid objects within the current instance document when encoded in tree form. |
| jsonpointer | A string encoding a JSON Pointer. The value of the string MUST conform to JSON Point syntax and SHOULD dereference to a valid object within the current instance document when encoded in tree form. |
| langstring | String with optional localization variants. Either a plain, non-langauge-tagged string or a multi-language mapping with at least one value. In JSON, plain strings should be mapped to JSON strings, and multi-language strings should be represented as a dictionary object of a language tag to a value in that language. In RDF, plain strings should be mapped to xsd:string, and multi-language strings to rdf:langString. In multivalued slots, each value is a separate langstring, so plain strings and multi-language mappings may be mixed in one list. When a generator needs the text in one language and it is missing, it uses the en text, or if there is none, the text of the alphabetically first language tag. A plain string is used as is, whatever language is requested. |
| ncname | Prefix part of CURIE |
| nodeidentifier | A URI, CURIE or BNODE that represents a node in a model. |
| objectidentifier | A URI or CURIE that represents an object in the model. |
| sparqlpath | A string encoding a SPARQL Property Path. The value of the string MUST conform to SPARQL syntax and SHOULD dereference to zero or more valid objects within the current instance document when encoded as RDF. |
| string | A character string |
| time | A time object represents a (local) time of day, independent of any particular day |
| uri | a complete IRI (URI) |
| uriorcurie | an IRI (URI) or a CURIE |
Subsets
Section titled “Subsets”| Subset | Description |
|---|---|
| MinimalSubset | The absolute minimal set of elements necessary for defining any schema. |
| BasicSubset | An extension of MinimalSubset that avoids advanced constructs and can be implemented by a broad variety of tools. |
| SpecificationSubset | A subset that includes all the metamodel elements that form part of the normative LinkML specification. |
| RelationalModelProfile | A profile that includes all the metamodel elements whose semantics can be expressed using the classic Relational Model. The Relational Model excludes collections (multivalued slots) as first class entities. Instead, these must be mapped to backreferences |
| ObjectOrientedProfile | A profile that includes all the metamodel elements whose semantics can be expressed using a minimal implementation of the object oriented metamodel as employed by languages such as Java and Python, or in modeling frameworks like UML |
| FunctionalProfile | A profile that includes the metamodel elements for describing named functions that take the slots of one class as their parameters and return another class. |
| OwlProfile | A profile that includes all the metamodel elements whose semantics can be expressed in OWL |