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
A domain, measurement, attribute, property, or any descriptor for additional properties to be added to an entity.
164
+
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.
id: Optional[str] =Field(default=None, description="""A CURIE for the attribute, should one exist.""", json_schema_extra= { "linkml_meta": {'alias': 'id', 'domain_of': ['Attribute', 'Entity', 'DataCollection']} })
171
-
label: Optional[str] =Field(default=None, description="""Text string to describe the attribute.""", json_schema_extra= { "linkml_meta": {'alias': 'label', 'aliases': ['name', 'title'], 'domain_of': ['Attribute']} })
168
+
id: Optional[str] =Field(default=None, description="""A CURIE for the attribute, should one exist. Where available, please use OBO Foundry ontologies or other controlled vocabularies for labelling attributes; the id should be the term ID from the ontology.""", json_schema_extra= { "linkml_meta": {'alias': 'id',
label: str=Field(default=..., description="""Text string to describe the attribute. Where available, please use OBO Foundry ontologies or other controlled vocabularies for labelling attributes; the label should be the term name from the ontology.""", json_schema_extra= { "linkml_meta": {'alias': 'label', 'aliases': ['name', 'title'], 'domain_of': ['Attribute']} })
172
172
173
173
174
174
classQuantityValue(AttributeValue):
@@ -189,22 +189,48 @@ class QuantityValue(AttributeValue):
189
189
'name': 'unit'}}})
190
190
191
191
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',
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',
@@ -216,8 +242,8 @@ class TextValue(AttributeValue):
216
242
217
243
value: Optional[str] =Field(default=None, description="""The value, as a text string.""", json_schema_extra= { "linkml_meta": {'alias': 'value', 'domain_of': ['TextValue']} })
218
244
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']} })
altitude: Optional[QuantityValue] =Field(default=None, title="altitude", description="""Altitude is a term used to identify heights of objects such as airplanes, space shuttles, rockets, atmospheric balloons and heights of places such as atmospheric layers and clouds. It is used to measure the height of an object which is above the earth's surface. In this context, the altitude measurement is the vertical distance between the earth's surface above sea level and the sampled position in the air""", json_schema_extra= { "linkml_meta": {'alias': 'altitude',
319
+
altitude: Optional[NamedQuantityValue] =Field(default=None, title="altitude", description="""Altitude is a term used to identify heights of objects such as airplanes, space shuttles, rockets, atmospheric balloons and heights of places such as atmospheric layers and clouds. It is used to measure the height of an object which is above the earth's surface. In this context, the altitude measurement is the vertical distance between the earth's surface above sea level and the sampled position in the air""", json_schema_extra= { "linkml_meta": {'alias': 'altitude',
depth: Optional[QuantityValue] =Field(default=None, title="depth", description="""The vertical distance below local surface, e.g. for sediment or soil samples depth is measured from sediment or soil surface, respectively. Depth can be reported as an interval for subsurface samples.""", json_schema_extra= { "linkml_meta": {'alias': 'depth',
325
+
depth: Optional[NamedQuantityValue] =Field(default=None, title="depth", description="""The vertical distance below local surface, e.g. for sediment or soil samples depth is measured from sediment or soil surface, respectively. Depth can be reported as an interval for subsurface samples.""", json_schema_extra= { "linkml_meta": {'alias': 'depth',
elevation: Optional[QuantityValue] =Field(default=None, title="elevation", description="""Elevation of the sampling site is its height above a fixed reference point, most commonly the mean sea level. Elevation is mainly used when referring to points on the earth's surface, while altitude is used for points above the surface, such as an aircraft in flight or a spacecraft in orbit.""", json_schema_extra= { "linkml_meta": {'alias': 'elevation',
332
+
elevation: Optional[NamedQuantityValue] =Field(default=None, title="elevation", description="""Elevation of the sampling site is its height above a fixed reference point, most commonly the mean sea level. Elevation is mainly used when referring to points on the earth's surface, while altitude is used for points above the surface, such as an aircraft in flight or a spacecraft in orbit.""", json_schema_extra= { "linkml_meta": {'alias': 'elevation',
Copy file name to clipboardExpand all lines: src/schema/jsonschema/bertron_schema.json
+61-26Lines changed: 61 additions & 26 deletions
Original file line number
Diff line number
Diff line change
@@ -14,23 +14,23 @@
14
14
},
15
15
"Attribute": {
16
16
"additionalProperties": false,
17
-
"description": "A domain, measurement, attribute, property, or any descriptor for additional properties to be added to an entity.",
17
+
"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.",
18
18
"properties": {
19
19
"id": {
20
-
"description": "A CURIE for the attribute, should one exist.",
20
+
"description": "A CURIE for the attribute, should one exist. Where available, please use OBO Foundry ontologies or other controlled vocabularies for labelling attributes; the id should be the term ID from the ontology.",
21
21
"type": [
22
22
"string",
23
23
"null"
24
24
]
25
25
},
26
26
"label": {
27
-
"description": "Text string to describe the attribute.",
28
-
"type": [
29
-
"string",
30
-
"null"
31
-
]
27
+
"description": "Text string to describe the attribute. Where available, please use OBO Foundry ontologies or other controlled vocabularies for labelling attributes; the label should be the term name from the ontology.",
28
+
"type": "string"
32
29
}
33
30
},
31
+
"required": [
32
+
"label"
33
+
],
34
34
"title": "Attribute",
35
35
"type": "object"
36
36
},
@@ -53,7 +53,7 @@
53
53
"altitude": {
54
54
"anyOf": [
55
55
{
56
-
"$ref": "#/$defs/QuantityValue"
56
+
"$ref": "#/$defs/NamedQuantityValue"
57
57
},
58
58
{
59
59
"type": "null"
@@ -64,7 +64,7 @@
64
64
"depth": {
65
65
"anyOf": [
66
66
{
67
-
"$ref": "#/$defs/QuantityValue"
67
+
"$ref": "#/$defs/NamedQuantityValue"
68
68
},
69
69
{
70
70
"type": "null"
@@ -75,7 +75,7 @@
75
75
"elevation": {
76
76
"anyOf": [
77
77
{
78
-
"$ref": "#/$defs/QuantityValue"
78
+
"$ref": "#/$defs/NamedQuantityValue"
79
79
},
80
80
{
81
81
"type": "null"
@@ -304,19 +304,55 @@
304
304
"title": "NameType",
305
305
"type": "string"
306
306
},
307
+
"NamedQuantityValue": {
308
+
"additionalProperties": false,
309
+
"description": "A quantity value where the attribute is already specified.",
310
+
"properties": {
311
+
"maximum_numeric_value": {
312
+
"description": "The maximum value part, expressed as number, of the quantity value when the value covers a range.",
313
+
"type": [
314
+
"number",
315
+
"null"
316
+
]
317
+
},
318
+
"minimum_numeric_value": {
319
+
"description": "The minimum value part, expressed as number, of the quantity value when the value covers a range.",
320
+
"type": [
321
+
"number",
322
+
"null"
323
+
]
324
+
},
325
+
"numeric_value": {
326
+
"description": "Links a quantity value to a number",
327
+
"type": [
328
+
"number",
329
+
"null"
330
+
]
331
+
},
332
+
"raw_value": {
333
+
"description": "The value that was specified for an annotation in raw form, i.e. a string. E.g. \"2 cm\" or \"2-4 cm\"",
334
+
"type": [
335
+
"string",
336
+
"null"
337
+
]
338
+
},
339
+
"unit": {
340
+
"description": "Links a QuantityValue to a unit. Units should be taken from the UCUM unit collection or the Unit Ontology.",
341
+
"type": [
342
+
"string",
343
+
"null"
344
+
]
345
+
}
346
+
},
347
+
"title": "NamedQuantityValue",
348
+
"type": "object"
349
+
},
307
350
"QuantityValue": {
308
351
"additionalProperties": false,
309
352
"description": "A simple quantity, e.g. 2cm",
310
353
"properties": {
311
354
"attribute": {
312
-
"anyOf": [
313
-
{
314
-
"$ref": "#/$defs/Attribute"
315
-
},
316
-
{
317
-
"type": "null"
318
-
}
319
-
],
355
+
"$ref": "#/$defs/Attribute",
320
356
"description": "The attribute being represented."
321
357
},
322
358
"maximum_numeric_value": {
@@ -355,6 +391,9 @@
355
391
]
356
392
}
357
393
},
394
+
"required": [
395
+
"attribute"
396
+
],
358
397
"title": "QuantityValue",
359
398
"type": "object"
360
399
},
@@ -363,14 +402,7 @@
363
402
"description": "A quality, described using a text string.",
0 commit comments