Closed nastasi-oq closed 5 years ago
Question: The new API returns data only for existing datasets, is there a way to fetch all KeyDatasets in 1 request so as I can list them as "missing datasets"?
@oncletom about missing dataset let me check.
About new primary fields are you waiting for total number of datasets for each category (datasets_{open,restricted,closed,unknown}_count
), or the loop to calculate them is final ?
Well, I'm good with the "counts" (I compute them client-side, I previously implemented the decision tree for #404/#343) but if you provide the counts, I will use them instead. It's up to you.
@oncletom
*_count
attributes addedcategory
== "opendata
" instead of "open
" to be FE compliant.Already on exp.
.
{
"datasets_closed_count": 4,
"datasets_count": 37,
"datasets_restricted_count": 31,
"datasets_unknown_count": 11,
"scores": [
{
"keydataset_id": "HA_6A",
"is_open_licence": true,
"title": null,
"institution": "",
"is_avail_online": false,
"is_machine_read": true,
"is_existing_txt": "",
"is_existing": true,
"modify_time": "",
"dataset_id": 529,
"is_bulk_avail": false,
"name": "Flood hazard maps",
"category": "restricted",
"is_digital_form": true,
"is_avail_for_free": false,
"is_pub_available": true,
"is_avail_online_meta": true,
"score": 0,
"is_prov_timely_last": "",
"is_prov_timely": false
},
....
// for missing keydatasets "dataset_id": null, like:
{
"keydataset_id": "HA_10",
"is_open_licence": false,
"title": null,
"institution": null,
"is_avail_online": false,
"is_machine_read": false,
"is_existing_txt": false,
"is_existing": false,
"modify_time": null,
"dataset_id": null,
"is_bulk_avail": false,
"name": "Nearshore tsunami wave height",
"category": "unknown",
"is_digital_form": false,
"is_avail_for_free": false,
"is_pub_available": false,
"is_avail_online_meta": false,
"score": -1,
"is_prov_timely_last": false,
"is_prov_timely": false
},
],
"datasets_open_count": 2,
"keydatasets_count": 25
}
Looks good,
Question: is the score still useful? going to be removed?
We don't use the score
field so it can safely be removed.
@nastasi-oq can you remove score
and then merge?
The new scoring per country is available at: exp.riskopendata.org//api/scoring/AL @oncletom: attribute like perils counters are still needed ? Please let me know what are missing in this view. Possible categories are:
open
,restricted
,closed
,unknown
. The new scoring per country output is: