Contributing data
This section is a step-by-step guide for preparing and formatting a new dataset so it can be incorporated into Brasil Data Commons. It’s the import side of the platform — distinct from the API guides, which are about reading data that’s already loaded.
What you’ll produce
Section titled “What you’ll produce”To bring a dataset into Data Commons you assemble, at most, three kinds of file:
- CSV file(s) holding the observations themselves.
- MCF file(s) — only when you need to define new statistical variables. If every variable you use already exists, you can skip these entirely.
- A JSON config file that maps your data onto concepts already in Data Commons.
The workflow
Section titled “The workflow”- Document your source — fill in a metadata template describing the original dataset and where it came from.
- Format the values — shape your observations into
the standard
entity, date, variable, valueCSV. - Define new variables — if your data needs statistical variables that don’t exist yet, declare them in an MCF file.
- Write the config — describe your input files, their
sources, and any custom column names in
config.json. - Validate and deliver — lint the files, record the transformations you applied, and package everything for submission.