Skip to content

Commit

Permalink
Generic language approach
Browse files Browse the repository at this point in the history
as agreed by SDMX-TWG TF3 to fully respond to #40
  • Loading branch information
dosse committed Nov 20, 2018
1 parent c6a968f commit 044f85d
Showing 1 changed file with 53 additions and 28 deletions.
81 changes: 53 additions & 28 deletions data-message/samples/exr/exr-cross-section.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,11 @@
"schema": "https://raw.githubusercontent.com/sdmx-twg/sdmx-json/develop/data-message/tools/schemas/1.0/sdmx-json-data-schema.json",
"id": "62b5f19d-f1c9-495d-8446-a3661ed24753",
"prepared": "2012-11-29T08:40:26Z",
"content-language": [ "en", "fr-fr" ],
"contentLanguages": [ "en", "fr-fr" ],
"sender": {
"id": "ECB",
"name": {"en": "European Central Bank"}
"name": "European Central Bank",
"names": {"en": "European Central Bank"}
}
},
"data": {
Expand All @@ -16,103 +17,122 @@
"href": "https://sdw-wsrest.ecb.europa.eu/service/dataflow/ECB/EXR/1.0",
"urn": "urn:sdmx:org.sdmx.infomodel.datastructure.Dataflow=ECB:EXR(1.0)",
"rel": "dataflow",
"title": {"en": "resolvable uri to dataflow"}
"title": "resolvable uri to dataflow",
"titles": {"en": "resolvable uri to dataflow"}
},
{
"href": "https://sdw-wsrest.ecb.europa.eu/service/datastructure/ECB/ECB_EXR1/1.0",
"urn": "urn:sdmx:org.sdmx.infomodel.datastructure.DataStructure=ECB:ECB_EXR1(1.0)",
"rel": "datastructure",
"title": {"en": "resolvable uri to datastructure"}
"title": "resolvable uri to datastructure",
"titles": {"en": "resolvable uri to datastructure"}
},
{
"href": "https://sdw-wsrest.ecb.europa.eu/service/provisionagreement/ECB/PA_EXR",
"urn": "urn:sdmx:org.sdmx.infomodel.provisionagreement.ProvisionAgreement=ECB:PA_EXR(1.0)",
"rel": "provisionagreement",
"title": {"en": "resolvable uri to provision agreement"}
"title": "resolvable uri to provision agreement",
"titles": {"en": "resolvable uri to provision agreement"}
}
],
"dimensions": {
"dataSet": [
{
"id": "FREQ",
"name": {"en": "Frequency"},
"name": "Frequency",
"names": {"en": "Frequency"},
"role": "FREQ",
"keyPosition": 0,
"values": [{
"id": "D",
"name": {"en": "Daily"}
"name": "Daily",
"names": {"en": "Daily"}
}]
},
{
"id": "CURRENCY_DENOM",
"name": {"en": "Currency denominator"},
"name": "Currency denominator",
"names": {"en": "Currency denominator"},
"keyPosition": 2,
"values": [{
"id": "EUR",
"name": {"en": "Euro"}
"name": "Euro",
"names": {"en": "Euro"}
}]
},
{
"id": "EXR_TYPE",
"name": {"en": "Exchange rate type"},
"name": "Exchange rate type",
"names": {"en": "Exchange rate type"},
"keyPosition": 3,
"values": [{
"id": "SP00",
"name": {"en": "Spot rate"}
"name": "Spot rate",
"names": {"en": "Spot rate"}
}]
},
{
"id": "EXR_SUFFIX",
"name": {"en": "Series variation - EXR context"},
"name": "Series variation - EXR context",
"names": {"en": "Series variation - EXR context"},
"keyPosition": 4,
"values": [{
"id": "A",
"name": {"en": "Average or standardised measure for given frequency"}
"name": "Average or standardised measure for given frequency",
"names": {"en": "Average or standardised measure for given frequency"}
}]
}
],
"series": [{
"id": "TIME_PERIOD",
"name": {"en": "Time period or range"},
"name": "Time period or range",
"names": {"en": "Time period or range"},
"keyPosition": 5,
"role": "TIME_PERIOD",
"keyPosition": 5,
"values": [
{
"id": "2013-01-18",
"name": {"en": "2013-01-18"},
"name": "2013-01-18",
"names": {"en": "2013-01-18"},
"start": "2013-01-18T00:00:00.000Z",
"end": "2013-01-18T23:59:59.999Z"
},
{
"id": "2013-01-21",
"name": {"en": "2013-01-21"},
"name": "2013-01-21",
"names": {"en": "2013-01-21"},
"start": "2013-01-21T00:00:00.000Z",
"end": "2013-01-21T23:59:59.999Z"
}
]
}],
"observation": [{
"id": "CURRENCY",
"name": {"en": "Currency"},
"name": "Currency",
"names": {"en": "Currency"},
"keyPosition": 1,
"values": [
{
"id": "NZD",
"name": {"en": "New Zealand dollar"}
"name": "New Zealand dollar",
"names": {"en": "New Zealand dollar"}
},
{
"id": "RUB",
"name": {"en": "Russian rouble"}
"name": "Russian rouble",
"names": {"en": "Russian rouble"}
}
]
}]
},
"attributes": {
"dataSet": [{
"id": "TIME_FORMAT",
"name": {"en": "Time Format"},
"description": {"en": "Description for the attribute"},
"name": "Time Format",
"names": {"en": "Time Format"},
"description": "Description for the attribute",
"descriptions": {"en": "Description for the attribute"},
"relationship": {
"none": {
}
Expand All @@ -121,40 +141,45 @@
"default": "P1D",
"values": [{
"id": "P1D",
"name": {"en": "Daily"}
"name": "Daily",
"names": {"en": "Daily"}
}]
}],
"series": [],
"observation": [
{
"id": "OBS_STATUS",
"name": {"en": "Observation status"},
"name": "Observation status",
"names": {"en": "Observation status"},
"relationship": {"primaryMeasure": "OBS_VALUE"},
"values": [{
"id": "A",
"name": {"en": "Normal value"}
"name": "Normal value",
"names": {"en": "Normal value"}
}]
},
{
"id": "TITLE",
"name": {"en": "Series title"},
"name": "Series title",
"names": {"en": "Series title"},
"relationship": {
"dimensions": [
"FREQ", "CURRENCY", "CURRENCY_DENOM", "EXR_TYPE", "EXR_SUFFIX"
]
},
"role": "TITLE",
"values": [
{"name": {"en": "New Zealand dollar (NZD)"}},
{"name": {"en": "Russian rouble (RUB)"}}
{"name": "New Zealand dollar (NZD)"},
{"name": "Russian rouble (RUB)"}
]
}
]
},
"annotations": [{
"title": "Sample series annotation title",
"type": "example",
"text": {"en": "Sample series annotation text"},
"text": "Sample series annotation text",
"texts": {"en": "Sample series annotation text"},
"id": "ABC123456"
}]
},
Expand Down

0 comments on commit 044f85d

Please sign in to comment.