From 98ed4f61175ac168f5193897dfd0cfa0042aedbf Mon Sep 17 00:00:00 2001 From: Anna Milan Date: Fri, 1 Mar 2024 10:57:12 +0100 Subject: [PATCH] testing wis2box metadata --- examples/wis2box-temp-invalid.json | 109 ++++++++++++++++++++++++++++ examples/wis2box-temp-valid.json | 110 +++++++++++++++++++++++++++++ 2 files changed, 219 insertions(+) create mode 100644 examples/wis2box-temp-invalid.json create mode 100644 examples/wis2box-temp-valid.json diff --git a/examples/wis2box-temp-invalid.json b/examples/wis2box-temp-invalid.json new file mode 100644 index 0000000..f11b266 --- /dev/null +++ b/examples/wis2box-temp-invalid.json @@ -0,0 +1,109 @@ +{ + "id": "urn:x-wmo:md:md-qc:surface-based-observations.temp", + "conformsTo": [ + "http://wis.wmo.int/spec/wcmp/2.0" + ], + "type": "Feature", + "wis2box": { + "topic_hierarchy": "md-qc.data.core.weather.surface-based-observations.temp", + "country": "CHE", + "centre_id": "md-qc" + }, + "time": { + "interval": [ + "2024-2-29", + "2024-3-2" + ], + "resolution": "P12H" + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -76.0033466, + 1.3654691 + ], + [ + -75.7569629, + 1.3654691 + ], + [ + -75.7569629, + 1.0977792 + ], + [ + -76.0033466, + 1.0977792 + ], + [ + -76.0033466, + 1.3654691 + ] + ] + ] + }, + "properties": { + "title": "Upper-level temperature/humidity/wind reports from fixed-land stations (TEMP) (md-qc)", + "description": "This is a test of the metadata editor for temp data. ", + "keywords": [ + "upper air", + "humidity", + "wind", + "observations", + "test data" + ], + "themes": [ + { + "concepts": [ + { + "title": "weather" + } + ], + "scheme": [ + "https://github.com/wmo-im/wis2-topic-hierarchy/blob/main/topic-hierarchy/earth-system-discipline/index.csv" + ] + } + ], + "contacts": [ + { + "organization": "WMO", + "phones": [ + {} + ], + "emails": [ + { + "value": "amilan@wmo.int" + } + ], + "addresses": [ + { + "country": "CHE" + } + ], + "links": [ + {} + ], + "hoursOfService": "Hours: Mo-Fr 9am-5pm Sa 10am-5pm Su 10am-4pm", + "contactInstructions": "Email", + "roles": [ + "host" + ] + } + ], + "updated": "2024-03-01T09:40:45.840Z", + "wmo:dataPolicy": "core" + }, + "links": [ + { + "rel": "collection", + "href": "undefined/oapi/collections/urn:x-wmo:md:md-qc:surface-based-observations.temp", + "title": "urn:x-wmo:md:md-qc:surface-based-observations.temp" + }, + { + "rel": "canonical", + "href": "undefined/oapi/collections/discovery-metadata/items/urn:x-wmo:md:md-qc:surface-based-observations.temp", + "title": "urn:x-wmo:md:md-qc:surface-based-observations.temp" + } + ] +} \ No newline at end of file diff --git a/examples/wis2box-temp-valid.json b/examples/wis2box-temp-valid.json new file mode 100644 index 0000000..a200776 --- /dev/null +++ b/examples/wis2box-temp-valid.json @@ -0,0 +1,110 @@ +{ + "id": "urn:x-wmo:md:md-qc:surface-based-observations.temp", + "conformsTo": [ + "http://wis.wmo.int/spec/wcmp/2.0" + ], + "type": "Feature", + "wis2box": { + "topic_hierarchy": "md-qc.data.core.weather.surface-based-observations.temp", + "country": "CHE", + "centre_id": "md-qc" + }, + "time": { + "interval": [ + "2024-02-29", + "2024-03-02" + ], + "resolution": "P12H" + }, + "geometry": { + "type": "Polygon", + "coordinates": [ + [ + [ + -76.0033466, + 1.3654691 + ], + [ + -75.7569629, + 1.3654691 + ], + [ + -75.7569629, + 1.0977792 + ], + [ + -76.0033466, + 1.0977792 + ], + [ + -76.0033466, + 1.3654691 + ] + ] + ] + }, + "properties": { + "type":"dataset", + "title": "Upper-level temperature/humidity/wind reports from fixed-land stations (TEMP) (md-qc)", + "description": "This is a test of the metadata editor for temp data. ", + "keywords": [ + "upper air", + "humidity", + "wind", + "observations", + "test data" + ], + "themes": [ + { + "concepts": [ + { + "title": "weather" + } + ], + "scheme": [ + "https://github.com/wmo-im/wis2-topic-hierarchy/blob/main/topic-hierarchy/earth-system-discipline/index.csv" + ] + } + ], + "contacts": [ + { + "organization": "WMO", + "phones": [ + {} + ], + "emails": [ + { + "value": "amilan@wmo.int" + } + ], + "addresses": [ + { + "country": "CHE" + } + ], + "links": [ + {} + ], + "hoursOfService": "Hours: Mo-Fr 9am-5pm Sa 10am-5pm Su 10am-4pm", + "contactInstructions": "Email", + "roles": [ + "host" + ] + } + ], + "created": "2024-03-01T09:40:45.840Z", + "wmo:dataPolicy": "core" + }, + "links": [ + { + "rel": "collection", + "href": "undefined/oapi/collections/urn:x-wmo:md:md-qc:surface-based-observations.temp", + "title": "urn:x-wmo:md:md-qc:surface-based-observations.temp" + }, + { + "rel": "canonical", + "href": "undefined/oapi/collections/discovery-metadata/items/urn:x-wmo:md:md-qc:surface-based-observations.temp", + "title": "urn:x-wmo:md:md-qc:surface-based-observations.temp" + } + ] +} \ No newline at end of file