220 likes | 241 Views
ESCWA SDMX Workshop. Session: Data Formats. Country: UK Unemployed: 13million Year: 2010. Country: Australia State : Perth Coastline (Km): 12500. Country: France Unemployed: 5million Year: 1982. What is Data?. Results of Measurements. Data Set. KEY. KEY. Values. Values.
E N D
ESCWA SDMX Workshop Session: Data Formats
Country: UK Unemployed: 13million Year: 2010 Country: Australia State : Perth Coastline (Km): 12500 Country: France Unemployed: 5million Year: 1982 What is Data? • Results of Measurements
Data Set KEY KEY Values Values What is a DataSet? • An organisedcollection of Data Think of a Dataset as an organised container for exchanging Data
How is the Data organised? Use case: House Price Data
Code List Dimensions (Concepts) Average House Price • House Type • Terrace • Semi Detached • Detached • County (location) • Surrey • Hampshire • Number Bedrooms • Time • Average Price (measure)
KEY House Type Terrace County Surrey Bedrooms 2 House Type Semi-Det House Type Detached County Surrey County Hampshire Bedrooms 2 Bedrooms 3 VALUES VALUES VALUES 2008 130,000 2009 150,000 2010 220,000 2008 200,000 2008 210,000 2009 220,000 2009 210,000 Time Series View
KEY House Type Terrace Bedrooms 2 Time 2008 VALUES Surrey 130,000 Hampshire 200,000 Pivot on County
Pivot on House Type KEY County Surrey Bedrooms 2 Time 2008 VALUES Terrace 130,000 Semi 220,000 Detached 300,000
Q: What is the Key? A: Anything except the Observation Value and a pivot dimension
Values Key Pivot on House Type
Values Key Pivot on Country
Values Key Add new Dimension
The way the XML is structured 1. GENERIC 2. COMPACT <Person name=“Matt” age=“28” /> <Person> <Name>Matt</Name> <Age>28</Age> </Person> SDMX Schema for Data • SDMX Has 2 Widely Used Formats Data
KEY VALUES Generic Data
KEY VALUES KEY VALUE KEY VALUE DATASET Compact Data
GENERIC DATA – ONE SERIES COMPACT DATA – ONE SERIES
SERIES ATTRIBUTES GENERIC DATA – 1 Series COMPACT DATA – 1 Series
OBSERVATION ATTRIBUTES GENERIC DATA – 1 Observation COMPACT DATA – 3 Observations
Exercise Generate Schema • Open Up the SDMX Tool Suite • Drag DSD File onto Tool Suite • Generate a Compact Schema