Skip to content

Commit

Permalink
Allowing multivalued to be used in slot expressions as well as top le…
Browse files Browse the repository at this point in the history
  • Loading branch information
cmungall committed Jun 11, 2024
1 parent 5859f8b commit 8441af7
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion linkml_model/model/schema/meta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2857,6 +2857,7 @@ classes:
- bindings
- required
- recommended
- multivalued
- inlined
- inlined_as_list
- minimum_value
Expand Down Expand Up @@ -2914,7 +2915,6 @@ classes:
- singular_name
- domain
- slot_uri
- multivalued
- array
- inherited
- readonly
Expand Down
38 changes: 38 additions & 0 deletions tests/input/examples/schema_definition-multivalued-in-any-of.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
id: https://example.org/multi-valued-in-any-of
name: multi_valued_in_any_of
title: Multi-valued in any of
description: |-
Example LinkML schema to demonstrate mixing multi-valued and single-valued attributes in anyOf
see_also:
- https://github.com/orgs/linkml/discussions/2154

prefixes:
linkml: https://w3id.org/linkml/
example: https://example.org/

default_prefix: example

imports:
- linkml:types

classes:

Any:
class_uri: linkml:Any

A:
attributes:
s:
range: Any
any_of:
- range: string
multivalued: true
- range: integer








0 comments on commit 8441af7

Please sign in to comment.