How datasets/harmonized-system works
This repository packages Harmonized System commodity classifications as data, rather than running a classification service. Its main use is to consume the published classification tables; the included converter separately turns UN Comtrade JSON into CSV rows with section, code, description, parent, and level fields. The README identifies UN Comtrade as the dataset source. The converter accepts arbitrary input and output filenames, so its output is not linked to a particular checked-in CSV.
Main entry points: convert.py JSON-to-CSV converter · harmonized-system.csv HS classifications · sections.csv HS sections · datapackage.json Package metadata
Components 7
Classification data
- HS classifications
data/harmonized-system.csv - HS sections
data/sections.csv - Package metadata
datapackage.json
Conversion utility
- JSON-to-CSV converter
scripts/convert.py
Other components
- Dataset consumer
- UN Comtrade JSON
- CSV output
Connections 5
- Dataset consumer → HS classifications: reads classifications
- Dataset consumer → HS sections: reads sections
- Dataset consumer → Package metadata: reads metadata
- UN Comtrade JSON → JSON-to-CSV converter: provides JSON
- JSON-to-CSV converter → CSV output: writes CSV