Skip to content

Commit 4ee7dfd

Browse files
Merge pull request #71 from ber-data/update-artifacts-20250915
Update artifacts
2 parents cc0d251 + fe234c8 commit 4ee7dfd

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

src/schema/datamodel/bertron_schema_pydantic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ class Entity(ConfiguredBaseModel):
256256
'tree_root': True})
257257

258258
ber_data_source: BERSourceType = Field(default=..., description="""The BER member from whence the entity originated.""", json_schema_extra = { "linkml_meta": {'alias': 'ber_data_source', 'domain_of': ['Entity']} })
259-
coordinates: Coordinates = Field(default=..., description="""The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference.""", json_schema_extra = { "linkml_meta": {'alias': 'coordinates', 'domain_of': ['Entity']} })
259+
coordinates: Optional[Coordinates] = Field(default=None, description="""The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference.""", json_schema_extra = { "linkml_meta": {'alias': 'coordinates', 'domain_of': ['Entity']} })
260260
entity_type: list[EntityType] = Field(default=..., description="""What kind of entity is this -- e.g. sequence data; a soil core; a well; field site; sample; etc.""", json_schema_extra = { "linkml_meta": {'alias': 'entity_type', 'domain_of': ['Entity']} })
261261
description: Optional[str] = Field(default=None, description="""Textual description of the entity.""", json_schema_extra = { "linkml_meta": {'alias': 'description',
262262
'domain_of': ['Entity', 'DataCollection'],

src/schema/jsonschema/bertron_schema.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,14 @@
151151
"description": "The BER member from whence the entity originated."
152152
},
153153
"coordinates": {
154-
"$ref": "#/$defs/Coordinates",
154+
"anyOf": [
155+
{
156+
"$ref": "#/$defs/Coordinates"
157+
},
158+
{
159+
"type": "null"
160+
}
161+
],
155162
"description": "The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference."
156163
},
157164
"description": {
@@ -217,7 +224,6 @@
217224
},
218225
"required": [
219226
"ber_data_source",
220-
"coordinates",
221227
"entity_type",
222228
"uri"
223229
],
@@ -432,7 +438,14 @@
432438
"description": "The BER member from whence the entity originated."
433439
},
434440
"coordinates": {
435-
"$ref": "#/$defs/Coordinates",
441+
"anyOf": [
442+
{
443+
"$ref": "#/$defs/Coordinates"
444+
},
445+
{
446+
"type": "null"
447+
}
448+
],
436449
"description": "The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference."
437450
},
438451
"description": {
@@ -498,7 +511,6 @@
498511
},
499512
"required": [
500513
"ber_data_source",
501-
"coordinates",
502514
"entity_type",
503515
"uri"
504516
],

0 commit comments

Comments
 (0)