Skip to content

Instantly share code, notes, and snippets.

@samwalrus
Created December 21, 2022 10:14
Show Gist options
  • Save samwalrus/494d6f01e4bc8d2daf4067e280679310 to your computer and use it in GitHub Desktop.
Save samwalrus/494d6f01e4bc8d2daf4067e280679310 to your computer and use it in GitHub Desktop.
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
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
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