Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add requirements/conformance classes/abstract tests/examples for WCMP2 ETS/KPI, WNM #6

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
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 examples/wme-gdc-wcmp2-ets.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"specversion": "1.0",
"type": "int.wmo.wis.wme.event.wcmp2",
"type": "int.wmo.wis.wme.event.wcmp2.ets",
"source": "ca-eccc-msc-global-discovery-catalogue",
"subject": "de-dwd",
"id": "6e1c7f9f-dd6c-48d9-bbc4-aef0625f1fb8",
Expand Down
99 changes: 99 additions & 0 deletions examples/wme-gdc-wcmp2-kpi.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
{
"specversion": "1.0",
"type": "int.wmo.wis.wme.event.wcmp2.kpi",
"source": "ca-eccc-msc-global-discovery-catalogue",
"subject": "de-dwd",
"id": "6e1c7f9f-dd6c-48d9-bbc4-aef0625f1fb8",
"time": "2025-02-01T18:19:37Z",
"datacontenttype": "application/json",
"dataschema": "https://schemas.wmo.int/wme/1.0.0/schemas/wcmp2-ets-bundled.json",
"data": {
"id": "38631309-36b7-4c71-a7cd-aaca48f81a49",
"report_type": "kpi",
"metadata_id": "urn:wmo:md:de-dwd:icon-eps.ALL",
"datetime": "2025-02-01T18:17:24Z",
"generated_by": "pywcmp 0.10.1 (https://github.com/wmo-im/pywcmp)",
"tests": [
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/contacts",
"title": "Contacts",
"total": 3,
"score": 3,
"comments": [],
"percentage": 100.0
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/good_quality_description",
"title": ": Good quality description",
"total": 4,
"score": 3,
"comments": [
"Description contains spelling errors ['eps', 'deg', '180h', 'lat', '6h', 'utc', 'lon']"
],
"percentage": 75.0
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/graphic_overview_for_metadata_records",
"title": "Graphic overview for metadata records",
"total": 0,
"score": 0,
"comments": [],
"percentage": null
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/links_health",
"title": "Links health",
"total": 22,
"score": 22,
"comments": [],
"percentage": 100.0
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/persistent_identifiers",
"title": "Persistent identifiers",
"total": 3,
"score": 1,
"comments": [
"No DOI/ARK/HDL schema found"
],
"percentage": 33.333
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/time_intervals",
"title": "Time intervals",
"total": 6,
"score": 5,
"comments": [
"No temporal resolution found"
],
"percentage": 83.333
},
{
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/good_quality_title",
"title": "Global Ensemble Prediction Model",
"total": 8,
"score": 7,
"comments": [
"Title is not sentence case"
],
"percentage": 87.5
}
],
"summary": {
"total": 46,
"score": 41,
"comments": {
"id": "http://wis.wmo.int/spec/wcmp/2/kpi/core/good_quality_title",
"title": "Global Ensemble Prediction Model",
"total": 8,
"score": 7,
"comments": [
"Title is not sentence case"
],
"percentage": 87.5
},
"percentage": 89.13,
"grade": "A"
}
}
}
5 changes: 3 additions & 2 deletions schemas/monitoringEventMessageEncodingJSON.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@ allOf:
type:
type: string
enum:
- int.wmo.wis.wme.event.wcmp2
- int.wmo.wis.wme.event.wcmp2.ets
- int.wmo.wis.wme.event.wcmp2.kpi
- int.wmo.wis.wme.event.wnm
- int.wmo.wis.wme.event.system.alert

- required:
- datacontenttype
- dataschema
- subject
- time
- data

24 changes: 24 additions & 0 deletions schemas/systemAlertJSON.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
$schema: https://json-schema.org/draft/2020-12/schema
$id: https://schemas.wmo.int/wme/1/systemAlertJSON.yaml
title: System Alert report
description: System Alert report

properties:
id:
type: string
format: uuid
level:
type: string
description: report level
enum:
- debug
- info
- warn
- error
- critical
message:
type: string
required:
- id
- level
- message
81 changes: 0 additions & 81 deletions schemas/wcmp2-ets-bundled.json

This file was deleted.

104 changes: 0 additions & 104 deletions schemas/wcmp2-kpi-bundled.json

This file was deleted.

59 changes: 0 additions & 59 deletions schemas/wcmp2EtsJSON.yaml

This file was deleted.

Loading