Skip to content

Commit 9fff22e

Browse files
authored
Merge pull request #197 from linkml/discussion-2154
Allowing multivalued to be used in slot expressions as well as top level slots.
2 parents 5859f8b + 8441af7 commit 9fff22e

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

linkml_model/model/schema/meta.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2857,6 +2857,7 @@ classes:
28572857
- bindings
28582858
- required
28592859
- recommended
2860+
- multivalued
28602861
- inlined
28612862
- inlined_as_list
28622863
- minimum_value
@@ -2914,7 +2915,6 @@ classes:
29142915
- singular_name
29152916
- domain
29162917
- slot_uri
2917-
- multivalued
29182918
- array
29192919
- inherited
29202920
- readonly
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
id: https://example.org/multi-valued-in-any-of
2+
name: multi_valued_in_any_of
3+
title: Multi-valued in any of
4+
description: |-
5+
Example LinkML schema to demonstrate mixing multi-valued and single-valued attributes in anyOf
6+
see_also:
7+
- https://github.com/orgs/linkml/discussions/2154
8+
9+
prefixes:
10+
linkml: https://w3id.org/linkml/
11+
example: https://example.org/
12+
13+
default_prefix: example
14+
15+
imports:
16+
- linkml:types
17+
18+
classes:
19+
20+
Any:
21+
class_uri: linkml:Any
22+
23+
A:
24+
attributes:
25+
s:
26+
range: Any
27+
any_of:
28+
- range: string
29+
multivalued: true
30+
- range: integer
31+
32+
33+
34+
35+
36+
37+
38+

0 commit comments

Comments
 (0)