# elsa03-07/dw-kelompok-01 architecture

> Architecture diagram of the GitHub repository elsa03-07/dw-kelompok-01, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/elsa03-07/dw-kelompok-01
- Repository: https://github.com/elsa03-07/dw-kelompok-01

## Overview

This repository is a repeatable data-wrangling pipeline for Indonesian SDG indicators assembled from multiple providers. Its principal workflow verifies raw-file checksums, extracts source data, standardizes and cleans it into provenance-bearing Silver data, selects and reshapes comparable observations into Gold panels and national tables, then validates the outputs. The README also describes SQL storage and WDI archive-scale analysis as product capabilities; the latter is not present in the supplied tree. Some internal orchestration is only documented, so uncertain links are omitted rather than inferred.

Main entry points: [`pipeline.py`](https://github.com/elsa03-07/dw-kelompok-01/blob/main/pipeline.py) (Pipeline Runner), [`src/ekstraksi`](https://github.com/elsa03-07/dw-kelompok-01/tree/main/src/ekstraksi) (Source Extraction), [`src/silver/builder.py`](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/builder.py) (Silver Cleaning), [`src/gold/aturan_pilih.py`](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/gold/aturan_pilih.py) (Gold Selection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Ingestion"]
  node_raw[("Raw Snapshots")]
  node_manifest["Checksum Lineage<br/>[manifest.py]"]
  node_extract["Source Extraction"]
  node_bps["BPS Reader<br/>[bps_reader.py]"]
  node_wdi["WDI Reader<br/>[wdi_reader.py]"]
  node_who["WHO Reader<br/>[who_reader.py]"]
end

subgraph group_silver["Silver Processing"]
  node_silverbuild["Silver Cleaning<br/>[builder.py]"]
  node_period["Period Rules<br/>[periode.py]"]
  node_silvercheck["Silver Schema<br/>[skema.py]"]
  node_silverdata[("Silver Dataset")]
end

subgraph group_gold["Gold Products"]
  node_select["Gold Selection<br/>[aturan_pilih.py]"]
  node_goldbuild["Gold Tables<br/>[builder.py]"]
  node_golddata[("Gold Dataset")]
end

subgraph group_quality["Quality and Storage"]
  node_validation["Output Validation<br/>[__init__.py]"]
  node_sql["SQL Loading<br/>[muat_sql.py]"]
  node_sqlite[("Silver SQLite<br/>[silver.sqlite]")]
  node_runner["Pipeline Runner<br/>[pipeline.py]"]
  node_archive["WDI Archive Analysis"]
end

node_team(("Pipeline Operator"))
node_providers(("Data Providers"))

node_team -->|"runs"| node_runner
node_providers -->|"supply snapshots"| node_raw
node_runner -->|"verifies files"| node_manifest
node_runner -->|"runs extraction"| node_extract
node_extract -->|"uses reader"| node_bps
node_extract -->|"uses reader"| node_wdi
node_extract -->|"uses reader"| node_who
node_runner -->|"runs Silver"| node_silverbuild
node_silverbuild -->|"reads hashes"| node_manifest
node_silverbuild -->|"validates periods"| node_period
node_silverbuild -->|"checks schema"| node_silvercheck
node_runner -->|"runs Gold"| node_select
node_select -.->|"builds products"| node_goldbuild
node_runner -->|"runs validation"| node_validation
node_silverdata -->|"loads from"| node_sql
node_sql -->|"writes rows"| node_sqlite
node_goldbuild -.->|"writes tables"| node_golddata
node_providers -.->|"provides releases"| node_archive

click node_manifest "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/common/manifest.py"
click node_extract "https://github.com/elsa03-07/dw-kelompok-01/tree/main/src/ekstraksi"
click node_bps "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/bps_reader.py"
click node_wdi "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/wdi_reader.py"
click node_who "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/who_reader.py"
click node_silverbuild "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/builder.py"
click node_period "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/periode.py"
click node_silvercheck "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/common/skema.py"
click node_silverdata "https://github.com/elsa03-07/dw-kelompok-01/tree/main/data/silver"
click node_select "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/gold/aturan_pilih.py"
click node_goldbuild "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/gold/builder.py"
click node_golddata "https://github.com/elsa03-07/dw-kelompok-01/tree/main/data/gold"
click node_validation "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/validasi/__init__.py"
click node_sql "https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/muat_sql.py"
click node_sqlite "https://github.com/elsa03-07/dw-kelompok-01/blob/main/data/silver/silver.sqlite"
click node_runner "https://github.com/elsa03-07/dw-kelompok-01/blob/main/pipeline.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_raw,node_manifest,node_extract,node_bps,node_wdi,node_who toneBlue
class node_silverbuild,node_period,node_silvercheck,node_silverdata toneAmber
class node_select,node_goldbuild,node_golddata toneMint
class node_validation,node_sql,node_sqlite,node_runner,node_archive toneRose
class node_team,node_providers toneIndigo
```

## Components

### Ingestion

- **Raw Snapshots**
- [Checksum Lineage](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/common/manifest.py): `src/common/manifest.py`
- [Source Extraction](https://github.com/elsa03-07/dw-kelompok-01/tree/main/src/ekstraksi): `src/ekstraksi`
- [BPS Reader](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/bps_reader.py): `src/ekstraksi/bps_reader.py`
- [WDI Reader](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/wdi_reader.py): `src/ekstraksi/wdi_reader.py`
- [WHO Reader](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/ekstraksi/who_reader.py): `src/ekstraksi/who_reader.py`

### Silver Processing

- [Silver Cleaning](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/builder.py): `src/silver/builder.py`
- [Period Rules](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/periode.py): `src/silver/periode.py`
- [Silver Schema](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/common/skema.py): `src/common/skema.py`
- [Silver Dataset](https://github.com/elsa03-07/dw-kelompok-01/tree/main/data/silver): `data/silver`

### Gold Products

- [Gold Selection](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/gold/aturan_pilih.py): `src/gold/aturan_pilih.py`
- [Gold Tables](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/gold/builder.py): `src/gold/builder.py`
- [Gold Dataset](https://github.com/elsa03-07/dw-kelompok-01/tree/main/data/gold): `data/gold`

### Quality and Storage

- [Output Validation](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/validasi/__init__.py): `src/validasi/__init__.py`
- [SQL Loading](https://github.com/elsa03-07/dw-kelompok-01/blob/main/src/silver/muat_sql.py): `src/silver/muat_sql.py`
- [Silver SQLite](https://github.com/elsa03-07/dw-kelompok-01/blob/main/data/silver/silver.sqlite): `data/silver/silver.sqlite`
- [Pipeline Runner](https://github.com/elsa03-07/dw-kelompok-01/blob/main/pipeline.py): `pipeline.py`
- **WDI Archive Analysis**

### Other components

- **Pipeline Operator**
- **Data Providers**

## Connections

- Pipeline Operator → Pipeline Runner: runs (evidence: `README.md`)
- Data Providers → Raw Snapshots: supply snapshots (evidence: `README.md`)
- Pipeline Runner → Checksum Lineage: verifies files (evidence: `pipeline.py`)
- Pipeline Runner → Source Extraction: runs extraction (evidence: `pipeline.py`)
- Source Extraction → BPS Reader: uses reader (evidence: `src/ekstraksi/__init__.py`)
- Source Extraction → WDI Reader: uses reader (evidence: `src/ekstraksi/__init__.py`)
- Source Extraction → WHO Reader: uses reader (evidence: `src/ekstraksi/__init__.py`)
- Pipeline Runner → Silver Cleaning: runs Silver (evidence: `pipeline.py`)
- Silver Cleaning → Checksum Lineage: reads hashes (evidence: `src/silver/builder.py`)
- Silver Cleaning → Period Rules: validates periods (evidence: `src/silver/builder.py`)
- Silver Cleaning → Silver Schema: checks schema (evidence: `src/silver/builder.py`)
- Pipeline Runner → Gold Selection: runs Gold (evidence: `pipeline.py`)
- Gold Selection → Gold Tables: builds products
- Pipeline Runner → Output Validation: runs validation (evidence: `pipeline.py`)
- Silver Dataset → SQL Loading: loads from (evidence: `src/silver/muat_sql.py`)
- SQL Loading → Silver SQLite: writes rows (evidence: `src/silver/muat_sql.py`)
- Gold Tables → Gold Dataset: writes tables
- Data Providers → WDI Archive Analysis: provides releases
