|
4 | 4 |
|
5 | 5 | # this file was auto-generated! |
6 | 6 |
|
| 7 | +from datetime import datetime, time |
7 | 8 |
|
8 | 9 | from openminds.base import LinkedMetadata |
9 | 10 | from openminds.properties import Property |
@@ -36,31 +37,182 @@ class TissueCulturePreparation(LinkedMetadata): |
36 | 37 | instructions="Add the cell culture type of the resulting tissue cell culture.", |
37 | 38 | ), |
38 | 39 | Property( |
39 | | - "input", |
| 40 | + "custom_property_sets", |
| 41 | + "openminds.latest.core.CustomPropertySet", |
| 42 | + "customPropertySet", |
| 43 | + multiple=True, |
| 44 | + unique_items=True, |
| 45 | + min_items=1, |
| 46 | + description="no description available", |
| 47 | + instructions="Add any user-defined parameters grouped in context-specific sets that are not covered in the standardized properties of this activity.", |
| 48 | + ), |
| 49 | + Property( |
| 50 | + "description", |
| 51 | + str, |
| 52 | + "description", |
| 53 | + formatting="text/markdown", |
| 54 | + multiline=True, |
| 55 | + description="Longer statement or account giving the characteristics of someone or something.", |
| 56 | + instructions="Enter a description of this activity.", |
| 57 | + ), |
| 58 | + Property( |
| 59 | + "end_time", |
| 60 | + [datetime, time], |
| 61 | + "endTime", |
| 62 | + description="no description available", |
| 63 | + instructions="Enter the date and/or time on when this activity ended, formatted as either '2023-02-07T16:00:00+00:00' (date-time) or '16:00:00+00:00' (time).", |
| 64 | + ), |
| 65 | + Property( |
| 66 | + "inputs", |
40 | 67 | [ |
41 | 68 | "openminds.latest.core.TissueSampleState", |
42 | 69 | "openminds.latest.core.TissueSampleCollectionState", |
43 | 70 | "openminds.latest.core.SubjectGroupState", |
44 | 71 | "openminds.latest.core.SubjectState", |
45 | 72 | ], |
46 | 73 | "input", |
| 74 | + multiple=True, |
| 75 | + unique_items=True, |
| 76 | + min_items=1, |
| 77 | + required=True, |
47 | 78 | description="Something or someone that is put into or participates in a process or machine.", |
48 | 79 | instructions="Add the state of the specimen before it was prepared as culture in this activity.", |
49 | 80 | ), |
50 | 81 | Property( |
51 | | - "output", |
| 82 | + "is_part_of", |
| 83 | + "openminds.latest.core.DatasetVersion", |
| 84 | + "isPartOf", |
| 85 | + required=True, |
| 86 | + description="Reference to the ensemble of multiple things or beings.", |
| 87 | + instructions="Add the dataset version in which this activity was conducted.", |
| 88 | + ), |
| 89 | + Property( |
| 90 | + "lookup_label", |
| 91 | + str, |
| 92 | + "lookupLabel", |
| 93 | + formatting="text/plain", |
| 94 | + description="no description available", |
| 95 | + instructions="Enter a lookup label for this activity that may help you to find this instance more easily.", |
| 96 | + ), |
| 97 | + Property( |
| 98 | + "outputs", |
52 | 99 | "openminds.latest.core.TissueSampleState", |
53 | 100 | "output", |
| 101 | + multiple=True, |
| 102 | + unique_items=True, |
| 103 | + min_items=1, |
| 104 | + required=True, |
54 | 105 | description="Something or someone that comes out of, is delivered or produced by a process or machine.", |
55 | 106 | instructions="Add the state of the prepared tissue sample culture that resulted from this activity.", |
56 | 107 | ), |
| 108 | + Property( |
| 109 | + "performed_by", |
| 110 | + ["openminds.latest.computation.SoftwareAgent", "openminds.latest.core.Person"], |
| 111 | + "performedBy", |
| 112 | + multiple=True, |
| 113 | + unique_items=True, |
| 114 | + min_items=1, |
| 115 | + description="no description available", |
| 116 | + instructions="Add all agents that performed this activity.", |
| 117 | + ), |
| 118 | + Property( |
| 119 | + "preparation_design", |
| 120 | + "openminds.latest.controlled_terms.PreparationType", |
| 121 | + "preparationDesign", |
| 122 | + description="no description available", |
| 123 | + instructions="Add the initial preparation type for this activity.", |
| 124 | + ), |
| 125 | + Property( |
| 126 | + "protocols", |
| 127 | + "openminds.latest.core.Protocol", |
| 128 | + "protocol", |
| 129 | + multiple=True, |
| 130 | + unique_items=True, |
| 131 | + min_items=1, |
| 132 | + required=True, |
| 133 | + description="Plan that describes the process of a scientific or medical experiment, treatment, or procedure.", |
| 134 | + instructions="Add all protocols used during this activity.", |
| 135 | + ), |
| 136 | + Property( |
| 137 | + "start_time", |
| 138 | + [datetime, time], |
| 139 | + "startTime", |
| 140 | + description="no description available", |
| 141 | + instructions="Enter the date and/or time on when this activity started, formatted as either '2023-02-07T16:00:00+00:00' (date-time) or '16:00:00+00:00' (time).", |
| 142 | + ), |
| 143 | + Property( |
| 144 | + "study_targets", |
| 145 | + [ |
| 146 | + "openminds.latest.controlled_terms.AuditoryStimulusType", |
| 147 | + "openminds.latest.controlled_terms.BiologicalOrder", |
| 148 | + "openminds.latest.controlled_terms.BiologicalSex", |
| 149 | + "openminds.latest.controlled_terms.BreedingType", |
| 150 | + "openminds.latest.controlled_terms.CellCultureType", |
| 151 | + "openminds.latest.controlled_terms.CellType", |
| 152 | + "openminds.latest.controlled_terms.Disease", |
| 153 | + "openminds.latest.controlled_terms.DiseaseModel", |
| 154 | + "openminds.latest.controlled_terms.ElectricalStimulusType", |
| 155 | + "openminds.latest.controlled_terms.GeneticStrainType", |
| 156 | + "openminds.latest.controlled_terms.GustatoryStimulusType", |
| 157 | + "openminds.latest.controlled_terms.Handedness", |
| 158 | + "openminds.latest.controlled_terms.MolecularEntity", |
| 159 | + "openminds.latest.controlled_terms.OlfactoryStimulusType", |
| 160 | + "openminds.latest.controlled_terms.OpticalStimulusType", |
| 161 | + "openminds.latest.controlled_terms.Organ", |
| 162 | + "openminds.latest.controlled_terms.OrganismSubstance", |
| 163 | + "openminds.latest.controlled_terms.OrganismSystem", |
| 164 | + "openminds.latest.controlled_terms.Species", |
| 165 | + "openminds.latest.controlled_terms.SubcellularEntity", |
| 166 | + "openminds.latest.controlled_terms.TactileStimulusType", |
| 167 | + "openminds.latest.controlled_terms.TermSuggestion", |
| 168 | + "openminds.latest.controlled_terms.TissueSampleType", |
| 169 | + "openminds.latest.controlled_terms.UBERONParcellation", |
| 170 | + "openminds.latest.controlled_terms.VisualStimulusType", |
| 171 | + "openminds.latest.sands.CustomAnatomicalEntity", |
| 172 | + "openminds.latest.sands.ParcellationEntity", |
| 173 | + "openminds.latest.sands.ParcellationEntityVersion", |
| 174 | + ], |
| 175 | + "studyTarget", |
| 176 | + multiple=True, |
| 177 | + unique_items=True, |
| 178 | + min_items=1, |
| 179 | + description="Structure or function that was targeted within a study.", |
| 180 | + instructions="Add all study targets of this activity.", |
| 181 | + ), |
57 | 182 | ] |
58 | 183 |
|
59 | | - def __init__(self, id=None, culture_medium=None, culture_type=None, input=None, output=None): |
| 184 | + def __init__( |
| 185 | + self, |
| 186 | + id=None, |
| 187 | + culture_medium=None, |
| 188 | + culture_type=None, |
| 189 | + custom_property_sets=None, |
| 190 | + description=None, |
| 191 | + end_time=None, |
| 192 | + inputs=None, |
| 193 | + is_part_of=None, |
| 194 | + lookup_label=None, |
| 195 | + outputs=None, |
| 196 | + performed_by=None, |
| 197 | + preparation_design=None, |
| 198 | + protocols=None, |
| 199 | + start_time=None, |
| 200 | + study_targets=None, |
| 201 | + ): |
60 | 202 | return super().__init__( |
61 | 203 | id=id, |
62 | 204 | culture_medium=culture_medium, |
63 | 205 | culture_type=culture_type, |
64 | | - input=input, |
65 | | - output=output, |
| 206 | + custom_property_sets=custom_property_sets, |
| 207 | + description=description, |
| 208 | + end_time=end_time, |
| 209 | + inputs=inputs, |
| 210 | + is_part_of=is_part_of, |
| 211 | + lookup_label=lookup_label, |
| 212 | + outputs=outputs, |
| 213 | + performed_by=performed_by, |
| 214 | + preparation_design=preparation_design, |
| 215 | + protocols=protocols, |
| 216 | + start_time=start_time, |
| 217 | + study_targets=study_targets, |
66 | 218 | ) |
0 commit comments