Class: slot_expression
an expression that constrains the range of values a slot can take
- Canonical name:
SlotExpression - Names in code:
SlotExpression(Scala, TypeScript, Python, Java, Rust, GraphQL) - URI:
linkml:SlotExpression(https://w3id.org/linkml/SlotExpression) - Mixin: yes, so other classes can add its slots with
mixins - Parent: expression
- Mixed into: slot_definition, anonymous_slot_expression
Inheritance
Section titled “Inheritance”- expression
- slot_expression
-
true means that slot can have more than one value and should be represented using a list or collection structure.
-
true means that the slot must be present in instances of the class definition
-
true means that the slot should be present in instances of the class definition, but this is not required
-
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.
-
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.
-
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
-
all_members · anonymous_slot_expression
the value of the slot is multivalued with all members satisfying the condition
-
coerces the value of the slot into an array and defines the dimensions of that array
-
bindings · list of enum_binding
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.
-
An inlined enumeration
-
the value of the slot must equal the value of the evaluated expression
-
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
-
the exact number of entries for a multivalued slot
-
has_member · anonymous_slot_expression
the value of the slot is multivalued with at least one member satisfying the condition
-
Causes the slot value to be interpreted as a uriorcurie after prefixing with this string
-
the maximum number of entries for a multivalued slot
-
maximum_value · Any
For ordinal ranges, the value must be equal to or lower than this
-
the minimum number of entries for a multivalued slot
-
minimum_value · Any
For ordinal ranges, the value must be equal to or higher than this
-
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 · anonymous_class_expression
A range that is described as a boolean expression combining existing ranges
-
structured_pattern · pattern_expression
the string value of the slot must conform to the regular expression in the pattern expression
-
value_presence · presence_enum
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)
-
any_of · list of anonymous_slot_expression
holds if at least one of the expressions hold
-
exactly_one_of · list of anonymous_slot_expression
holds if only one of the expressions hold
-
none_of · list of anonymous_slot_expression
holds if none of the expressions hold
-
all_of · list of anonymous_slot_expression
holds if all of the expressions hold