Created
December 21, 2022 10:14
-
-
Save samwalrus/494d6f01e4bc8d2daf4067e280679310 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
things: | |
- id: 1 | |
type: my:person | |
full_name: phoebe | |
height: 10 | |
- id: 2 | |
type: my:organisation | |
full_name: University of Earth | |
number_of_employees: 2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test-schema | |
id: http://example.org/test-schema | |
default_prefix: http://example.org/test-schema/ | |
prefixes: | |
linkml: https://w3id.org/linkml/ | |
default_curi_maps: | |
- semweb_context | |
imports: | |
- linkml:types | |
classes: | |
NamedThing: | |
slots: | |
- id | |
- full_name | |
- type | |
Person: | |
is_a: NamedThing | |
slots: | |
- height | |
Organisation: | |
is_a: NamedThing | |
slots: | |
- number_of_employees | |
Container: | |
tree_root: true | |
slots: | |
- things | |
slots: | |
id: | |
identifier: true | |
range: string | |
required: true | |
type: | |
designates_type: true | |
full_name: | |
range: string | |
height: | |
range: integer | |
number_of_employees: | |
range: integer | |
things: | |
range: NamedThing | |
multivalued: true | |
inlined_as_list: true | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
linkml-validate -s myschema.yaml data.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment