Spaces:
Running
Running
PRWP Dataset Extraction Dashboard Generator
This folder contains the scripts and canonical metadata mapping artifacts required to regenerate the database payload for the PRWP Dataset Extraction Dashboard.
Directory Layout
ai4data/docs/dashboards/prwp_extraction/
βββ index.html # Static dashboard frontend
βββ data/
β βββ dashboard_data.json # Generated JSON payload
β βββ dashboard_data.js # Serialized JS variables payload (loaded by index.html)
βββ generation/ # Generator tools & scripts (this folder)
βββ generate_dashboard_data.py # Main database payload generator
βββ run_harmonization.py # Entity clustering/harmonization script
βββ canonical_map.json # Pre-compiled canonical mapping file
βββ dataset_families.json # Dataset families lookup file
βββ README.md # This instruction file
Running the Data Compilation
To recompile the dashboard data payload after updating any raw extraction batches:
Navigate to the
ai4data/repository root:cd /Users/rafaelmacalaba/WBG/ai4dataRun the generator script using
uv:uv run python docs/dashboards/prwp_extraction/generation/generate_dashboard_data.py
This will read the raw standardized JSON output files from /Users/rafaelmacalaba/WBG/fetch_prwp/data/standardized_outputs, apply the canonical name mappings, compute metrics, and write the updated dashboard_data.json and dashboard_data.js directly to docs/dashboards/prwp_extraction/data/.