How buildabida/infra-project-monitoring works
Infrastructure Project Monitoring is a Databricks batch data pipeline for comparing public infrastructure investment with population and flood exposure. Its principal workflow preserves six approved R2 snapshots in Bronze, transforms and reconciles them through Silver, builds Gold analytical dimensions and facts, then serves analysis through the dashboard and Genie. A separate validation branch records data-quality results; the README says Gold validation is still planned. Silver and Gold relationships are shown at the documented layer level because their notebook implementations were not sampled.
Main entry points: 01_bronze Bronze tables · 03_gold Gold facts · 04_validation Layer validation · 00_config_mappings.ipynb Mapping configuration
Components 19
Bronze ingestion
- Batch coordinator
notebooks/run_all.py - Source contracts
src/config.py - Snapshot loader
src/bronze.py - Bronze tables
notebooks/01_bronze
Silver modeling
- Mapping configuration
notebooks/02_silver/00_config_mappings.ipynb - Geography population
notebooks/02_silver - Project foundation
notebooks/02_silver - Source reconciliation
notebooks/02_silver/07_silver_project_source_match.ipynb - Project region mapping
notebooks/02_silver/08_silver_project_region_map.ipynb - Flood exposure
notebooks/02_silver/08a_silver_mgb_flood_area.ipynb - Project flood mapping
notebooks/02_silver/10_silver_project_flood_map.ipynb
Gold analytics
- Gold dimensions
notebooks/03_gold - Gold facts
notebooks/03_gold
Data validation
- Bronze validation
notebooks/04_validation/01_validation_bronze.py - Layer validation
notebooks/04_validation - Quality results
notebooks/04_validation
Other components
- R2 snapshots
Connections 22
- Batch coordinator → Bronze tables: runs sources
notebooks/run_all.py - R2 snapshots → Bronze tables: loads snapshots
README.md - Source contracts → Snapshot loader: configures loading
notebooks/01_bronze/01_bronze_dpwh_projects.py - Bronze tables → Mapping configuration: transforms into
README.md - Bronze tables → Geography population: transforms into
README.md - Bronze tables → Project foundation: transforms into
README.md - Bronze tables → Source reconciliation: reconciles sources
README.md - Bronze tables → Project region mapping: maps projects
README.md - Bronze tables → Flood exposure: calculates exposure
README.md - Bronze tables → Project flood mapping: classifies projects
README.md - Mapping configuration → Gold dimensions: models into
README.md - Geography population → Gold facts: models into
README.md - Project foundation → Gold facts: models into
README.md - Gold dimensions → Dashboard: serves analysis
README.md - Gold facts → Dashboard: serves analysis
README.md - Gold dimensions → Genie: serves analysis
README.md - Gold facts → Genie: serves analysis
README.md - Bronze tables → Bronze validation: checks quality
README.md - Bronze validation → Quality results: writes results
notebooks/04_validation/01_validation_bronze.py - Bronze tables → Layer validation: checks quality
README.md - Gold facts → Layer validation: checks quality
- Layer validation → Quality results: records results