Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/schema/datamodel/bertron_schema_pydantic.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ class Entity(ConfiguredBaseModel):
'tree_root': True})

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']} })
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']} })
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']} })
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']} })
description: Optional[str] = Field(default=None, description="""Textual description of the entity.""", json_schema_extra = { "linkml_meta": {'alias': 'description',
'domain_of': ['Entity', 'DataCollection'],
Expand Down
20 changes: 16 additions & 4 deletions src/schema/jsonschema/bertron_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,14 @@
"description": "The BER member from whence the entity originated."
},
"coordinates": {
"$ref": "#/$defs/Coordinates",
"anyOf": [
{
"$ref": "#/$defs/Coordinates"
},
{
"type": "null"
}
],
"description": "The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference."
},
"description": {
Expand Down Expand Up @@ -217,7 +224,6 @@
},
"required": [
"ber_data_source",
"coordinates",
"entity_type",
"uri"
],
Expand Down Expand Up @@ -432,7 +438,14 @@
"description": "The BER member from whence the entity originated."
},
"coordinates": {
"$ref": "#/$defs/Coordinates",
"anyOf": [
{
"$ref": "#/$defs/Coordinates"
},
{
"type": "null"
}
],
"description": "The geographic coordinates associated with an entity. For entities with a bounding box, the centroid is used as the geographic reference."
},
"description": {
Expand Down Expand Up @@ -498,7 +511,6 @@
},
"required": [
"ber_data_source",
"coordinates",
"entity_type",
"uri"
],
Expand Down