neontribe / Linked_Development

Linked Development
1 stars 1 forks source link

count->documents->country #54

Closed tobybatch closed 11 years ago

tobybatch commented 11 years ago

Missing URL/ID for meta data.

practicalparticipation commented 11 years ago

To help with unifying data across the two sources we should construct our meta data URLs from the ISO code:

E.g. http://api.ids.ac.uk/openapi/eldis/get/countries/IN/full/india/

(although we should probably leave the /india/ off the end too - as I'm not sure this helpful in keeping URIs stable across country name variations)

So - the meta-data URL for India we construct should be:

http://{api-domain}/openapi/{eldis/r4d/all}/get/countries/IN/full

I'll write the query for responding to this (currently still to do) so that it is able to handle queries where someone provides the ELDIS ID for a country, but by default the ISO code is more general and is always available.

This isn't the case with regions, where no such unified set of codes exists (though I notice I might need to review the region query so it return a best-ID for each region there...)