Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allowing multivalued to be used in slot expressions as well as top level slots. #197

Merged
merged 1 commit into from
Jun 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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








Loading