PX-API and JSON-stat present state and future directions

Slides:



Advertisements
Similar presentations
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 15 Introduction to Rails.
Advertisements

Batches, Buckets and Bookbags Elizabeth B. Thomsen NOBLE: North of Boston Library Exchange EGILS2014.
Database management system (DBMS)  a DBMS allows users and other software to store and retrieve data in a structured way  controls the organization,
Alternative FILE formats
Advancing Excellence in Health Care Agency for Healthcare Research and Quality Advancing Excellence in Health Care Input Your Data. Output.
Tutorial 5 Creating Advanced Queries and Enhancing Table Design
Tutorial 8 Sharing, Integrating and Analyzing Data
Tutorial 11: Connecting to External Data
Classroom User Training June 29, 2005 Presented by:
4-1 INTERNET DATABASE CONNECTOR Colorado Technical University IT420 Tim Peterson.
FPDS- NG Reports Overview December 16, Today’s Goals Provide an overview of the FPDS-NG reporting capability Demonstrate each of the reporting tools.
Survey Data Management and Combined use of DDI and SDMX DDI and SDMX use case Labor Force Statistics.
Integrating and managing your Engaging Networks data Top ten data features.
Introduction to XML. XML - Connectivity is Key Need for customized page layout – e.g. filter to display only recent data Downloadable product comparisons.
1 Country report 2014 – Statistics Norway PC-Axis Reference Group meeting
NERC DataGrid Vocabulary Server Access Vocabulary Workshop, RAL, February 25, 2009.
Chapter 8 Cookies And Security JavaScript, Third Edition.
PX development Mikael Nordberg & Petros Likidis Statistics Sweden.
Andrew Zuber, Commercial Market Representative Government Contracting – Area 1 New England, New York, New Jersey, Puerto Rico & The Virgin Islands.
United Nations Economic Commission for Europe Statistical Division The Importance of Databases in the Dissemination Process Steven Vale, UNECE.
ITGS Databases.
EndNote. What is EndNote? EndNote is referencing software that enables you to create a database of references from your readings.
6 th Annual Focus Users’ Conference 6 th Annual Focus Users’ Conference Import Testing Data Presented by: Adrian Ruiz Presented by: Adrian Ruiz.
Part 4 Processing and saving data with CGI/Perl Psychological Science on the Internet: Designing Web-Based Experiments From the Ground Up R. Chris Fraley.
Session Session 12 EDExpress Application Processing—What’s New and Q&A.
Eurostat 4. SDMX: Main objects for data exchange 1 Raynald Palmieri Eurostat Unit B5: “Central data and metadata services” SDMX Basics course, October.
WStore Programmer Guide Offering management integration.
Integrate, check and share documents Module 3.3. Integrate, check and share documents Module 3.3.
Maria Gunnarsson Statistic Sweden Mikael Nordberg Statistic Sweden.
PX-API and development of new console Norwegian experiences Jan Bruusgaard Pc-Axis Reference Group Meeting 2015.
PX-Web 2014 Maria Gunnarsson, Statistics Sweden Petros Likidis, Statistics Sweden.
Irakli Garibashvili Director, National Scientific Library in Georgia.
Maria Gunnarsson SCB Mikael Nordberg SCB PX-Web 2015 December.
Project Description MintTrack is a mobile application built for the Android OS that will help keep track of where a user’s money is being spent via expense.
1 Mashup Workflow. 2 What We Have 3 Challenges with REST APIs * Only ask what its built to answer * No standard - must relearn each time * Opaque - no.
Simple PHP Web Applications Server Environment
Survey Training Pack Session 14 – Transferring CSPro, Access and Excel Files to SPSS.
Advanced HTML Tags:.
Some remarks and questions Ragnhild Rein Bore, Statistics Norway
Maria Gunnarsson Statistic Sweden Mikael Nordberg Statistic Sweden
Creating Databases Local storage. join & split
Statistical Information Systems Introducing SIS tool .Stat
Searching and Indexing
Software Specification Tools
Outline of presentation
Node.js Express Web Services
Data Virtualization Tutorial: JSON_TABLE Queries
Pekka Korhonen - Statistical services
National updates Statistics Denmark
Working with Data in Windows
Tutorial 8 Objectives Continue presenting methods to import data into Access, export data from Access, link applications with data stored in Access, and.
Introducing Forms.
TRAINING OF FOCAL POINTS ON THE CountrySTAT/FENIX SYSTEM
EndNote by: fatimah alotaibi.
Creating a Customized List of Classes Using Microsoft Access 2000®
Welcome day 2.
Implementation of PX-Web at Statistics Norway
Fundamentals of Data Structures
PX-Web 2019 and more… Mikael Nordberg Developer Statistics Sweden.
Performance Log REST Endpoint
PX API 2.0 Petros Likidis.
PX-Graph – New graphics package
Spreadsheets, Modelling & Databases
Let’s start from the beginning
Presentation plan Accessing and Retrieving SDMX data
SDMX IT Tools SDMX Registry
Integrated Statistical Production System WITH GSBPM
Palestinian Central Bureau of Statistics
Intro to Web Services Consuming the Web.
Presentation transcript:

PX-API and JSON-stat present state and future directions Jan Bruusgaard, Px-meeting 2018

Agenda PX need need a better branding PX-API and JSON-stat news Future directions and priorities in API New API-package for R PxWebApiData

PX need some branding PX-web or Pxweb or PxWeb Google don't like hyphens Two separate words PX-API or PxApi or px-web API or pxweb API or PX API Statbank or Statistical database

How can users know that we have the same API? Result: The wheel is reinvented

New in PX-API Also some improvements in the Norwegian console CORS support Improved performance Use of table id/table now from root URL of API id: "SysselsYrkSek" -> http://data.ssb.no/api/v0/en/table/SysselsYrkSek Can be used together with e.g. search for all tables http://data.ssb.no/api/v0/en/table/?query=*&filter=* Also some improvements in the Norwegian console

Some PX-API tips Saved query as JSON-stat can work as GET url Can be used together with libraries and tools Search for date, use: filter=published Search tables published a specific date. https://data.ssb.no/api/v0/en/table/?query=20180507*&filter=published Tables published in october http://data.ssb.no/api/v0/en/table/?query=201810*&filter=published

JSON-stat improvements JSON-stat is now published by 27 agencies Improvements in utilities suite and conversion New format: JSON-stat comma separated values (JSV) Jsonstat2csv -- rich

JSON-stat conversion, news Jsonstat2jsonstat – convert from JSON-stat version 1 to version 2 Sdmx2jsonstat converts sdmx-json (e.g. from OECD) to json-stat

More JSON-stat tips and news R combined with JSON-stat and package rjstat The best way to use PX-API from SAS and PowerBI, as these programs now reads R code R package pxR (for PX-files) can convert px-files to json-stat Statstransfer conversion software now reads json-stat New to JSON-stat, try: https://json-stat.com/explorer/

PX-API - Priorities for the future My opinion: Improve existing formats Improve queries Support for JSON-stat v. 2.0 PX-API v.2

1. Improve existing formats JSON-stat 1.2 Published date Include Datanotecell * Footnotes Include link to POST-url Reduce entry level - logical (not random) order of elements

Improve today's formats CSV2 – move Contents code to first column CSV3 – with codes instead of text no ÆÅØ etc makes CSV easier to import to other systems, e.g. SAS

Improve queries Possibility to mask one or more single char by using: ? Possibility to use * in agg

Sommeone? DCAT-AP (https://data.europa.eu) Documentation (Swagger / Raml) Third party packages becomes more important Our role to stop reinventing the wheel?

R package PxWebApiData Function to read PX-Web data into R via API Built on top of rjstat Made by Statistics Norway https://CRAN.R-project.org/package=PxWebApiData Works also with saved queries as JSON-stat Will also be included in RopenGov/pxweb package

To start in R > install.packages("PxWebApiData") > library(PxWebApiData) > ?ApiData and follow examples

PxWebApiData Each variable is specified by using the variable name as input parameter. The value can be specified as: TRUE (all), FALSE (eliminated), imaginary value (top), variable indices, original variable id's (values) or variable labels (valueTexts). Variables not specified is set to the value of defaultJSONquery whose default means the first and the two last elements.

Comments?