-
Notifications
You must be signed in to change notification settings - Fork 1
/
grantDistillOS_Schema_stable.py
371 lines (236 loc) · 7.3 KB
/
grantDistillOS_Schema_stable.py
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
# generated by datamodel-codegen:
# filename: grantDistillOS_Schema.yaml
# timestamp: 2023-04-19T15:50:25+00:00
from __future__ import annotations
from typing import Any, List, Optional, Union
from pydantic import BaseModel, Field
class Prefixes(BaseModel):
linkml: str
class Example(BaseModel):
value: Union[int, str]
class grantid(BaseModel):
description: str
examples: List[Example]
identifier: bool
class Example1(BaseModel):
value: str
class grantingagencyorg(BaseModel):
description: str
examples: List[Example1]
ifabsent: Any
class grantingsubdivision(BaseModel):
description: str
examples: List[Example1]
ifabsent: Any
class grantvalue(BaseModel):
description: str
range: str
ifabsent: float
class grantbegindate(BaseModel):
description: str
range: str
ifabsent: Any
class grantenddate(BaseModel):
description: str
range: str
ifabsent: Any
class amendmentdates(BaseModel):
description: str
multivalued: bool
ifabsent: List
class grantrecipientindividual(BaseModel):
description: str
multivalued: bool
ifabsent: Any
examples: List[Example1]
class grantrecipientorg(BaseModel):
description: str
examples: List[Example1]
class Example5(BaseModel):
value: List[str]
class worktype(BaseModel):
description: str
multivalued: bool
range: str
ifabsent: List
examples: List[Example5]
class workdomain(BaseModel):
description: str
multivalued: bool
range: str
ifabsent: List
examples: List[Example5]
class opensciencetraits(BaseModel):
description: str
multivalued: bool
range: str
ifabsent: List
examples: List[Example5]
class attributes(BaseModel):
grantid: grantid
grantingagencyorg: grantingagencyorg
grantingsubdivision: grantingsubdivision
grantvalue: grantvalue
grantbegindate: grantbegindate
grantenddate: grantenddate
amendmentdates: amendmentdates
grantrecipient_individual: grantrecipientindividual
grantrecipient_org: grantrecipientorg
worktype: worktype
workdomain: workdomain
opensciencetraits: opensciencetraits
class grantrecord(BaseModel):
#tree_root: tree_root
attributes: attributes
class Classes(BaseModel):
grantrecord: grantrecord
class Research(BaseModel):
description: str
class Curation(BaseModel):
description: str
class ServiceProvision(BaseModel):
description: str
class Coordination(BaseModel):
description: str
class InfrastructureDevops(BaseModel):
description: str
class Implementation(BaseModel):
description: str
class PermissibleValues(BaseModel):
research: Research
curation: Curation
service_provision: ServiceProvision = Field(..., alias='service provision')
coordination: Coordination
infrastructure_devops: InfrastructureDevops = Field(
..., alias='infrastructure devops'
)
implementation: Implementation
class worktype1(BaseModel):
description: str
permissible_values: PermissibleValues
class Biosciences(BaseModel):
description: str
class PysicalSciences(BaseModel):
description: str
class Engineering(BaseModel):
description: str
class Mathematics(BaseModel):
description: str
class SocialSciences(BaseModel):
description: str
class Interdisciplinary(BaseModel):
description: str
class PermissibleValues1(BaseModel):
biosciences: Biosciences
pysical_sciences: PysicalSciences = Field(..., alias='pysical sciences')
engineering: Engineering
mathematics: Mathematics
social_sciences: SocialSciences = Field(..., alias='social sciences')
interdisciplinary: Interdisciplinary
class workdomain1(BaseModel):
description: str
permissible_values: PermissibleValues1
class DataSharing(BaseModel):
description: str
class DataStorage(BaseModel):
description: str
class MetadataStandards(BaseModel):
description: str
class Metadata(BaseModel):
description: str
class DataRepositories(BaseModel):
description: str
class DataManagement(BaseModel):
description: str
class DataCuration(BaseModel):
description: str
class DataCitation(BaseModel):
description: str
class DataReuse(BaseModel):
description: str
class MetadataSchema(BaseModel):
description: str
class DataQuality(BaseModel):
description: str
class DataPrivacy(BaseModel):
description: str
class DataSecurity(BaseModel):
description: str
class DataAccess(BaseModel):
description: str
class OpenAccess(BaseModel):
description: str
class PublicAccess(BaseModel):
description: str
class OpenData(BaseModel):
description: str
class OpenSource(BaseModel):
description: str
class DataSharingAgreement(BaseModel):
description: str
class DataScience(BaseModel):
description: str
class Database(BaseModel):
description: str
class Python(BaseModel):
description: str
class Workflow(BaseModel):
description: str
class ResearchData(BaseModel):
description: str
class AcademicLibraries(BaseModel):
description: str
class CitizenScience(BaseModel):
description: str
class Repositories(BaseModel):
description: str
class PermissibleValues2(BaseModel):
data_sharing: DataSharing = Field(..., alias='data sharing')
data_storage: DataStorage = Field(..., alias='data storage')
metadata_standards: MetadataStandards = Field(..., alias='metadata standards')
metadata: Metadata
data_repositories: DataRepositories = Field(..., alias='data repositories')
data_management: DataManagement = Field(..., alias='data management')
data_curation: DataCuration = Field(..., alias='data curation')
data_citation: DataCitation = Field(..., alias='data citation')
data_reuse: DataReuse = Field(..., alias='data reuse')
metadata_schema: MetadataSchema = Field(..., alias='metadata schema')
data_quality: DataQuality = Field(..., alias='data quality')
data_privacy: DataPrivacy = Field(..., alias='data privacy')
data_security: DataSecurity = Field(..., alias='data security')
data_access: DataAccess = Field(..., alias='data access')
open_access: OpenAccess = Field(..., alias='open access')
public_access: PublicAccess = Field(..., alias='public access')
open_data: OpenData = Field(..., alias='open data')
open_source: OpenSource = Field(..., alias='open source')
data_sharing_agreement: DataSharingAgreement = Field(
..., alias='data sharing agreement'
)
data_science: DataScience = Field(..., alias='data science')
database: Database
python: Python
workflow: Workflow
research_data: ResearchData = Field(..., alias='research data')
academic_libraries: AcademicLibraries = Field(..., alias='academic libraries')
citizen_science: CitizenScience = Field(..., alias='citizen science')
repositories: Repositories
class opensciencetraits1(BaseModel):
description: str
permissible_values: PermissibleValues2
class Enums(BaseModel):
worktype: worktype1
workdomain: workdomain1
opensciencetraits: opensciencetraits1
class Model(BaseModel):
id: str
name: str
title: str
description: str
license: str
prefixes: Prefixes
keywords: List[str]
version: float
imports: List[str]
default_range: str
classes: Classes
enums: Enums