Skip to content

Latest commit

 

History

History
62 lines (50 loc) · 3.22 KB

README.md

File metadata and controls

62 lines (50 loc) · 3.22 KB

ddf--gapminder_world

The purpose of this dataset

To integrate data from the Legacy dataset of Gapminder World into the new Systema Globalis

source

  1. concept file
  2. entities
  3. datapoints
  4. metadata and translation file from vizabi

How to run the script

  • change the symlink of indicators dir to your local copy of indicators dir

  • go to script dir and run update.py to update other source files. Before you run the script please fill in the token string in line 11.

    cd script
    python update.py
    
  • run main.py to generate files. you can choose which files you want to create: all, entities, concepts, datapoints, enjson, metadata

    $ python main.py all  # all ddf files and en.json and metadata.json
    $ python main.py entities  # only entities will be created
    $ python main.py concepts datapoints  # create countries and datapoints
    

only python 3 is tested for now, will do more testing soon.

Implementation Notes

  • concept properties of indicators (all measure types):
    • name should be ddf_name from source file
    • unit should be ddf_unit from source file
    • description should be tooltip from source file
    • interpolation should be interpolation from source file
    • scales should be based on scale from source file:
      • If scale = lin: ["linear", "log"]
      • If scale = log: ["log", "linear"]
      • If undefined: ["linear", "log"] (don’t leave empty!)
  • Metadata.json and en.json
    • metadata.json is build from scratch using the source data
    • en.json is updated base on the source en.json and graph_settings spreadsheet.