Skip to content

Class: EnumExpression

An expression that constrains the range of a slot

URI: linkml:EnumExpression

classDiagram Expression <|-- EnumExpression EnumExpression : code_set EnumExpression : code_set_tag EnumExpression : code_set_version EnumExpression : concepts EnumExpression : include EnumExpression : inherits EnumExpression : matches EnumExpression : minus EnumExpression : permissible_values EnumExpression : pv_formula EnumExpression : reachable_from

Inheritance

Slots

Name Cardinality and Range Description
code_set 0..1
Uriorcurie
the identifier of an enumeration code set
code_set_tag 0..1
String
the version tag of the enumeration code set
code_set_version 0..1
String
the version identifier of the enumeration code set
pv_formula 0..1
PvFormulaOptions
Defines the specific formula to be used to generate the permissible values
permissible_values 0..*
PermissibleValue
A list of possible values for a slot range
include 0..*
AnonymousEnumExpression
An enum expression that yields a list of permissible values that are to be in...
minus 0..*
AnonymousEnumExpression
An enum expression that yields a list of permissible values that are to be su...
inherits 0..*
EnumDefinition
An enum definition that is used as the basis to create a new enum
reachable_from 0..1
ReachabilityQuery
Specifies a query for obtaining a list of permissible values based on graph r...
matches 0..1
MatchQuery
Specifies a match query that is used to calculate the list of permissible val...
concepts 0..*
Uriorcurie
A list of identifiers that are used to construct a set of permissible values

Usages

used by used in type used
EnumExpression code_set domain enum_expression
EnumExpression code_set_tag domain enum_expression
EnumExpression code_set_version domain enum_expression
EnumExpression pv_formula domain enum_expression
EnumExpression permissible_values domain enum_expression
EnumExpression include domain enum_expression
EnumExpression minus domain enum_expression
EnumExpression inherits domain enum_expression
EnumExpression reachable_from domain enum_expression
EnumExpression matches domain enum_expression
EnumExpression concepts domain enum_expression
AnonymousEnumExpression code_set domain enum_expression
AnonymousEnumExpression code_set_tag domain enum_expression
AnonymousEnumExpression code_set_version domain enum_expression
AnonymousEnumExpression pv_formula domain enum_expression
AnonymousEnumExpression permissible_values domain enum_expression
AnonymousEnumExpression include domain enum_expression
AnonymousEnumExpression minus domain enum_expression
AnonymousEnumExpression inherits domain enum_expression
AnonymousEnumExpression reachable_from domain enum_expression
AnonymousEnumExpression matches domain enum_expression
AnonymousEnumExpression concepts domain enum_expression
EnumDefinition code_set domain enum_expression
EnumDefinition code_set_tag domain enum_expression
EnumDefinition code_set_version domain enum_expression
EnumDefinition pv_formula domain enum_expression
EnumDefinition permissible_values domain enum_expression
EnumDefinition include domain enum_expression
EnumDefinition minus domain enum_expression
EnumDefinition inherits domain enum_expression
EnumDefinition reachable_from domain enum_expression
EnumDefinition matches domain enum_expression
EnumDefinition concepts domain enum_expression
SlotExpression enum_range range enum_expression
AnonymousSlotExpression enum_range range enum_expression
SlotDefinition enum_range range enum_expression

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/linkml/meta

Mappings

Mapping Type Mapped Value
self ['linkml:EnumExpression']
native ['linkml:EnumExpression']

LinkML Specification

Direct

name: enum_expression
description: An expression that constrains the range of a slot
from_schema: https://w3id.org/linkml/meta
rank: 1000
is_a: expression
slots:
- code_set
- code_set_tag
- code_set_version
- pv_formula
- permissible_values
- include
- minus
- inherits
- reachable_from
- matches
- concepts

Induced

name: enum_expression
description: An expression that constrains the range of a slot
from_schema: https://w3id.org/linkml/meta
rank: 1000
is_a: expression
attributes:
  code_set:
    name: code_set
    description: the identifier of an enumeration code set.
    todos:
    - this should be able to connect to an existing code set from TCCM
    in_subset:
    - SpecificationSubset
    - BasicSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: code_set
    owner: enum_expression
    domain_of:
    - enum_expression
    range: uriorcurie
  code_set_tag:
    name: code_set_tag
    description: the version tag of the enumeration code set
    comments:
    - enum_expression cannot have both a code_set_tag and a code_set_version
    in_subset:
    - BasicSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: code_set_tag
    owner: enum_expression
    domain_of:
    - enum_expression
    range: string
  code_set_version:
    name: code_set_version
    description: the version identifier of the enumeration code set
    comments:
    - we assume that version identifiers lexically sort in temporal order. Recommend
      semver when possible
    in_subset:
    - BasicSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: code_set_version
    owner: enum_expression
    domain_of:
    - enum_expression
    range: string
  pv_formula:
    name: pv_formula
    description: Defines the specific formula to be used to generate the permissible
      values.
    comments:
    - you cannot have BOTH the permissible_values and permissible_value_formula tag
    - code_set must be supplied for this to be valid
    in_subset:
    - SpecificationSubset
    - BasicSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: pv_formula
    owner: enum_expression
    domain_of:
    - enum_expression
    range: pv_formula_options
  permissible_values:
    name: permissible_values
    description: A list of possible values for a slot range
    in_subset:
    - SpecificationSubset
    - BasicSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    multivalued: true
    alias: permissible_values
    owner: enum_expression
    domain_of:
    - enum_expression
    range: permissible_value
    inlined: true
  include:
    name: include
    description: An enum expression that yields a list of permissible values that
      are to be included, after subtracting the minus set
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    multivalued: true
    alias: include
    owner: enum_expression
    domain_of:
    - enum_expression
    range: anonymous_enum_expression
  minus:
    name: minus
    description: An enum expression that yields a list of permissible values that
      are to be subtracted from the enum
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    multivalued: true
    alias: minus
    owner: enum_expression
    domain_of:
    - enum_expression
    range: anonymous_enum_expression
  inherits:
    name: inherits
    description: An enum definition that is used as the basis to create a new enum
    comments:
    - All permissible values for all inherited enums are copied to form the initial
      seed set
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    multivalued: true
    alias: inherits
    owner: enum_expression
    domain_of:
    - enum_expression
    range: enum_definition
  reachable_from:
    name: reachable_from
    description: Specifies a query for obtaining a list of permissible values based
      on graph reachability
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: reachable_from
    owner: enum_expression
    domain_of:
    - enum_expression
    range: reachability_query
  matches:
    name: matches
    description: Specifies a match query that is used to calculate the list of permissible
      values
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    alias: matches
    owner: enum_expression
    domain_of:
    - enum_expression
    range: match_query
  concepts:
    name: concepts
    description: A list of identifiers that are used to construct a set of permissible
      values
    in_subset:
    - SpecificationSubset
    from_schema: https://w3id.org/linkml/meta
    rank: 1000
    domain: enum_expression
    multivalued: true
    alias: concepts
    owner: enum_expression
    domain_of:
    - enum_expression
    range: uriorcurie