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

Get canonical data from variable #28

Open
kyao opened this issue Jun 2, 2020 · 0 comments
Open

Get canonical data from variable #28

kyao opened this issue Jun 2, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request
Milestone

Comments

@kyao
Copy link
Contributor

kyao commented Jun 2, 2020

Implement GET /datasets/id/variables/id2

The API will include a query string where the user specifies the country

For example, GET /datasets/UAZ/variables/VUAZ-0 without any query parameters should return:

dataset_id,variable_id,variable,main_subject,main_subject_id,value,value_unit,time,time_precision,country,place,coordinate
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.16,%,1971-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.16,%,1972-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.17,%,1973-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.17,%,1974-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.15,%,1975-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.15,%,1976-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.16,%,1977-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.19,%,1978-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.2,%,1979-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.19,%,1980-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.21,%,1981-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.19,%,1982-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.21,%,1983-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.18,%,1984-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.18,%,1985-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.16,%,1986-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.27,%,1987-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.24,%,1988-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.23,%,1989-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.26,%,1990-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
UAZ,VUAZ-0,"FAO: Agriculture and forestry energy use as a % of total Energy use, Energy used in agriculture and forestry[%]",Ethiopia,Q115,0.18,%,1991-01-01T00:00:00Z,year,Ethiopia,,Point(40.0 9.0)
@szeke szeke added this to the June 12 milestone Jun 4, 2020
@szeke szeke added the enhancement New feature or request label Jun 4, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants