Skip to content

Instantly share code, notes, and snippets.

@capsulecorplab
Last active July 30, 2023 00:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save capsulecorplab/3e41c7d1fc4ab31b99109adcf93062b3 to your computer and use it in GitHub Desktop.
Save capsulecorplab/3e41c7d1fc4ab31b99109adcf93062b3 to your computer and use it in GitHub Desktop.
id: NCBITaxon:40674
name: mammals
has_subtypes:
NCBITaxon:9443:
name: primates
has_subtypes:
NCBITaxon:9606:
name: humans
NCBITaxon:9682:
name: cats
# 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
#!/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