Skip to content

Commit 3e7f2cd

Browse files
Merge pull request #407 from GFDRR/360-spatial-temporal
Spatial and temporal updates
2 parents 10cd1a9 + 6ad2663 commit 3e7f2cd

File tree

3 files changed

+48
-17
lines changed

3 files changed

+48
-17
lines changed

docs/about/changelog.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ This page lists changes to the Risk Data Library Standard.
2929
- Rename `Source.component` to `Source.used_in`
3030
- Add `.lineage.description`
3131
- Remove `.hazard_id`, `.exposure_id` and `.vulnerability_id` from `Losses`
32+
- [#407](https://github.com/GFDRR/rdl-standard/pull/407)
33+
- Add `temporal` and `spatial_resolution` at dataset level
34+
- Add `spatial` to `Resource`
35+
- Update descriptions for `spatial`, `temporal`, `spatial_resolution` and `temporal_resolution` at both dataset and resource level.
3236
- [#406](https://github.com/GFDRR/rdl-standard/pull/406) - Remove fields:
3337
- `Event.footprint`
3438
- `Event_set.temporal`

docs/reference/schema.md

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ The following table lists all dataset-level fields:
8181
```{jsonschema} ../../docs/_readthedocs/html/rdls_schema.json
8282
---
8383
collapse:
84-
publisher,spatial,resources,referenced_by,contact_point,creator,attributions,links,hazard,exposure,vulnerability,loss
84+
publisher,spatial,temporal,spatial_resolution,resources,referenced_by,contact_point,creator,attributions,links,hazard,exposure,vulnerability,loss
8585
addtargets:
8686
---
8787
```
@@ -103,11 +103,17 @@ The following table lists all resource-level fields:
103103
```{jsonschema} ../../docs/_readthedocs/html/rdls_schema.json
104104
---
105105
pointer: /$defs/Resource
106-
collapse: temporal
106+
collapse: temporal,spatial
107107
addtargets:
108108
---
109109
```
110110

111+
## Spatial and temporal properties
112+
113+
Spatial and temporal coverage and resolution should be specified at both dataset and resource level, even when they are consistent amongst a dataset's resources.
114+
115+
If spatial or temporal coverage or resolution differ by resource, use the resource-level properties to describe the coverage and resolution of each resource, and the dataset-level properties to describe the overall coverage of the dataset. In particular, note that `spatial.gazetteer_entries` should be used to describe the overall area covered by the dataset, not each of the areas covered by the individual resources.
116+
111117
## Hazard metadata
112118

113119
The `hazard` component is described as:
@@ -877,6 +883,7 @@ jsonpointer: /$defs/Period/description
877883

878884
This sub-schema is referenced by the following properties:
879885

886+
- [`temporal`](rdls_schema.json,,temporal)
880887
- [`Resource/temporal`](rdls_schema.json,/$defs/Resource,temporal)
881888
- [`Event/occurrence/empirical/temporal`](rdls_schema.json,/$defs/Event,occurrence/empirical/temporal)
882889

@@ -903,6 +910,7 @@ jsonpointer: /$defs/Location/description
903910
This sub-schema is referenced by the following properties:
904911

905912
- [`spatial`](rdls_schema.json,,spatial)
913+
- [`Resource/spatial`](rdls_schema.json,/$defs/Resource,spatial)
906914

907915
Each `Location` has the following fields:
908916

@@ -1211,6 +1219,9 @@ jsonpointer: /$defs/Hazard/description
12111219

12121220
This sub-schema is referenced by the following properties:
12131221

1222+
- [`Function/hazard_primary`](rdls_schema.json,/$defs/Function,hazard_primary)
1223+
- [`Function/hazard_secondary`](rdls_schema.json,/$defs/Function,hazard_secondary)
1224+
12141225
Each `Hazard` has the following fields:
12151226

12161227
```{jsonschema} ../../docs/_readthedocs/html/rdls_schema.json
@@ -1264,7 +1275,7 @@ Each `Function` has the following fields:
12641275
```{jsonschema} ../../docs/_readthedocs/html/rdls_schema.json
12651276
---
12661277
pointer: /$defs/Function
1267-
collapse: impact_measurement
1278+
collapse: hazard_primary,hazard_secondary,impact_measurement
12681279
addtargets:
12691280
---
12701281
```

schema/rdls_schema.json

Lines changed: 30 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,24 @@
8383
},
8484
"spatial": {
8585
"title": "Spatial coverage",
86-
"description": "The geographical area covered by the dataset. If specified using coordinates, the use of `.bbox` is recommended over `.geometry` or `.centroid`.",
86+
"description": "The geographical area covered by the dataset. If specified using coordinates, the use of `.bbox` is recommended over `.geometry` or `.centroid`. The spatial coverage of the resources belonging to a dataset may differ and may be non-contiguous. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
8787
"$ref": "#/$defs/Location"
8888
},
89+
"spatial_resolution": {
90+
"title": "Spatial resolution",
91+
"type": "number",
92+
"description": "The minimum spatial separation resolvable amongst this dataset's resources, measured in meters. The spatial coverage and resolution of the resources belonging to a dataset may differ, therefore the minimum spatial resolution of the dataset may not be resolvable for all resources. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
93+
"exclusiveMinimum": 0
94+
},
95+
"temporal": {
96+
"title": "Temporal coverage",
97+
"description": "The period of time covered by the dataset. The temporal coverage of the resources belonging to a dataset may differ and may be non-contiguous. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
98+
"$ref": "#/$defs/Period"
99+
},
89100
"temporal_resolution": {
90101
"title": "Temporal resolution",
91102
"type": "string",
92-
"description": "The minimum period of time resolvable in this dataset, in ISO8601 duration format.",
103+
"description": "The minimum period of time resolvable amongst this dataset's resources, in ISO8601 duration format. The temporal coverage and resolution of the resources belonging to a dataset may differ, therefore the minimum temporal resolution of the dataset may not be resolvable for all resources. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
93104
"format": "duration"
94105
},
95106
"license": {
@@ -444,10 +455,15 @@
444455
"openCodelist": true,
445456
"minLength": 1
446457
},
458+
"spatial": {
459+
"title": "Spatial coverage",
460+
"description": "The geographical area covered by the resource. If specified using coordinates, the use of `.bbox` is recommended over `.geometry` or `.centroid`. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
461+
"$ref": "#/$defs/Location"
462+
},
447463
"spatial_resolution": {
448464
"title": "Spatial resolution",
449465
"type": "number",
450-
"description": "The minimum spatial separation resolvable in this resource, measured in meters.",
466+
"description": "The minimum spatial separation resolvable in this resource, measured in meters. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
451467
"exclusiveMinimum": 0
452468
},
453469
"spatial_aggregation": {
@@ -463,6 +479,17 @@
463479
"pattern": "^(ESRI:|EPSG:)[0-9]+$",
464480
"minLength": 1
465481
},
482+
"temporal": {
483+
"title": "Temporal coverage",
484+
"description": "The period of time covered by this resource. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
485+
"$ref": "#/$defs/Period"
486+
},
487+
"temporal_resolution": {
488+
"title": "Temporal resolution",
489+
"type": "string",
490+
"description": "The minimum period of time resolvable in this resources, in ISO8601 duration format. For more information, refer to [spatial and temporal properties](https://docs.riskdatalibrary.org/en/{{version}}/reference/schema/#spatial-and-temporal-properties).",
491+
"format": "duration"
492+
},
466493
"access_url": {
467494
"title": "Access Url",
468495
"type": "string",
@@ -474,17 +501,6 @@
474501
"type": "string",
475502
"description": "The web address this resource can be downloaded from in the given `.format`.",
476503
"minLength": 1
477-
},
478-
"temporal": {
479-
"title": "Temporal coverage",
480-
"description": "The period of time covered by this resource.",
481-
"$ref": "#/$defs/Period"
482-
},
483-
"temporal_resolution": {
484-
"title": "Temporal resolution",
485-
"type": "string",
486-
"description": "The minimum period of time resolvable in this resource, in ISO8601 duration format.",
487-
"format": "duration"
488504
}
489505
},
490506
"minProperties": 1

0 commit comments

Comments
 (0)