Open
Description
The problem: how to let HAPI clients know that there are different cadences of a dataset available in an automated way so that clients can automatically select an appropriate cadence.
This issue relates to several other issues about linkages and file listings, etc. This issue is focused on solving the cadence problem in a way that doesn't paint us into a corner with linking file listings, availability info, and possibly even images or semantic descriptions of data.
Other related issues:
- key one is this: Convention for communicating that dataset that is file listing associated with another dataset #176 (shows JASON-LD)
- All - Think about how to leverage JSON-LD for linkages within HAPI tasks#19 (JSON-LD and linkages)
- Proposal for new "files" endpoint #218 (proposal for files endpoint)
- add provenance info to HAPI info response #186 (about provenance, but this relates to file listings)
- associate related datasets that have different sampling modes over time #118 (associate datasets by sampling time)
- How to link a HAPI server + dataset id to an observatory/spacecraft #106 (link HAPI data to mission or instrument)
- add processing options for servers and for specific datasets #79 (add processing options?)
- datasets related by resolution or availability #78 (datasets related by resolution or availability)
- Proposal for availability files #70 (availability files)
- how to extend the capabilities of a server? #59 (extend server capabilities)
Two existing servers have solved the cadence linking problem in closely related ways, so we should come up with a recommended way.
The KNMI solution:
- KNMI has cadences appended. See the catalog for details.
- https://hapi.spaceweather.knmi.nl/hapi/catalog
- The first entry is the highest cadence of an electron density dataset:
brik_ii_electron_density
- in the info response for that dataset: https://hapi.spaceweather.knmi.nl/hapi/info?dataset=brik_ii_electron_density
- there is an extension parameter
x_relations
that has a list of datasets of the same data but at other cadences - here are the first 3 datasets in that list:
"x_relations": [
{
"id": "brik_ii_electron_density_PT0_005S",
"description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 5 millisecond cadence",
"cadence": "PT0.005S",
"type": "resample",
"method": "max",
"add": "automatic"
},
{
"id": "brik_ii_electron_density_PT0_01S",
"description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 10 millisecond cadence",
"cadence": "PT0.01S",
"type": "resample",
"method": "max",
"add": "automatic"
},
{
"id": "brik_ii_electron_density_PT0_05S",
"description": "Electron density data from the BRIK-II scintillation monitor, downsampled to 50 millisecond cadence",
"cadence": "PT0.05S",
"type": "resample",
"method": "max",
"add": "automatic"
}
The Intermagnet Solution
- The Intermagnet hapi server
- https://imag-data.bgs.ac.uk/GIN_V1/hapi/catalog
- does it differently. There are 9 or more different versions of each dataset, some for different processing options, some for different cadences. Here is the start of the catalog,
"catalog" : [ {
"id" : "aae/definitive/PT1M/native",
"title" : "Definitive minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/definitive/PT1M/xyzf",
"title" : "Definitive minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/definitive/PT1M/hdzf",
"title" : "Definitive minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/definitive/PT1M/diff",
"title" : "Definitive minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1M/native",
"title" : "Quasi-def minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1M/xyzf",
"title" : "Quasi-def minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1M/hdzf",
"title" : "Quasi-def minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1M/diff",
"title" : "Quasi-def minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/reported/PT1M/native",
"title" : "Reported minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1M/native",
"title" : "Best-avail minute data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1M/xyzf",
"title" : "Best-avail minute data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1M/hdzf",
"title" : "Best-avail minute data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1M/diff",
"title" : "Best-avail minute data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1S/native",
"title" : "Quasi-def second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1S/xyzf",
"title" : "Quasi-def second data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1S/hdzf",
"title" : "Quasi-def second data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/quasi-def/PT1S/diff",
"title" : "Quasi-def second data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/reported/PT1S/native",
"title" : "Reported second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1S/native",
"title" : "Best-avail second data in NATIVE orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1S/xyzf",
"title" : "Best-avail second data in XYZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1S/hdzf",
"title" : "Best-avail second data in HDZF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
"id" : "aae/best-avail/PT1S/diff",
"title" : "Best-avail second data in DIFF orientation from Addis Ababa, Ethiopia (AAE)"
}, {
- In this Intermagnet catalog, the dataset names have a slash-separated portion of the cadence.
- There is no explicit linkage of the different cadences.