-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdynamic_enum_schema.yaml
More file actions
47 lines (42 loc) · 1.25 KB
/
dynamic_enum_schema.yaml
File metadata and controls
47 lines (42 loc) · 1.25 KB
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
43
44
45
46
47
id: https://example.org/test-dynamic-enums
name: test-dynamic-enums
description: Test schema with dynamic enums for unit testing
prefixes:
TEST: http://example.org/TEST_
linkml: https://w3id.org/linkml/
default_prefix: test-dynamic-enums
default_range: string
classes:
Sample:
description: A sample with ontology-based fields
attributes:
id:
identifier: true
required: true
process_type:
description: A biological process type
range: ProcessTypeEnum
required: false
term:
description: Any descendant of root term
range: RootDescendantsEnum
required: false
enums:
# Dynamic enum using reachable_from
ProcessTypeEnum:
description: Any biological process (dynamic enum with reachable_from)
reachable_from:
source_ontology: simpleobo:tests/data/test_ontology.obo
source_nodes:
- TEST:0000005 # biological_process
relationship_types:
- rdfs:subClassOf
# Another dynamic enum
RootDescendantsEnum:
description: Any descendant of root term
reachable_from:
source_ontology: simpleobo:tests/data/test_ontology.obo
source_nodes:
- TEST:0000001 # root term
relationship_types:
- rdfs:subClassOf