Difference between revisions of "Fusion-CSV"
(→Example) |
(→Example) |
||
Line 7: | Line 7: | ||
=Example= | =Example= | ||
− | An example query using the format request parameters, [[Data_Formats|HTTP Accept Headers]] can also be used to define the same format. | + | An example query using the format request parameters, [[Data_Formats|HTTP Accept Headers]] can also be used to define the same format.<br/> |
− | https://demo.metadatatechnology.com/FusionRegistry/ws/public/sdmxapi/rest/data/WB,GCI,1.0/GHA.GCI..?format=csv&labels=both | + | <i>https://demo.metadatatechnology.com/FusionRegistry/ws/public/sdmxapi/rest/data/WB,GCI,1.0/GHA.GCI..?format=csv&labels=both</i> |
Revision as of 14:51, 19 March 2020
Overview
The Fusion-CSV Data format predated SDMX-CSV and is not an official SDMX format. It is very similar in that the format is comma separated format where each row describes a single Observation value. The difference is that whilst there can be a header row it is not mandatory, there is no column for the Dataflow, the order of the columns is important, and unlike SDMX-CSV where labels are in the same column as the Id concatenated with a colon, Fusion-CSV outputs lables in their own columns.
It can be used as both an import and export format for the Fusion Registry, and an export format for the Fusion Edge Server and Fusion Data Browser.
Example
An example query using the format request parameters, HTTP Accept Headers can also be used to define the same format.
https://demo.metadatatechnology.com/FusionRegistry/ws/public/sdmxapi/rest/data/WB,GCI,1.0/GHA.GCI..?format=csv&labels=both
An example dataset with IDs only, spaces have been added to this example to assist readability.
REF_AREA, INDICATOR, SUB_INDICATOR, FREQ, TIME_PERIOD, OBS_VALUE GHA, GCI, RANK, A, 2008, 102 GHA, GCI, RANK, A, 2009, 114 GHA, GCI, RANK, A, 2010, 114 GHA, GCI, RANK, A, 2011, 114 GHA, GCI, RANK, A, 2012, 103 GHA, GCI, RANK, A, 2013, 114 GHA, GCI, RANK, A, 2014, 111
The same dataset in Fusion-CSV with lables included. Note, labels columns are only included if the Dimension, Attribute, or Measure is Coded, if it is not, then only one column is output - this can be seen in the table below where both TIME_PERIOD and OBS_VALUE are only single columns.
REF_AREA, Reference Area, INDICATOR, Indicator, SUB_INDICATOR, Sub Indicator, FREQ, Frequency, TIME_PERIOD, OBS_VALUE GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2008, 102 GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2009, 114 GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2010, 114 GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2011, 114 GHA, Ghana, GCI, Global Competitiveness Index, RANK: Rank, A, Annual, 2012, 103 GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2013, 114 GHA, Ghana, GCI, Global Competitiveness Index, RANK, Rank, A, Annual, 2014, 111