© Metadata Technology ESCWA SDMX Workshop Session: Web Services SDMX REST Interface.

Slides:



Advertisements
Similar presentations
Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
Advertisements

The use of SDMX at the ECB Xavier Sosnovsky European Central Bank Bonn,
OECD Expert Group on Statistical Data and Metadata Exchange Geneva May 2007 OECD.Stat SDMX Web Service (II) Jens Dossé, OECD.
Introduction to Web Services
Recent SDMX IT developments at the OECD SDMX Expert Group Meeting September 2012 OECD, Paris By Jens Dossé and Jonathan Challener.
Web Service Ahmed Gamal Ahmed Nile University Bioinformatics Group
DDI3 Uniform Resource Names: Locating and Providing the Related DDI3 Objects Part of Session: DDI 3 Tools: Possibilities for Implementers IASSIST Conference,
SDMX training session on basic principles, data structure definitions and data file implementation 29 November
SOAP Quang Vinh Pham Simon De Baets Université Libre de Bruxelles1.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
Slide 1 EE557: Server-Side Development Lecturer: David Molloy Room: XG19 Mondays 10am-1pm Notes:
Microsoft ® Official Course Interacting with the Search Service Microsoft SharePoint 2013 SharePoint Practice.
Sys Prog & Scripting - HW Univ1 Systems Programming & Scripting Lecture 15: PHP Introduction.
FALL 2005CSI 4118 – UNIVERSITY OF OTTAWA1 Part 4 Web technologies: HTTP, CGI, PHP,Java applets)
A Scalable Application Architecture for composing News Portals on the Internet Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta Famagusta.
Configuration Management and Server Administration Mohan Bang Endeca Server.
Survey Data Management and Combined use of DDI and SDMX DDI and SDMX use case Labor Force Statistics.
1 ELEN602 Lecture 2 Review of Last Lecture Layering.
Designing and Implementing Web Data Services in Perl
Sdmx web services Strutural data
CountryData Development Improving the collation, availability and dissemination of development indicators (including the MDGs) Nairobi, 27 November 2013.
Restricted Daejeon, April An SDMX based unified data catalogue (UDC) MSIS – Meeting on the Management of Statistical Information Systems 1.
James Holladay, Mario Sweeney, Vu Tran. Web Services Presentation Web Services Theory James Holladay Tools – Visual Studio Vu Tran Tools – Net Beans Mario.
METADATA HARMONISATION SDMX Training BANK INDONESIA SEPTEMBER 2015 YOGYAKARTA, INDONESIA.
Open Data Protocol * Han Wang 11/30/2012 *
© 2006 Hewlett-Packard Development Company, L.P. The information contained herein is subject to change without notice HP Library Encryption - LTO4 Key.
SDMX Web Services the JSON version Sami Airo & Gerard Salou.
Using a LDAP Directory Server for Environmental Data Discovery Donald Denbo NOAA-PMEL/UW-JISAO Presented by Eugene Burger NOAA-PMEL/UW-JISAO
REST - Introduction Based on material from InfoQ.com (Stefan Tilkov) And slides from MindTouch.com (Steve Bjorg) 1.
© Metadata Technology ESCWA SDMX Workshop Session: SDMX and a Re-usable Component Architecture.
1 Seminar on Service Oriented Architecture Principles of REST.
2007cs Servers on the Web. The World-Wide Web 2007 cs CSS JS HTML Server Browser JS CSS HTML Transfer of resources using HTTP.
Eurostat 4. SDMX: Main objects for data exchange 1 Raynald Palmieri Eurostat Unit B5: “Central data and metadata services” SDMX Basics course, October.
Representational State Transfer (REST). What is REST? Network Architectural style Overview: –Resources are defined and addressed –Transmits domain-specific.
JS (Java Servlets). Internet evolution [1] The internet Internet started of as a static content dispersal and delivery mechanism, where files residing.
Internet Applications (Cont’d) Basic Internet Applications – World Wide Web (WWW) Browser Architecture Static Documents Dynamic Documents Active Documents.
RESTful Web Services What is RESTful?
Web Technologies Lecture 10 Web services. From W3C – A software system designed to support interoperable machine-to-machine interaction over a network.
Eurostat November 2015 Eurostat Unit B3 – IT and standards for data and metadata exchange Jean-Francois LEBLANC Christian SEBASTIAN SDMX IT Tools SDMX.
ASP-2-1 SERVER AND CLIENT SIDE SCRITPING Colorado Technical University IT420 Tim Peterson.
Eurostat November 2015 Eurostat Unit B3 – IT and standards for data and metadata exchange SDMX IT Tools SDMX Converter Jean-Francois LEBLANC Christian.
RESTful Studies Services Jim Philbin American College of Radiology Johns Hopkins School of Medicine DICOM Standard Committee, User Co-Chair DICOM WG-27,
Automated Access to Statistical Facts via Statline4 Web Services Olav ten Bosch Statistics Netherlands UN-ECE conference, Bratislava April.
Eurostat November 2015 Eurostat Unit B3 – IT and standards for data and metadata exchange Jean-Francois LEBLANC Christian SEBASTIAN SDMX IT Tools SDMX.
1 Chapter 22 World Wide Web (HTTP) Chapter 22 World Wide Web (HTTP) Mi-Jung Choi Dept. of Computer Science and Engineering
© 2010 IBM Corporation RESTFul Service Modelling in Rational Software Architect April, 2011.
Linked Data Publishing on the Semantic Web Dr Nicholas Gibbins
Eurostat 6. SDMX: A non-technical overview of the SDMX architecture and IT tools 1 Raynald Palmieri Eurostat Unit B5: “Central data and metadata services”
REST API Design. Application API API = Application Programming Interface APIs expose functionality of an application or service that exists independently.
B.6 Roadmap 2013 – 2014 SDMX RI User Group Luxembourg, September 2013.
Content from Python Docs.
WEB SERVICES From Chapter 19 of Distributed Systems Concepts and Design,4th Edition, By G. Coulouris, J. Dollimore and T. Kindberg Published by Addison.
z/Ware 2.0 Technical Overview
WEB SERVICES.
Node.js Express Web Services
Common object request broker
An introduction to REST for SharePoint 2013
Hypertext Transfer Protocol
Ashish Pandit IT Architect, Middleware & Integration Services
WEB API.
SDMX Reference Infrastructure Introduction
Serpil TOK, Zeki BAYRAM. Eastern MediterraneanUniversity Famagusta
WEB SERVICES From Chapter 19, Distributed Systems
SODI Live Demonstration
Eurostat Unit B3 – IT and standards for data and metadata exchange
Eurostat Unit B3 – IT and standards for data and metadata exchange
Presentation plan Accessing and Retrieving SDMX data
Developing SDMX artefacts for data exchange, sharing and dissemination
Standardizing and industrializing a business process – the dissemination use case Alessio Cardacino - ESTP Course “Information standards.
SDMX IT Tools SDMX Registry
Presentation transcript:

© Metadata Technology ESCWA SDMX Workshop Session: Web Services SDMX REST Interface

RESTful web services These slides are based on the presentation given at the SDMX Global Conference 2011 by the ECB

What are web services? Make resources published on the Internet available via an API XML used as representation Application-to-application interactions Main benefits: –Automated processes –Language- and OS-independent –Standardised protocols –Decentralised architecture with loosely-coupled components

SDMX RESTful web services: Basic principles Based on REST principles: –Resource addressability (URI) –Resource manipulation (HTTP GET, POST, etc) –Resource representation (HTTP content negotiation) Distinction between: –Parameters that identify a resource (in the path) Parameters that further refine the results (in the query string)

Structural metadata queries: Requirements Retrieve any maintainable artefact Resolve direct references Resolve artefacts using the matching artefact Retrieve minimal version of the artefact

Structural metadata queries: Parameters Parameters used for identifying a resource: id, agency id and version (in the path) –Keywords can be used (ALL and LATEST) Parameters used to further refine the results: references and detail (in the query string) Syntax: protocol://ws-entry- point/resource/agencyID/resourceID/version[/?re ferences=String&detail=String]

Structural metadata queries: Examples Retrieve version 1.1 of the DSD MDG maintained by IAEG Retrieve the latest version in production of the DSD MDG maintained by IAEG, as well as the code lists and the concepts used in the data structure: Retrieve all DSDs maintained by the IAEG, as well as the dataflows using these DSDs: Retrieve all the artefacts maintained by the IAEG, but without the details:

Data queries: Requirements Retrieve statistical data and metadata using keys (with wildcarding and OR operator), flows and providers. Refine queries, using time information (start period and end period). Retrieve updates and revisions only.

Data queries: Parameters Parameters used for identifying a resource: flow id, key and provider id (in the path) –Keywords can be used (ALL) Parameters used to further refine the results: startPeriod, endPeriod, updatedAfter, firstNObservations, lastNObservations and dimensionAtObservation, detail Syntax: protocol:// ws-entry- point/resource/flow/key/provider[/?startPeriod=Standard TimePeriodType&endPeriod=StandardTimePeriodType& updatedAfter=timestamp&firstNObservations=uint&firstN Observations=uint&dimensionAtObservation=string&det ail=String]

Data queries: Examples Retrieve the data and attributes for the series A. SN_ITK_DEFC.POP.T. 000_099_Y.T.GHA.S supplied by the IAEG for the MDG_STATS_WEB dataflow: SN_ITK_DEFC.POP.T. 000_099_Y.T.GHA.S/IAEG SN_ITK_DEFC.POP.T. 000_099_Y.T.GHA.S/IAEG Retrieve the data (and not the attributes), provided by the IAEG for the MDG_STATS_WEB dataflow, for the supplied series keys, using wildcarding for the second dimension: 000_099_Y.T.GHA.S /IAEG?detail=dataonly Retrieve the data matching the supplied series keys (using the OR operator) and restricting the start and end dates: 000_099_Y.T.GHA+CHL.S/?startPeriod= &endPeriod=

Resource representation & HTTP content negotiation Selection of the appropriate format using HTTP Content Negotiation (Accept HTTP Header) Syntax: application/vnd.sdmx.[format]+xml;version=[version] Examples: –application/vnd.sdmx.generic+xml;version=1.0 –application/vnd.sdmx.structure+xml;version=2.1 In case the client does not specify the desired format: –Returns the most recent version of the SDMX-ML Structure format for structural metadata queries; –Returns the most recent version of the SDMX-ML Generic Data format for data queries; –Returns the most recent version of the SDMX-ML Generic Metadata format for metadata queries.

Handling errors: HTTP status codes (I) Indicate errors using the proper HTTP status code Whenever appropriate, SDMX-ML error message can be used 3 error categories: –000 – 499: Error generated from client –500 – 999: Error generated from server –1000+: Service custom messages

Handling errors: HTTP status codes (II) SDMX errorHTTP status code No results found Unauthorized Response too large due to client request Syntax error Semantic error Internal Server error Not implemented Service unavailable Response size exceeds service limit