Last active
July 30, 2023 00:48
-
-
Save capsulecorplab/3e41c7d1fc4ab31b99109adcf93062b3 to your computer and use it in GitHub Desktop.
linkml example - inlining as dictionary https://linkml.io/linkml/schemas/inlining.html#inlining-as-a-dictionary
This file contains 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
id: NCBITaxon:40674 | |
name: mammals | |
has_subtypes: | |
NCBITaxon:9443: | |
name: primates | |
has_subtypes: | |
NCBITaxon:9606: | |
name: humans | |
NCBITaxon:9682: | |
name: cats |
This file contains 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
# https://linkml.io/linkml/schemas/inlining.html#inlining-as-a-dictionary | |
id: https://w3id.org/linkml/examples/ | |
name: organisms | |
prefixes: | |
linkml: https://w3id.org/linkml/ | |
imports: | |
- linkml:types | |
default_range: string | |
classes: | |
Organism: | |
slots: | |
- id | |
- name | |
- has_subtypes | |
slots: | |
id: | |
identifier: true | |
name: | |
range: string | |
has_subtypes: | |
range: Organism | |
multivalued: true | |
inlined: true | |
inlined_as_list: false |
This file contains 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
#!/usr/bin/sh | |
linkml-validate -s schema.yaml --target-class Organism data.yaml |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment