You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
raw_value: Optional[str] =Field(default=None, description="""The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"""", json_schema_extra= { "linkml_meta": {'alias': 'raw_value',
160
+
'domain_of': ['AttributeValue'],
161
+
'mappings': ['nmdc:raw_value']} })
160
162
161
163
162
164
classAttribute(ConfiguredBaseModel):
@@ -173,63 +175,35 @@ class Attribute(ConfiguredBaseModel):
'unit': {'description': 'The unit of the quantity',
189
-
'name': 'unit'}}})
186
+
'name': 'raw_value'}}})
190
187
191
188
maximum_numeric_value: Optional[float] =Field(default=None, description="""The maximum value part, expressed as number, of the quantity value when the value covers a range.""", json_schema_extra= { "linkml_meta": {'alias': 'maximum_numeric_value',
minimum_numeric_value: Optional[float] =Field(default=None, description="""The minimum value part, expressed as number, of the quantity value when the value covers a range.""", json_schema_extra= { "linkml_meta": {'alias': 'minimum_numeric_value',
numeric_value: Optional[float] =Field(default=None, description="""The number part of the quantity""", json_schema_extra= { "linkml_meta": {'alias': 'numeric_value',
maximum_numeric_value: Optional[float] =Field(default=None, description="""The maximum value part, expressed as number, of the quantity value when the value covers a range.""", json_schema_extra= { "linkml_meta": {'alias': 'maximum_numeric_value',
minimum_numeric_value: Optional[float] =Field(default=None, description="""The minimum value part, expressed as number, of the quantity value when the value covers a range.""", json_schema_extra= { "linkml_meta": {'alias': 'minimum_numeric_value',
numeric_value: Optional[float] =Field(default=None, description="""Links a quantity value to a number""", json_schema_extra= { "linkml_meta": {'alias': 'numeric_value',
numeric_value: Optional[float] =Field(default=None, description="""The numerical part of a quantity value.""", json_schema_extra= { "linkml_meta": {'alias': 'numeric_value',
unit: Optional[str] =Field(default=None, description="""Links a QuantityValue to a unit. Units should be taken from the UCUM unit collection or the Unit Ontology.""", json_schema_extra= { "linkml_meta": {'alias': 'unit',
raw_value: Optional[str] =Field(default=None, description="""The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"""", json_schema_extra= { "linkml_meta": {'alias': 'raw_value',
unit_cv_id: Optional[str] =Field(default=None, description="""The unit of the quantity, expressed as a CURIE from the Unit Ontology.""", json_schema_extra= { "linkml_meta": {'alias': 'unit_cv_id', 'domain_of': ['QuantityValue']} })
value: Optional[str] =Field(default=None, description="""The value, as a text string.""", json_schema_extra= { "linkml_meta": {'alias': 'value', 'domain_of': ['TextValue']} })
217
+
value: Optional[str] =Field(default=None, description="""The value, as a text string.""", json_schema_extra= { "linkml_meta": {'alias': 'value', 'domain_of': ['TextValue', 'DateTimeValue']} })
244
218
value_cv_id: Optional[str] =Field(default=None, description="""For values that are in a controlled vocabulary (CV), this attribute should capture the controlled vocabulary ID for the value.""", json_schema_extra= { "linkml_meta": {'alias': 'value_cv_id', 'domain_of': ['TextValue']} })
raw_value: Optional[str] =Field(default=None, description="""The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"""", json_schema_extra= { "linkml_meta": {'alias': 'raw_value',
'slot_usage': {'value': {'description': 'The date or date/time value, '
232
+
'expressed in ISO 8601-compatible '
233
+
'form. Dates should be expressed as '
234
+
'YYYY-MM-DD; times should be '
235
+
'expressed as HH:MM:SS with optional '
236
+
'milliseconds and an indication of '
237
+
'the timezone.',
238
+
'examples': [{'value': '2025-11-09'},
239
+
{'value': '2025-09-16T22:48:54Z'}],
240
+
'name': 'value'}}})
241
+
242
+
value: Optional[str] =Field(default=None, description="""The date or date/time value, expressed in ISO 8601-compatible form. Dates should be expressed as YYYY-MM-DD; times should be expressed as HH:MM:SS with optional milliseconds and an indication of the timezone.""", json_schema_extra= { "linkml_meta": {'alias': 'value',
raw_value: Optional[str] =Field(default=None, description="""The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"""", json_schema_extra= { "linkml_meta": {'alias': 'raw_value',
247
+
'domain_of': ['AttributeValue'],
248
+
'mappings': ['nmdc:raw_value']} })
247
249
248
250
249
251
classEntity(ConfiguredBaseModel):
@@ -393,8 +395,8 @@ class DataCollection(ConfiguredBaseModel):
Copy file name to clipboardExpand all lines: src/schema/jsonschema/bertron_schema.json
+40-47Lines changed: 40 additions & 47 deletions
Original file line number
Diff line number
Diff line change
@@ -122,6 +122,35 @@
122
122
"title": "DataCollection",
123
123
"type": "object"
124
124
},
125
+
"DateTimeValue": {
126
+
"additionalProperties": false,
127
+
"description": "A date or date and time value.",
128
+
"properties": {
129
+
"attribute": {
130
+
"$ref": "#/$defs/Attribute",
131
+
"description": "The attribute being represented."
132
+
},
133
+
"raw_value": {
134
+
"description": "The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"",
135
+
"type": [
136
+
"string",
137
+
"null"
138
+
]
139
+
},
140
+
"value": {
141
+
"description": "The date or date/time value, expressed in ISO 8601-compatible form. Dates should be expressed as YYYY-MM-DD; times should be expressed as HH:MM:SS with optional milliseconds and an indication of the timezone.",
142
+
"type": [
143
+
"string",
144
+
"null"
145
+
]
146
+
}
147
+
},
148
+
"required": [
149
+
"attribute"
150
+
],
151
+
"title": "DateTimeValue",
152
+
"type": "object"
153
+
},
125
154
"Entity": {
126
155
"additionalProperties": false,
127
156
"description": "An object retrieved by BERtron from a BER data API.",
@@ -277,52 +306,9 @@
277
306
"title": "NameType",
278
307
"type": "string"
279
308
},
280
-
"NamedQuantityValue": {
281
-
"additionalProperties": false,
282
-
"description": "A quantity value where the attribute is already specified.",
283
-
"properties": {
284
-
"maximum_numeric_value": {
285
-
"description": "The maximum value part, expressed as number, of the quantity value when the value covers a range.",
286
-
"type": [
287
-
"number",
288
-
"null"
289
-
]
290
-
},
291
-
"minimum_numeric_value": {
292
-
"description": "The minimum value part, expressed as number, of the quantity value when the value covers a range.",
293
-
"type": [
294
-
"number",
295
-
"null"
296
-
]
297
-
},
298
-
"numeric_value": {
299
-
"description": "Links a quantity value to a number",
300
-
"type": [
301
-
"number",
302
-
"null"
303
-
]
304
-
},
305
-
"raw_value": {
306
-
"description": "The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"",
307
-
"type": [
308
-
"string",
309
-
"null"
310
-
]
311
-
},
312
-
"unit": {
313
-
"description": "Links a QuantityValue to a unit. Units should be taken from the UCUM unit collection or the Unit Ontology.",
314
-
"type": [
315
-
"string",
316
-
"null"
317
-
]
318
-
}
319
-
},
320
-
"title": "NamedQuantityValue",
321
-
"type": "object"
322
-
},
323
309
"QuantityValue": {
324
310
"additionalProperties": false,
325
-
"description": "A simple quantity, e.g. 2cm",
311
+
"description": "A simple quantity, e.g. 2cm.",
326
312
"properties": {
327
313
"attribute": {
328
314
"$ref": "#/$defs/Attribute",
@@ -343,7 +329,7 @@
343
329
]
344
330
},
345
331
"numeric_value": {
346
-
"description": "The number part of the quantity",
332
+
"description": "The numerical part of a quantity value.",
347
333
"type": [
348
334
"number",
349
335
"null"
@@ -357,7 +343,14 @@
357
343
]
358
344
},
359
345
"unit": {
360
-
"description": "The unit of the quantity",
346
+
"description": "Links a QuantityValue to a unit. Units should be taken from the UCUM unit collection or the Unit Ontology.",
347
+
"type": [
348
+
"string",
349
+
"null"
350
+
]
351
+
},
352
+
"unit_cv_id": {
353
+
"description": "The unit of the quantity, expressed as a CURIE from the Unit Ontology.",
361
354
"type": [
362
355
"string",
363
356
"null"
@@ -379,7 +372,7 @@
379
372
"description": "The attribute being represented."
380
373
},
381
374
"raw_value": {
382
-
"description": "The raw value.",
375
+
"description": "The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"",
0 commit comments