Skip to content

Commit 0dce989

Browse files
use range_expression!
1 parent 4526532 commit 0dce989

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

linkml_model/model/schema/meta.yaml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1359,9 +1359,9 @@ slots:
13591359
13601360
Possible values:
13611361
- `allowed: true` - allow all additional data
1362-
- `allowed: false` (or `allowed:` or `allowed: null` while `anonymous_slot_expression` is `null`) -
1362+
- `allowed: false` (or `allowed:` or `allowed: null` while `range_expression` is `null`) -
13631363
forbid all additional data (default)
1364-
- `anonymous_slot_expression: ...` - allow additional data if it matches the slot expression (see examples)
1364+
- `range_expression: ...` - allow additional data if it matches the slot expression (see examples)
13651365
domain: class_definition
13661366
ifabsent: false
13671367
range: extra_slots_expression
@@ -1376,37 +1376,37 @@ slots:
13761376
allowed: false
13771377
description: Forbid any additional data
13781378
- value:
1379-
anonymous_slot_expression:
1379+
range_expression:
13801380
range: string
13811381
description: Allow additional data that are strings
13821382
- value:
1383-
anonymous_slot_expression:
1383+
range_expression:
13841384
range: AClassDefinition
13851385
description: Allow additional data if they are instances of the class definition "AClassDefinition"
13861386
- value:
1387-
anonymous_slot_expression:
1387+
range_expression:
13881388
any_of:
13891389
- range: string
13901390
- range: integer
13911391
description: allow additional data if they are either strings or integers
13921392
- value:
1393-
anonymous_slot_expression:
1393+
range_expression:
13941394
range: integer
13951395
multivalued: true
13961396
maximum_cardinality: 5
13971397
description: |
13981398
Allow additional data if they are lists of integers of at most length 5.
13991399
Note that this does *not* mean that a maximum of 5 extra slots are allowed.
14001400
- value:
1401-
anonymous_slot_expression:
1401+
range_expression:
14021402
range: integer
14031403
required: true
14041404
description: |
14051405
Allow additional data if they are integers.
14061406
`required` is meaningless in this context and ignored, since by definition all "extra" slots are optional.
14071407
- value:
14081408
allowed: false
1409-
anonymous_slot_expression:
1409+
range_expression:
14101410
range: string
14111411
description: |
14121412
A semantically *invalid* use of `extra_slots`, as extra slots will be forbidden and the
@@ -1419,6 +1419,9 @@ slots:
14191419
- SpecificationSubset
14201420
- BasicSubset
14211421

1422+
slot:
1423+
description: A
1424+
14221425
# -----------------------------------
14231426
# Slot definition slots
14241427
# -----------------------------------
@@ -3302,7 +3305,7 @@ classes:
33023305
- expression
33033306
slots:
33043307
- allowed
3305-
- anonymous_slot_expression
3308+
- range_expression
33063309

33073310

33083311
# ==================================

0 commit comments

Comments
 (0)