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\"",
Copy file name to clipboardExpand all lines: src/schema/linkml/bertron_types.yaml
+42-35Lines changed: 42 additions & 35 deletions
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,13 @@ default_range: string
15
15
16
16
slots:
17
17
18
+
attribute:
19
+
description: The attribute being represented.
20
+
range: Attribute
21
+
required: true
22
+
18
23
numeric_value:
19
-
description: Links a quantity value to a number
24
+
description: The numerical part of a quantity value.
20
25
range: float
21
26
mappings:
22
27
- nmdc:numeric_value
@@ -45,11 +50,24 @@ slots:
45
50
description: Links a QuantityValue to a unit. Units should be taken from the UCUM unit collection or the Unit Ontology.
46
51
aliases:
47
52
- scale
48
-
range: unit
53
+
range: string
49
54
mappings:
50
55
- nmdc:unit
51
56
- qud:unit
52
57
- schema:unitCode
58
+
- UO:0000000
59
+
60
+
unit_cv_id:
61
+
description: The unit of the quantity, expressed as a CURIE from the Unit Ontology.
62
+
range: curie
63
+
64
+
value:
65
+
description: The value, as a text string.
66
+
range: string
67
+
68
+
value_cv_id:
69
+
description: For values that are in a controlled vocabulary (CV), this attribute should capture the controlled vocabulary ID for the value.
70
+
range: curie
53
71
54
72
classes:
55
73
@@ -61,14 +79,9 @@ classes:
61
79
class_uri: nmdc:AttributeValue
62
80
description: >-
63
81
The value for any value of attribute for an entity. This object can hold both the un-normalized atomic value and the structured value.
64
-
attributes:
65
-
attribute:
66
-
description: The attribute being represented.
67
-
range: Attribute
68
-
required: true
69
-
raw_value:
70
-
range: string
71
-
description: The raw value.
82
+
slots:
83
+
- attribute
84
+
- raw_value
72
85
73
86
Attribute:
74
87
description: A domain, measurement, attribute, property, or any descriptor for additional properties to be added to an entity. Where available, please use OBO Foundry ontologies or other controlled vocabularies for attributes; the label should be the term name from the ontology and the id should be the fully-qualified CURIE.
description: A quantity value where the attribute is already specified.
107
-
slots:
108
-
- maximum_numeric_value
109
-
- minimum_numeric_value
110
-
- numeric_value
111
-
- unit
112
-
- raw_value
113
-
114
115
TextValue:
115
116
class_uri: nmdc:TextValue
116
117
is_a: AttributeValue
117
118
description: A quality, described using a text string.
118
-
attributes:
119
+
slots:
120
+
- value
121
+
- value_cv_id
122
+
123
+
DateTimeValue:
124
+
class_uri: nmdc:DateTimeValue
125
+
is_a: AttributeValue
126
+
description: A date or date and time value.
127
+
slots:
128
+
- value
129
+
slot_usage:
119
130
value:
120
-
description: The value, as a text string.
121
-
value_cv_id:
122
-
description: For values that are in a controlled vocabulary (CV), this attribute should capture the controlled vocabulary ID for the value.
131
+
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.
0 commit comments