Skip to content

Commit

Permalink
Adding enum bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Apr 13, 2024
1 parent e53a511 commit 05109d9
Showing 1 changed file with 72 additions and 2 deletions.
74 changes: 72 additions & 2 deletions linkml_model/model/schema/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,6 @@ slots:
- BasicSubset

pv_formula:
domain: enum_expression
range: pv_formula_options
description: >-
Defines the specific formula to be used to generate the permissible values.
Expand Down Expand Up @@ -1543,7 +1542,7 @@ slots:
domain: slot_definition
range: presence_enum
inherited: true
description: if true then a value must be present (for lists there must be at least one value). If false then a value must be absent (for lists, must be empty)
description: 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)
comments:
- if set to true this has the same effect as required=true. In contrast, required=false allows a value to be present
status: unstable
Expand Down Expand Up @@ -2098,6 +2097,32 @@ slots:
in_subset:
- SpecificationSubset

bindings:
domain: element
range: enum_binding
multivalued: true
inlined: true
description: >-
A collection of slot bindings that specify how a slot can be bound to a permissible value
from an enumeration.
in_subset:
- SpecificationSubset

binds_value_of:
domain: enum_binding
range: string
description: >-
A path to a slot that is being bound to a permissible value from an enumeration.
in_subset:
- SpecificationSubset

obligation_level:
range: obligation_level_enum
description: >-
The level of obligation or recommendation strength for a metadata element
in_subset:
- SpecificationSubset


# -----------------------------------
# Slots for type definition
Expand Down Expand Up @@ -2520,6 +2545,7 @@ classes:
- generation_date
- slot_names_unique
- settings
- bindings
see_also:
- https://en.wikipedia.org/wiki/Data_dictionary
close_mappings:
Expand Down Expand Up @@ -2673,6 +2699,24 @@ classes:
slots:
- enum_uri

enum_binding:
description: >-
A binding of a slot or a class to a permissible value from an enumeration
slots:
- range
- obligation_level
- binds_value_of
- pv_formula
slot_usage:
range:
range: enum_definition
in_subset:
- SpecificationSubset
mixins:
- extensible
- annotatable
- common_metadata

match_query:
description: >-
A query that is used on an enum expression to dynamically obtain a set of permissivle values via a query that
Expand Down Expand Up @@ -2772,6 +2816,7 @@ classes:
- range
- range_expression
- enum_range
- bindings
- required
- recommended
- inlined
Expand Down Expand Up @@ -3192,3 +3237,28 @@ enums:
meaning: skos:broaderMatch
NARROW_SYNONYM:
meaning: skos:narrowerMatch

obligation_level_enum:
rank: 10
description: >-
The level of obligation or recommendation strength for a metadata element
permissible_values:
REQUIRED:
description: >-
The metadata element is required to be present in the model
RECOMMENDED:
aliases:
- ENCOURAGED
description: >-
The metadata element is recommended to be present in the model
OPTIONAL:
description: >-
The metadata element is optional to be present in the model
EXAMPLE:
description: >-
The metadata element is an example of how to use the model
DISCOURAGED:
description: >-
The metadata element is allowed but discouraged to be present in the model
in_subset:
- SpecificationSubset

0 comments on commit 05109d9

Please sign in to comment.