Top Banner
SDMX 9 Webservices UN/FAO - Erik van Ingen Abuja, Nigeria, 13-14 May 2015
26

Sdmx9 webservices

Jan 22, 2018

Download

Data & Analytics

Erik Van Ingen
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Sdmx9 webservices

SDMX 9 Webservices

UN/FAO - Erik van IngenAbuja, Nigeria, 13-14 May 2015

Page 2: Sdmx9 webservices

What on earth is a webservice?

Page 3: Sdmx9 webservices

First some terms

Access Point or End PointThe application or endpoint on the internet where the data or program is accessed

MachineAn internet browser or any other sorts of computer program

HumanAs opposed to a machine, a human being

NetworkComputer network, internet

Page 4: Sdmx9 webservices

webservice

http://en.wikipedia.org/wiki/Web_service

http://en.wikipedia.org/wiki/Web_API

Page 5: Sdmx9 webservices

IMF

Page 6: Sdmx9 webservices

SDMX webservice

is an endpoint, published on a server (machine), reachable over the network

Page 7: Sdmx9 webservices

NBS

State 1

State 2

State n

LGA 1

LGA 2

LGA n

Page 8: Sdmx9 webservices

SDMX Client

IMFsdmxclient

We will talk more about the SDMX client in another presentation

Page 9: Sdmx9 webservices

2 flavors

SOAP

&

REST

This course will not discuss SOAP and continuous with REST

Page 10: Sdmx9 webservices

SDMX RESTful APi

• This SDMX API is based on the REST principles, as described below

• In REST, specific information is known as “Resource”. In SDMX, specific resources would be, for example, code lists, concept schemes, data structure definitions, dataflows, etc.

• Each resource is addressable via a global identifier (i.e.: a URI).

Page 11: Sdmx9 webservices

Structural Metadata Queries

The following resources are defined:

• datastructure

• conceptscheme

• codelist

• Agencyscheme

• Etc.

Page 12: Sdmx9 webservices

Example 1

http://ws-entry-point/codelist/all/CL_FREQ

www.nigerianstat.gov.ng/sdmx/codelist/all/CL_FREQ

Page 13: Sdmx9 webservices

Example 2

version 1.0 of the DSD with id ECB_EXR1 maintained by the ECB, as well as the code lists and the concepts used in the DSD

http://ws-entry-point/datastructure/ECB/ECB_EXR1/1.0?references=children

Page 14: Sdmx9 webservices

Example 3

latest version in production of the DSD with id ECB_EXR1 maintained by the 336 ECB, without the code lists and concepts of the DSD

http://ws-entry-point/datastructure/ECB/ECB_EXR1

Page 15: Sdmx9 webservices

Example 4

all DSDs maintained by the ECB, as well as the dataflows using these DSDs

http://ws-entry-point/datastructure/ECB?references=dataflow

Page 16: Sdmx9 webservices

Example 5

latest version in production of all code lists maintained by all maintenance agencies, but without the codes

http://ws-entry-point/codelist?detail=allstubs

Page 17: Sdmx9 webservices

Example 6

as stubs, the latest version in production of all maintainable artefacts maintained 345 by the ECB

http://ws-entry-point/structure/ECB?detail=allstubs

Page 18: Sdmx9 webservices

Data Queries

http://ws-entry-point/data/

This could be:www.nigerianstat.gov.ng/sdmx/data/etc

Page 19: Sdmx9 webservices

Example 1

data for the series M.USD.EUR.SP00.A supplied by the ECB for the 375 ECB_EXR1_WEB dataflow

http://ws-entry-point/data/ECB_EXR1_WEB/M.USD.EUR.SP00.A/ECB

In this example, the assumption is made that the dataflow id (ECB_EXR1_WEB) is sufficient to uniquely identify the dataflow, and the data provider id (ECB) is sufficient to uniquely identify the data provider

Page 20: Sdmx9 webservices

Example 2

data, provided by the ECB for the ECB_EXR1_WEB dataflow, for the supplied series keys, using wildcarding for the second dimension

http://ws-entry-point/data/ECB,ECB_EXR1_WEB,latest/M..EUR.SP00.A/ECB

In this example, the full reference to the dataflow is supplied (ECB as maintenance agency, ECB_EXR1_WEB as dataflow id and latest for the version)

Page 21: Sdmx9 webservices

Example 3

updates and revisions for the data matching the supplied series keys, using the OR operator for the second dimension, and using percent encoding for the updatedAfter Date

http://ws-entry-389 point/Data/ECB_EXR1_WEB/M.USD+GBP+JPY.EUR.SP00.A?updatedAfter=2390 009-05-15T14 %3A 15 %3A 00%2B01%3A00

Page 22: Sdmx9 webservices

Example 4

data matching the supplied series key and restricting the start and end dates

http://ws-entry-394 point/data/ECB_EXR1_WEB/D.USD.EUR.SP00.A?startPeriod=2009-05-395 01&endPeriod=2009-05-31

Page 23: Sdmx9 webservices

Specification

http://sdmx.org/wp-content/uploads/2013/09/SDMX_2_1-SECTION_07_WebServicesGuidelines_2013-04.pdf

Page 24: Sdmx9 webservices

open data & api

http://en.wikipedia.org/wiki/Open_data

http://en.wikipedia.org/wiki/Web_API

Page 25: Sdmx9 webservices

SDMX & open data & api

What does open data mean for the statistical data community?

Why are the technology trendsetters (Google, Facebook, Twitter, Amazon) publishing APIs?

SDMX REST API is a way to open your statistical data, by publishing a formal API

Page 26: Sdmx9 webservices

thank you