File: example_dynamic_term_set.yaml

package info (click to toggle)
hdmf 3.14.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 19,372 kB
  • sloc: python: 34,738; makefile: 303; sh: 35
file content (42 lines) | stat: -rw-r--r-- 895 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
id: https://w3id.org/linkml/examples/nwb_dynamic_enums
title: dynamic enums example
name: nwb_dynamic_enums
description: this schema demonstrates the use of dynamic enums

prefixes:
  linkml: https://w3id.org/linkml/
  CL: http://purl.obolibrary.org/obo/CL_

imports:
  - linkml:types

default_range: string

# ======================== #
#         CLASSES          #
# ======================== #
classes:
  BrainSample:
    slots:
      - cell_type

# ======================== #
#          SLOTS           #
# ======================== #
slots:
  cell_type:
    required: true
    range: NeuronTypeEnum

# ======================== #
#          ENUMS           #
# ======================== #
enums:
  NeuronTypeEnum:
    reachable_from:
      source_ontology: obo:cl
      source_nodes:
        - CL:0000540  ## neuron
      include_self: false
      relationship_types:
        - rdfs:subClassOf