-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmichi.py
718 lines (521 loc) · 27.6 KB
/
michi.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
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
# Auto generated from michi.yaml by pythongen.py version: 0.0.1
# Generation date: 2024-06-06T08:54:43
# Schema: NFDI4Chem_MIChI
#
# id: https://w3id.org/NFDI4Chem/MIChI
# description: This is the LinkML metadata schema prototype for NFDI4Chem
# license: MIT
import dataclasses
import re
from jsonasobj2 import JsonObj, as_dict
from typing import Optional, List, Union, Dict, ClassVar, Any
from dataclasses import dataclass
from datetime import date, datetime
from linkml_runtime.linkml_model.meta import EnumDefinition, PermissibleValue, PvFormulaOptions
from linkml_runtime.utils.slot import Slot
from linkml_runtime.utils.metamodelcore import empty_list, empty_dict, bnode
from linkml_runtime.utils.yamlutils import YAMLRoot, extended_str, extended_float, extended_int
from linkml_runtime.utils.dataclass_extensions_376 import dataclasses_init_fn_with_kwargs
from linkml_runtime.utils.formatutils import camelcase, underscore, sfx
from linkml_runtime.utils.enumerations import EnumDefinitionImpl
from rdflib import Namespace, URIRef
from linkml_runtime.utils.curienamespace import CurieNamespace
from linkml_runtime.linkml_model.types import String, Uriorcurie
from linkml_runtime.utils.metamodelcore import URIorCURIE
metamodel_version = "1.7.0"
version = None
# Overwrite dataclasses _init_fn to add **kwargs in __init__
dataclasses._init_fn = dataclasses_init_fn_with_kwargs
# Namespaces
BFO = CurieNamespace('BFO', 'http://purl.obolibrary.org/obo/BFO_')
CHEBI = CurieNamespace('CHEBI', 'http://purl.obolibrary.org/obo/CHEBI_')
OBI = CurieNamespace('OBI', 'http://purl.obolibrary.org/obo/OBI_')
PATO = CurieNamespace('PATO', 'http://purl.obolibrary.org/obo/PATO_')
BIOLINK = CurieNamespace('biolink', 'https://w3id.org/biolink/')
DCT = CurieNamespace('dct', 'http://purl.org/dc/terms/')
EXAMPLE = CurieNamespace('example', 'https://example.org/')
LINKML = CurieNamespace('linkml', 'https://w3id.org/linkml/')
MICHI = CurieNamespace('michi', 'https://w3id.org/NFDI4Chem/MIChI')
SCHEMA = CurieNamespace('schema', 'http://schema.org/')
DEFAULT_ = MICHI
# Types
# Class references
class MinimalMetadataMixinId(URIorCURIE):
pass
class DatasetId(URIorCURIE):
pass
class MaterialEntityId(URIorCURIE):
pass
class SampleId(MaterialEntityId):
pass
class ChemicalEntityId(MaterialEntityId):
pass
class ChemicalSubstanceId(MaterialEntityId):
pass
class DeviceId(MaterialEntityId):
pass
class DevicePartId(DeviceId):
pass
class PlannedProcessId(URIorCURIE):
pass
class ChemicalAssayId(PlannedProcessId):
pass
class ChemicalAnalysisId(PlannedProcessId):
pass
class SamplePreparationId(PlannedProcessId):
pass
class ChemicalReactionId(URIorCURIE):
pass
@dataclass
class MinimalMetadataMixin(YAMLRoot):
"""
A mixin with the minimal required slots of a class in this schema.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["MinimalMetadataMixin"]
class_class_curie: ClassVar[str] = "michi:MinimalMetadataMixin"
class_name: ClassVar[str] = "MinimalMetadataMixin"
class_model_uri: ClassVar[URIRef] = MICHI.MinimalMetadataMixin
id: Union[str, MinimalMetadataMixinId] = None
name: Optional[str] = None
description: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, MinimalMetadataMixinId):
self.id = MinimalMetadataMixinId(self.id)
if self.name is not None and not isinstance(self.name, str):
self.name = str(self.name)
if self.description is not None and not isinstance(self.description, str):
self.description = str(self.description)
super().__post_init__(**kwargs)
@dataclass
class Dataset(YAMLRoot):
"""
Represents a Dataset
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["Dataset"]
class_class_curie: ClassVar[str] = "michi:Dataset"
class_name: ClassVar[str] = "Dataset"
class_model_uri: ClassVar[URIRef] = MICHI.Dataset
id: Union[str, DatasetId] = None
name: Optional[str] = None
description: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, DatasetId):
self.id = DatasetId(self.id)
if self.name is not None and not isinstance(self.name, str):
self.name = str(self.name)
if self.description is not None and not isinstance(self.description, str):
self.description = str(self.description)
super().__post_init__(**kwargs)
@dataclass
class DatasetCollection(YAMLRoot):
"""
A holder for Dataset objects
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["DatasetCollection"]
class_class_curie: ClassVar[str] = "michi:DatasetCollection"
class_name: ClassVar[str] = "DatasetCollection"
class_model_uri: ClassVar[URIRef] = MICHI.DatasetCollection
entries: Optional[Union[Dict[Union[str, DatasetId], Union[dict, Dataset]], List[Union[dict, Dataset]]]] = empty_dict()
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
self._normalize_inlined_as_dict(slot_name="entries", slot_type=Dataset, key_name="id", keyed=True)
super().__post_init__(**kwargs)
class Protocol(YAMLRoot):
"""
The information that specifies how to execute a planned process, in terms of what steps and actions must be taken
and what preconditions must be met
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = OBI["0000272"]
class_class_curie: ClassVar[str] = "OBI:0000272"
class_name: ClassVar[str] = "Protocol"
class_model_uri: ClassVar[URIRef] = MICHI.Protocol
@dataclass
class Characteristic(YAMLRoot):
"""
An attribute/characteristic of an entity (which could be a material entity, information or process)
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = BFO["0000020"]
class_class_curie: ClassVar[str] = "BFO:0000020"
class_name: ClassVar[str] = "Characteristic"
class_model_uri: ClassVar[URIRef] = MICHI.Characteristic
has_quantitative_value: Optional[str] = None
output_of_analysis: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self.has_quantitative_value is not None and not isinstance(self.has_quantitative_value, str):
self.has_quantitative_value = str(self.has_quantitative_value)
if self.output_of_analysis is not None and not isinstance(self.output_of_analysis, str):
self.output_of_analysis = str(self.output_of_analysis)
super().__post_init__(**kwargs)
@dataclass
class MaterialEntity(YAMLRoot):
"""
Material entities are three-dimensional entities (entities extended in three spatial dimensions), as contrasted
with the processes in which they participate, which are four-dimensional entities (entities extended also along
the dimension of time)
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = BFO["0000040"]
class_class_curie: ClassVar[str] = "BFO:0000040"
class_name: ClassVar[str] = "MaterialEntity"
class_model_uri: ClassVar[URIRef] = MICHI.MaterialEntity
id: Union[str, MaterialEntityId] = None
name: Optional[str] = None
description: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, MaterialEntityId):
self.id = MaterialEntityId(self.id)
if self.name is not None and not isinstance(self.name, str):
self.name = str(self.name)
if self.description is not None and not isinstance(self.description, str):
self.description = str(self.description)
super().__post_init__(**kwargs)
@dataclass
class Sample(MaterialEntity):
"""
The material entity that is being evaluated to assay its attributes/characteristic.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["Sample"]
class_class_curie: ClassVar[str] = "michi:Sample"
class_name: ClassVar[str] = "Sample"
class_model_uri: ClassVar[URIRef] = MICHI.Sample
id: Union[str, SampleId] = None
output_of_sampling_process: Optional[Union[str, SamplePreparationId]] = None
has_characteristic: Optional[Union[dict, Characteristic]] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, SampleId):
self.id = SampleId(self.id)
if self.output_of_sampling_process is not None and not isinstance(self.output_of_sampling_process, SamplePreparationId):
self.output_of_sampling_process = SamplePreparationId(self.output_of_sampling_process)
if self.has_characteristic is not None and not isinstance(self.has_characteristic, Characteristic):
self.has_characteristic = Characteristic(**as_dict(self.has_characteristic))
super().__post_init__(**kwargs)
@dataclass
class ChemicalEntity(MaterialEntity):
"""
Any constitutionally or isotopically distinct atom, molecule, ion, ion pair, radical, radical ion, complex,
conformer etc., identifiable as a separately distinguishable entity.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = CHEBI["23367"]
class_class_curie: ClassVar[str] = "CHEBI:23367"
class_name: ClassVar[str] = "ChemicalEntity"
class_model_uri: ClassVar[URIRef] = MICHI.ChemicalEntity
id: Union[str, ChemicalEntityId] = None
iupac_name: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, ChemicalEntityId):
self.id = ChemicalEntityId(self.id)
if self.iupac_name is not None and not isinstance(self.iupac_name, str):
self.iupac_name = str(self.iupac_name)
super().__post_init__(**kwargs)
@dataclass
class ChemicalSubstance(MaterialEntity):
"""
A MaterialEntity that is composed of multiple Chemical Entities of either the same or different kind
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = CHEBI["59999"]
class_class_curie: ClassVar[str] = "CHEBI:59999"
class_name: ClassVar[str] = "ChemicalSubstance"
class_model_uri: ClassVar[URIRef] = MICHI.ChemicalSubstance
id: Union[str, ChemicalSubstanceId] = None
provenance: Optional[str] = None
composed_of_chemical_entity: Optional[Union[str, List[str]]] = empty_list()
space_group: Optional[str] = None
iupac_name: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, ChemicalSubstanceId):
self.id = ChemicalSubstanceId(self.id)
if self.provenance is not None and not isinstance(self.provenance, str):
self.provenance = str(self.provenance)
if not isinstance(self.composed_of_chemical_entity, list):
self.composed_of_chemical_entity = [self.composed_of_chemical_entity] if self.composed_of_chemical_entity is not None else []
self.composed_of_chemical_entity = [v if isinstance(v, str) else str(v) for v in self.composed_of_chemical_entity]
if self.space_group is not None and not isinstance(self.space_group, str):
self.space_group = str(self.space_group)
if self.iupac_name is not None and not isinstance(self.iupac_name, str):
self.iupac_name = str(self.iupac_name)
super().__post_init__(**kwargs)
@dataclass
class Device(MaterialEntity):
"""
A used within an analysis with a specific function
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["Device"]
class_class_curie: ClassVar[str] = "michi:Device"
class_name: ClassVar[str] = "Device"
class_model_uri: ClassVar[URIRef] = MICHI.Device
id: Union[str, DeviceId] = None
has_part: Optional[str] = None
has_manufacturer: Optional[str] = None
has_serial_number: Optional[str] = None
has_model_number: Optional[str] = None
has_function: Optional[str] = None
has_setting: Optional[str] = None
has_visual_representation: Optional[str] = None
has_type: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, DeviceId):
self.id = DeviceId(self.id)
if self.has_part is not None and not isinstance(self.has_part, str):
self.has_part = str(self.has_part)
if self.has_manufacturer is not None and not isinstance(self.has_manufacturer, str):
self.has_manufacturer = str(self.has_manufacturer)
if self.has_serial_number is not None and not isinstance(self.has_serial_number, str):
self.has_serial_number = str(self.has_serial_number)
if self.has_model_number is not None and not isinstance(self.has_model_number, str):
self.has_model_number = str(self.has_model_number)
if self.has_function is not None and not isinstance(self.has_function, str):
self.has_function = str(self.has_function)
if self.has_setting is not None and not isinstance(self.has_setting, str):
self.has_setting = str(self.has_setting)
if self.has_visual_representation is not None and not isinstance(self.has_visual_representation, str):
self.has_visual_representation = str(self.has_visual_representation)
self.has_type = str(self.class_name)
super().__post_init__(**kwargs)
def __new__(cls, *args, **kwargs):
type_designator = "has_type"
if not type_designator in kwargs:
return super().__new__(cls,*args,**kwargs)
else:
type_designator_value = kwargs[type_designator]
target_cls = cls._class_for("class_name", type_designator_value)
if target_cls is None:
raise ValueError(f"Wrong type designator value: class {cls.__name__} "
f"has no subclass with ['class_name']='{kwargs[type_designator]}'")
return super().__new__(target_cls,*args,**kwargs)
@dataclass
class DevicePart(Device):
"""
A device which function is to be a part of another device that is used within a chemical assay.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["DevicePart"]
class_class_curie: ClassVar[str] = "michi:DevicePart"
class_name: ClassVar[str] = "DevicePart"
class_model_uri: ClassVar[URIRef] = MICHI.DevicePart
id: Union[str, DevicePartId] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, DevicePartId):
self.id = DevicePartId(self.id)
super().__post_init__(**kwargs)
self.has_type = str(self.class_name)
@dataclass
class PlannedProcess(YAMLRoot):
"""
A process that is executed according to some plan or protocol
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = OBI["0000011"]
class_class_curie: ClassVar[str] = "OBI:0000011"
class_name: ClassVar[str] = "PlannedProcess"
class_model_uri: ClassVar[URIRef] = MICHI.PlannedProcess
id: Union[str, PlannedProcessId] = None
has_input: Optional[str] = None
has_output: Optional[str] = None
name: Optional[str] = None
description: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, PlannedProcessId):
self.id = PlannedProcessId(self.id)
if self.has_input is not None and not isinstance(self.has_input, str):
self.has_input = str(self.has_input)
if self.has_output is not None and not isinstance(self.has_output, str):
self.has_output = str(self.has_output)
if self.name is not None and not isinstance(self.name, str):
self.name = str(self.name)
if self.description is not None and not isinstance(self.description, str):
self.description = str(self.description)
super().__post_init__(**kwargs)
@dataclass
class ChemicalAssay(PlannedProcess):
"""
The planned process to chemically assay a sample in order to determine some characteristic of it.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = OBI["0000070"]
class_class_curie: ClassVar[str] = "OBI:0000070"
class_name: ClassVar[str] = "ChemicalAssay"
class_model_uri: ClassVar[URIRef] = MICHI.ChemicalAssay
id: Union[str, ChemicalAssayId] = None
has_sample: Optional[str] = None
has_device: Optional[str] = None
produces_dataset: Optional[str] = None
has_type: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, ChemicalAssayId):
self.id = ChemicalAssayId(self.id)
if self.has_sample is not None and not isinstance(self.has_sample, str):
self.has_sample = str(self.has_sample)
if self.has_device is not None and not isinstance(self.has_device, str):
self.has_device = str(self.has_device)
if self.produces_dataset is not None and not isinstance(self.produces_dataset, str):
self.produces_dataset = str(self.produces_dataset)
self.has_type = str(self.class_name)
super().__post_init__(**kwargs)
@dataclass
class ChemicalAnalysis(PlannedProcess):
"""
An interpretation of the data output of a ChemicalAssay
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["ChemicalAnalysis"]
class_class_curie: ClassVar[str] = "michi:ChemicalAnalysis"
class_name: ClassVar[str] = "ChemicalAnalysis"
class_model_uri: ClassVar[URIRef] = MICHI.ChemicalAnalysis
id: Union[str, ChemicalAnalysisId] = None
has_status: Optional[Union[str, "ChemicalAnalysisStatus"]] = None
based_on_assay_output: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, ChemicalAnalysisId):
self.id = ChemicalAnalysisId(self.id)
if self.has_status is not None and not isinstance(self.has_status, ChemicalAnalysisStatus):
self.has_status = ChemicalAnalysisStatus(self.has_status)
if self.based_on_assay_output is not None and not isinstance(self.based_on_assay_output, str):
self.based_on_assay_output = str(self.based_on_assay_output)
super().__post_init__(**kwargs)
@dataclass
class SamplePreparation(PlannedProcess):
"""
The process in which a sample is being generated or prepared for further analysis
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["SamplePreparation"]
class_class_curie: ClassVar[str] = "michi:SamplePreparation"
class_name: ClassVar[str] = "SamplePreparation"
class_model_uri: ClassVar[URIRef] = MICHI.SamplePreparation
id: Union[str, SamplePreparationId] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, SamplePreparationId):
self.id = SamplePreparationId(self.id)
super().__post_init__(**kwargs)
@dataclass
class ChemicalReaction(YAMLRoot):
"""
A process between multiple chemical entities of a different kind.
"""
_inherited_slots: ClassVar[List[str]] = []
class_class_uri: ClassVar[URIRef] = MICHI["ChemicalReaction"]
class_class_curie: ClassVar[str] = "michi:ChemicalReaction"
class_name: ClassVar[str] = "ChemicalReaction"
class_model_uri: ClassVar[URIRef] = MICHI.ChemicalReaction
id: Union[str, ChemicalReactionId] = None
name: Optional[str] = None
description: Optional[str] = None
def __post_init__(self, *_: List[str], **kwargs: Dict[str, Any]):
if self._is_empty(self.id):
self.MissingRequiredField("id")
if not isinstance(self.id, ChemicalReactionId):
self.id = ChemicalReactionId(self.id)
if self.name is not None and not isinstance(self.name, str):
self.name = str(self.name)
if self.description is not None and not isinstance(self.description, str):
self.description = str(self.description)
super().__post_init__(**kwargs)
# Enumerations
class ChemicalAnalysisStatus(EnumDefinitionImpl):
PLANNED = PermissibleValue(
text="PLANNED",
description="the chemical analysis is planned but has not been executed")
IN_PROGRESS = PermissibleValue(
text="IN_PROGRESS",
description="the chemical analysis is in the making")
DONE = PermissibleValue(
text="DONE",
description="the chemical analysis is in the done")
CONFIRMED = PermissibleValue(
text="CONFIRMED",
description="the chemical analysis has been confirmed by a peer")
UNCONFIRMED = PermissibleValue(
text="UNCONFIRMED",
description="the chemical analysis has not yet been confirmed by a peer")
_defn = EnumDefinition(
name="ChemicalAnalysisStatus",
)
# Slots
class slots:
pass
slots.id = Slot(uri=DCT.identifier, name="id", curie=DCT.curie('identifier'),
model_uri=MICHI.id, domain=None, range=URIRef)
slots.name = Slot(uri=DCT.title, name="name", curie=DCT.curie('title'),
model_uri=MICHI.name, domain=None, range=Optional[str])
slots.description = Slot(uri=DCT.description, name="description", curie=DCT.curie('description'),
model_uri=MICHI.description, domain=None, range=Optional[str])
slots.has_input = Slot(uri=MICHI.has_input, name="has_input", curie=MICHI.curie('has_input'),
model_uri=MICHI.has_input, domain=PlannedProcess, range=Optional[str])
slots.has_output = Slot(uri=MICHI.has_output, name="has_output", curie=MICHI.curie('has_output'),
model_uri=MICHI.has_output, domain=PlannedProcess, range=Optional[str])
slots.has_sample = Slot(uri=MICHI.has_sample, name="has_sample", curie=MICHI.curie('has_sample'),
model_uri=MICHI.has_sample, domain=ChemicalAssay, range=Optional[str])
slots.has_device = Slot(uri=MICHI.has_device, name="has_device", curie=MICHI.curie('has_device'),
model_uri=MICHI.has_device, domain=ChemicalAssay, range=Optional[str])
slots.produces_dataset = Slot(uri=MICHI.produces_dataset, name="produces_dataset", curie=MICHI.curie('produces_dataset'),
model_uri=MICHI.produces_dataset, domain=ChemicalAssay, range=Optional[str])
slots.has_quantitative_value = Slot(uri=MICHI.has_quantitative_value, name="has_quantitative_value", curie=MICHI.curie('has_quantitative_value'),
model_uri=MICHI.has_quantitative_value, domain=Characteristic, range=Optional[str])
slots.output_of_analysis = Slot(uri=MICHI.output_of_analysis, name="output_of_analysis", curie=MICHI.curie('output_of_analysis'),
model_uri=MICHI.output_of_analysis, domain=Characteristic, range=Optional[str])
slots.has_status = Slot(uri=MICHI.has_status, name="has_status", curie=MICHI.curie('has_status'),
model_uri=MICHI.has_status, domain=ChemicalAnalysis, range=Optional[Union[str, "ChemicalAnalysisStatus"]])
slots.based_on_assay_output = Slot(uri=MICHI.based_on_assay_output, name="based_on_assay_output", curie=MICHI.curie('based_on_assay_output'),
model_uri=MICHI.based_on_assay_output, domain=ChemicalAnalysis, range=Optional[str])
slots.has_type = Slot(uri=MICHI.has_type, name="has_type", curie=MICHI.curie('has_type'),
model_uri=MICHI.has_type, domain=None, range=Optional[str])
slots.has_part = Slot(uri=MICHI.has_part, name="has_part", curie=MICHI.curie('has_part'),
model_uri=MICHI.has_part, domain=None, range=Optional[str])
slots.has_manufacturer = Slot(uri=MICHI.has_manufacturer, name="has_manufacturer", curie=MICHI.curie('has_manufacturer'),
model_uri=MICHI.has_manufacturer, domain=None, range=Optional[str])
slots.has_serial_number = Slot(uri=MICHI.has_serial_number, name="has_serial_number", curie=MICHI.curie('has_serial_number'),
model_uri=MICHI.has_serial_number, domain=None, range=Optional[str])
slots.has_model_number = Slot(uri=MICHI.has_model_number, name="has_model_number", curie=MICHI.curie('has_model_number'),
model_uri=MICHI.has_model_number, domain=None, range=Optional[str])
slots.has_function = Slot(uri=MICHI.has_function, name="has_function", curie=MICHI.curie('has_function'),
model_uri=MICHI.has_function, domain=None, range=Optional[str])
slots.has_setting = Slot(uri=MICHI.has_setting, name="has_setting", curie=MICHI.curie('has_setting'),
model_uri=MICHI.has_setting, domain=None, range=Optional[str])
slots.has_visual_representation = Slot(uri=MICHI.has_visual_representation, name="has_visual_representation", curie=MICHI.curie('has_visual_representation'),
model_uri=MICHI.has_visual_representation, domain=None, range=Optional[str])
slots.provenance = Slot(uri=MICHI.provenance, name="provenance", curie=MICHI.curie('provenance'),
model_uri=MICHI.provenance, domain=ChemicalSubstance, range=Optional[str])
slots.composed_of_chemical_entity = Slot(uri=MICHI.composed_of_chemical_entity, name="composed_of_chemical_entity", curie=MICHI.curie('composed_of_chemical_entity'),
model_uri=MICHI.composed_of_chemical_entity, domain=ChemicalSubstance, range=Optional[Union[str, List[str]]])
slots.space_group = Slot(uri=MICHI.space_group, name="space_group", curie=MICHI.curie('space_group'),
model_uri=MICHI.space_group, domain=ChemicalSubstance, range=Optional[str])
slots.iupac_name = Slot(uri=MICHI.iupac_name, name="iupac_name", curie=MICHI.curie('iupac_name'),
model_uri=MICHI.iupac_name, domain=None, range=Optional[str])
slots.output_of_sampling_process = Slot(uri=MICHI.output_of_sampling_process, name="output_of_sampling_process", curie=MICHI.curie('output_of_sampling_process'),
model_uri=MICHI.output_of_sampling_process, domain=Sample, range=Optional[Union[str, SamplePreparationId]])
slots.has_characteristic = Slot(uri=MICHI.has_characteristic, name="has_characteristic", curie=MICHI.curie('has_characteristic'),
model_uri=MICHI.has_characteristic, domain=None, range=Optional[Union[dict, Characteristic]])
slots.datasetCollection__entries = Slot(uri=MICHI.entries, name="datasetCollection__entries", curie=MICHI.curie('entries'),
model_uri=MICHI.datasetCollection__entries, domain=None, range=Optional[Union[Dict[Union[str, DatasetId], Union[dict, Dataset]], List[Union[dict, Dataset]]]])