Skip to content

Commit 926f282

Browse files
committed
clean up failing tests according to last class and slot and convention changes
1 parent c9df620 commit 926f282

File tree

1 file changed

+30
-40
lines changed

1 file changed

+30
-40
lines changed

src/cmdr/schema/cmdr.yaml

Lines changed: 30 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ prefixes:
1414
schema: http://schema.org/
1515
PATO: http://purl.obolibrary.org/obo/PATO_
1616
example: https://example.org/
17+
OBI: http://purl.obolibrary.org/obo/OBI_
1718
default_prefix: cmdr
1819
default_range: string
1920

@@ -30,22 +31,17 @@ classes:
3031
identifier: true
3132
range: uriorcurie
3233
description: A 'logical' identifier within the system of record.
33-
name: id
3434
global_id:
35-
identifier: true
3635
range: uriorcurie
3736
description: The unique identifier for an entity
38-
name: global_id
3937
name:
4038
range: string
4139
description: The name of the entity
42-
name: name
4340
description:
4441
range: string
4542
description: A description of the entity
46-
name: description
4743
Study:
48-
parent: Entity
44+
is_a: Entity
4945
aliases:
5046
- ResearchStudy
5147
- Investigation
@@ -63,11 +59,11 @@ classes:
6359
Container:
6460
from_schema: TEMP
6561
slot_usage:
66-
investigations:
62+
studies:
6763
inlined: true
6864
inlined_as_list: true
6965
multivalued: true
70-
range: Investigation
66+
range: Study
7167
material_processings:
7268
inlined: true
7369
inlined_as_list: true
@@ -88,56 +84,57 @@ classes:
8884
inlined_as_list: true
8985
multivalued: true
9086
range: SpecimenCollectionProcess
91-
subjects:
87+
participants:
9288
inlined: true
9389
inlined_as_list: true
9490
multivalued: true
95-
range: Subject
91+
range: Participant
92+
attributes:
93+
participants:
94+
description: A list of participants in the study
95+
range: Participant
96+
multivalued: true
9697
slots:
9798
- materials
9899
- participations
99100
- material_processings
100101
- specimen_collection_processes
101-
- investigations
102-
- subjects
102+
- studies
103103
tree_root: true
104104
DataObject:
105105
aliases:
106106
- File
107107
- Data
108108
- DataFile
109-
description: A DataFile Associated with a Subject or Investigation or MaterialEntity
109+
description: A DataFile Associated with a Participant or Study or MaterialEntity
110110
from_schema: TEMP
111111
see_also:
112112
- include:DataFile
113113
MaterialEntity:
114+
is_a: Entity
114115
aliases:
115116
- Substance
116117
- Specimen
117118
- Sample
118119
- Biospecimen
119120
- Biosample
120-
description: Physical entity that is an input our output of a process from a Subject
121+
description: Physical entity that is an input our output of a process from a Participant
121122
from_schema: TEMP
122123
see_also:
123124
- include:Biospecimen
124125
slot_usage:
125126
concentration:
126127
range: Quantity
127-
id:
128-
identifier: true
129-
range: uriorcurie
130128
source:
131129
comments:
132130
- this is a shortcut. to be expanded later.
133-
range: Subject
131+
range: Participant
134132
used_in:
135133
multivalued: true
136-
range: Investigation
134+
range: Study
137135
volume:
138136
range: Quantity
139137
slots:
140-
- id
141138
- name
142139
- used_in
143140
- source
@@ -160,38 +157,35 @@ classes:
160157
- has_input
161158
- has_output
162159
Participation:
163-
description: Subject/Study participation information
160+
is_a: Entity
161+
description: Study participation information
164162
from_schema: TEMP
165163
see_also:
166164
- include:Participant
167165
slot_usage:
168-
id:
169-
identifier: true
170-
range: uriorcurie
171166
includes:
172-
range: Subject
167+
range: Participant
173168
involved_in:
174169
multivalued: true
175-
range: Investigation
170+
range: Study
176171
slots:
177-
- id
178172
- name
179173
- involved_in
180174
- includes
181175
Process:
182176
abstract: true
183177
description: A planned process resulting in a material or data
184178
from_schema: TEMP
179+
attributes:
180+
id:
181+
identifier: true
182+
range: uriorcurie
185183
slot_usage:
186184
has_input:
187185
multivalued: true
188186
has_output:
189187
multivalued: true
190-
id:
191-
identifier: true
192-
range: uriorcurie
193188
slots:
194-
- id
195189
- name
196190
- has_input
197191
- has_output
@@ -221,27 +215,23 @@ classes:
221215
slot_usage:
222216
has_input:
223217
multivalued: true
224-
range: Subject
218+
range: Participant
225219
has_output:
226220
multivalued: true
227221
range: MaterialEntity
228222
slots:
229223
- has_input
230224
- has_output
231-
Subject:
225+
Participant:
226+
is_a: Entity
232227
aliases:
233228
- Site
234229
- Participant
235-
description: Demographic and clinical information about the subject
230+
description: Demographic and clinical information about the participant
236231
from_schema: TEMP
237232
see_also:
238233
- include:Participant
239-
slot_usage:
240-
id:
241-
identifier: true
242-
range: uriorcurie
243234
slots:
244-
- id
245235
- name
246236

247237
# Were investigating moving most of these slots out of the top-level class and into classes (and parent classes) as needed.
@@ -262,7 +252,7 @@ slots:
262252
from_schema: TEMP
263253
includes:
264254
from_schema: TEMP
265-
investigations:
255+
studies:
266256
from_schema: TEMP
267257
involved_in:
268258
from_schema: TEMP

0 commit comments

Comments
 (0)