Skip to content

Class: anonymous_slot_expression

A slot expression that is not a top-level named slot/attribute definition. Used for nesting.

  • Canonical name: AnonymousSlotExpression
  • Names in code: AnonymousSlotExpression (Scala, TypeScript, Python, Java, Rust, GraphQL)
  • URI: linkml:AnonymousSlotExpression (https://w3id.org/linkml/AnonymousSlotExpression)
  • Parent: anonymous_expression
  • Mixins: slot_expression
  • multivalued · boolean

    true means that slot can have more than one value and should be represented using a list or collection structure.

  • required · boolean

    true means that the slot must be present in instances of the class definition

  • recommended · boolean

    true means that the slot should be present in instances of the class definition, but this is not required

  • inlined · boolean

    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 · boolean

    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.

  • pattern · string

    the string value of the slot must conform to this regular expression expressed in the string

  • minimum_length · integer

    the string value must contain at least this many characters (Unicode code-points).

  • maximum_length · integer

    the string value must contain at most this many characters (Unicode code-points).

  • unit · UnitOfMeasure

    an encoding of a unit

  • all_members · anonymous_slot_expression

    the value of the slot is multivalued with all members satisfying the condition

  • array · array_expression

    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.

  • enum_range · enum_expression

    An inlined enumeration

  • equals_expression · string

    the value of the slot must equal the value of the evaluated expression

  • equals_number · integer

    the slot must have range of a number and the value of the slot must equal the specified value

  • equals_string · string

    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

  • exact_cardinality · integer

    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

  • implicit_prefix · string

    Causes the slot value to be interpreted as a uriorcurie after prefixing with this string

  • maximum_cardinality · integer

    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

  • minimum_cardinality · integer

    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

  • range · element (reference)

    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

Used by Slot Cardinality
extra_slots_expression range_expression 0..1
slot_expression all_members 0..1
slot_expression has_member 0..1
slot_expression any_of 0..*
slot_expression exactly_one_of 0..*
slot_expression none_of 0..*
slot_expression all_of 0..*