Skip to content

Commit 986f692

Browse files
authored
Merge pull request #176 from sneakers-the-rat/min_max_all
Make maximum_value and minimum_value accept linkml:Any
2 parents 64d9f1d + 3ad48fc commit 986f692

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

linkml_model/model/docs/specification/03schemas.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -352,8 +352,8 @@ Any instance *s* of a SlotDefinition may have assignments in any of the followin
352352
| [range](../range.md) | 0..1 <br/> [Element](../Element.md) | defines the type of the object of the slot |
353353
| [range_expression](../range_expression.md) | 0..1 <br/> [AnonymousClassExpression](../AnonymousClassExpression.md) | A range that is described as a boolean expression combining existing ranges |
354354
| [enum_range](../enum_range.md) | 0..1 <br/> [EnumExpression](../EnumExpression.md) | An inlined enumeration |
355-
| [minimum_value](../minimum_value.md) | 0..1 <br/> [xsd:integer](http://www.w3.org/2001/XMLSchema#integer) | for slots with ranges of type number, the value must be equal to or higher th... |
356-
| [maximum_value](../maximum_value.md) | 0..1 <br/> [xsd:integer](http://www.w3.org/2001/XMLSchema#integer) | for slots with ranges of type number, the value must be equal to or lowe than... |
355+
| [minimum_value](../minimum_value.md) | 0..1 <br/> [linkml:Any](https://linkml.io/linkml-model/latest/docs/Anything/) | for slots with ordinal ranges, the value must be equal to or higher th... |
356+
| [maximum_value](../maximum_value.md) | 0..1 <br/> [linkml:Any](https://linkml.io/linkml-model/latest/docs/Anything/) | for slots with ordinal ranges, the value must be equal to or lowe than... |
357357
| [structured_pattern](../structured_pattern.md) | 0..1 <br/> [PatternExpression](../PatternExpression.md) | the string value of the slot must conform to the regular expression in the pa... |
358358
| [implicit_prefix](../implicit_prefix.md) | 0..1 <br/> [xsd:string](http://www.w3.org/2001/XMLSchema#string) | Causes the slot value to be interpreted as a uriorcurie after prefixing with ... |
359359
| [equals_string](../equals_string.md) | 0..1 <br/> [xsd:string](http://www.w3.org/2001/XMLSchema#string) | the slot must have range string and the value of the slot must equal the spec... |

linkml_model/model/schema/meta.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1935,8 +1935,10 @@ slots:
19351935
aliases:
19361936
- low value
19371937
domain: slot_definition
1938-
range: integer
1939-
description: for slots with ranges of type number, the value must be equal to or higher than this
1938+
range: Anything
1939+
description: For ordinal ranges, the value must be equal to or higher than this
1940+
notes:
1941+
- Range to be refined to an "Ordinal" metaclass - see https://github.com/linkml/linkml/issues/1384#issuecomment-1892721142
19401942
inherited: true
19411943
in_subset:
19421944
- SpecificationSubset
@@ -1946,8 +1948,10 @@ slots:
19461948
aliases:
19471949
- high value
19481950
domain: slot_definition
1949-
range: integer
1950-
description: for slots with ranges of type number, the value must be equal to or lowe than this
1951+
range: Anything
1952+
description: For ordinal ranges, the value must be equal to or lower than this
1953+
notes:
1954+
- Range to be refined to an "Ordinal" metaclass - see https://github.com/linkml/linkml/issues/1384#issuecomment-1892721142
19511955
inherited: true
19521956
in_subset:
19531957
- SpecificationSubset

0 commit comments

Comments
 (0)