... | ... | @@ -5,7 +5,7 @@ The only reference for data format is the [`sample-json-data-tree` directory in |
|
|
**
|
|
|
|
|
|
This means that the format of files to be written by a converter have changed since the writing of this document. But globally the information inside files are the same, but organized differently upon files and dirs.
|
|
|
This being said, this is still a good introduction to understand the basics of DB.nomics vocabulary.
|
|
|
This being said, this is still a good introduction to understand the basics of DBnomics vocabulary.
|
|
|
|
|
|
# Write a new converter
|
|
|
|
... | ... | @@ -78,13 +78,13 @@ The output tree for this dataset should be: |
|
|
|
|
|
=> Remember that this is a part of the total tree produced by a parser; we do not talk about categories here
|
|
|
|
|
|
## DB.nomics vocabulary
|
|
|
## DBnomics vocabulary
|
|
|
|
|
|
For dimensions and values of dimensions ("France" is a value of dimension "Country"), we use `label` and `code` terms.
|
|
|
* `label`: human readable version
|
|
|
* `code`: used for indexation (slugified label if no code given by provider)
|
|
|
|
|
|
Note: in DB.nomics, we use `geo` as **code** for "Country" dimension. So "Country" dimension has:
|
|
|
Note: in DBnomics, we use `geo` as **code** for "Country" dimension. So "Country" dimension has:
|
|
|
* `dimension_label`: "Country"
|
|
|
* `dimension_code`: "geo"
|
|
|
|
... | ... | @@ -167,7 +167,7 @@ The dataset's `dataset.json` should be: |
|
|
|
|
|
Notes:
|
|
|
* *codelists* and *concepts* terms comes from the [SDMX standard](https://en.wikipedia.org/wiki/SDMX)
|
|
|
* We didn't use the `dimensions_codes` given by provider for dimension "Country" (aka dimension with `dimension_label`="Country"): we used "geo" in DB.nomics
|
|
|
* We didn't use the `dimensions_codes` given by provider for dimension "Country" (aka dimension with `dimension_label`="Country"): we used "geo" in DBnomics
|
|
|
* We didn't use the `dimensions_values_codes` given by provider for `dimension_values_labels` "France", "Italy" and "Belgium": we used "fra", "ita" and "bel" (not "FR", "IT" and "BE" as given in source file)
|
|
|
* We used the `dimensions_values_codes` given by provider for "flow" dimension ("I" and "E"). We could have choosen something else.
|
|
|
|
... | ... | |