Case Study ESTP Workshop on SDMX in National Accounts Luxembourg, 16-18 March 2016
Objectives 1. Provide table 800, 801 SDMX-ML files to Eurostat 2. Provide a URL for pulling table 800 and 801 data through SDMX web services Business process: You manage data for table 800 yourself in your own database. In the past a special database function filled Eurostat Excel templates You get data for table 801 from a ministry in regular intervals in CSV format. In the past you used Excel macros to load the data into Eurostat Excel templates.
Objective 1 – What to do? Use an existing database for table T0800 (NA8) Import SDMX structures needed for table 8 Map the table using the Mapping Assistant Create static SDMX – ML data files using the Test Client and/or Web Client Provide a Web Service were Eurostat can retrieve data
Database info DSD TABLE Mapping ACCOUNTING_ENTRY ADJUSTEMENT CONSOLIDATION COUNTERPART_AREA COUNTERPART_SECTOR EXPENDITURE FREQ, TIME_FORMAT PRICES REF_SECTOR STO UNIT_MEASURE TIME_PERIOD OBS_VALUE UNIT_MULT Mapping
Database info Dataset DSD Comment FREQ TIME_FORMAT Transcode: A A, P1Y TIME TIME_PERIOD Transcode: Select year Others 1:1 REF_AREA Constant: LU CURRENCY_DENOM Constant: _Z CUST_BREAKDOWN Constant: _T INSTR_ASSET MATURITY DECIMALS Constant: 0 TABLE_IDENTIFIER Constant: T0800 TRANSFORMATION Constant: N VALUATION Constant: S CONF_STATUS Constant: F OBS_STATUS Constant: A
Objective 2 – What to do? Create a new database using Loader for the dataflow T0801 Pay attention to the primary key (see next slide) Map and Load CSV datafile «provided by the ministry» Easy: use CSV sample file provided Advanced: create your own using the Converter Create static SDMX – ML data files using the Test Client and/or Web Client Provide a Web Service where Eurostat can retrieve data
Table creation Keep all the fields included by default Eliminate from primary key the following fields and assign to them the related default value: CURRENCY_DENOM = _Z MATURITY = _Z COUNTERPART_SECTOR = S1 FREQ = Q REF_AREA= LU Add for the field TABLE_IDENTIFIER the default value T0801