Skip to content

Commit 05109d9

Browse files
committed
Adding enum bindings
1 parent e53a511 commit 05109d9

File tree

1 file changed

+72
-2
lines changed

1 file changed

+72
-2
lines changed

linkml_model/model/schema/meta.yaml

Lines changed: 72 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,6 @@ slots:
618618
- BasicSubset
619619

620620
pv_formula:
621-
domain: enum_expression
622621
range: pv_formula_options
623622
description: >-
624623
Defines the specific formula to be used to generate the permissible values.
@@ -1543,7 +1542,7 @@ slots:
15431542
domain: slot_definition
15441543
range: presence_enum
15451544
inherited: true
1546-
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)
1545+
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)
15471546
comments:
15481547
- if set to true this has the same effect as required=true. In contrast, required=false allows a value to be present
15491548
status: unstable
@@ -2098,6 +2097,32 @@ slots:
20982097
in_subset:
20992098
- SpecificationSubset
21002099

2100+
bindings:
2101+
domain: element
2102+
range: enum_binding
2103+
multivalued: true
2104+
inlined: true
2105+
description: >-
2106+
A collection of slot bindings that specify how a slot can be bound to a permissible value
2107+
from an enumeration.
2108+
in_subset:
2109+
- SpecificationSubset
2110+
2111+
binds_value_of:
2112+
domain: enum_binding
2113+
range: string
2114+
description: >-
2115+
A path to a slot that is being bound to a permissible value from an enumeration.
2116+
in_subset:
2117+
- SpecificationSubset
2118+
2119+
obligation_level:
2120+
range: obligation_level_enum
2121+
description: >-
2122+
The level of obligation or recommendation strength for a metadata element
2123+
in_subset:
2124+
- SpecificationSubset
2125+
21012126

21022127
# -----------------------------------
21032128
# Slots for type definition
@@ -2520,6 +2545,7 @@ classes:
25202545
- generation_date
25212546
- slot_names_unique
25222547
- settings
2548+
- bindings
25232549
see_also:
25242550
- https://en.wikipedia.org/wiki/Data_dictionary
25252551
close_mappings:
@@ -2673,6 +2699,24 @@ classes:
26732699
slots:
26742700
- enum_uri
26752701

2702+
enum_binding:
2703+
description: >-
2704+
A binding of a slot or a class to a permissible value from an enumeration
2705+
slots:
2706+
- range
2707+
- obligation_level
2708+
- binds_value_of
2709+
- pv_formula
2710+
slot_usage:
2711+
range:
2712+
range: enum_definition
2713+
in_subset:
2714+
- SpecificationSubset
2715+
mixins:
2716+
- extensible
2717+
- annotatable
2718+
- common_metadata
2719+
26762720
match_query:
26772721
description: >-
26782722
A query that is used on an enum expression to dynamically obtain a set of permissivle values via a query that
@@ -2772,6 +2816,7 @@ classes:
27722816
- range
27732817
- range_expression
27742818
- enum_range
2819+
- bindings
27752820
- required
27762821
- recommended
27772822
- inlined
@@ -3192,3 +3237,28 @@ enums:
31923237
meaning: skos:broaderMatch
31933238
NARROW_SYNONYM:
31943239
meaning: skos:narrowerMatch
3240+
3241+
obligation_level_enum:
3242+
rank: 10
3243+
description: >-
3244+
The level of obligation or recommendation strength for a metadata element
3245+
permissible_values:
3246+
REQUIRED:
3247+
description: >-
3248+
The metadata element is required to be present in the model
3249+
RECOMMENDED:
3250+
aliases:
3251+
- ENCOURAGED
3252+
description: >-
3253+
The metadata element is recommended to be present in the model
3254+
OPTIONAL:
3255+
description: >-
3256+
The metadata element is optional to be present in the model
3257+
EXAMPLE:
3258+
description: >-
3259+
The metadata element is an example of how to use the model
3260+
DISCOURAGED:
3261+
description: >-
3262+
The metadata element is allowed but discouraged to be present in the model
3263+
in_subset:
3264+
- SpecificationSubset

0 commit comments

Comments
 (0)