# bayasaa123/nsw-property-pulse architecture

> Architecture diagram of the GitHub repository bayasaa123/nsw-property-pulse, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-12-03). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/bayasaa123/nsw-property-pulse
- Repository: https://github.com/bayasaa123/nsw-property-pulse

## Overview

NSW Property Pulse is a weekly ELT lakehouse that turns manually landed NSW Valuer General sales files into validated, modelled property-sales data for dashboards and natural-language analysis. The main workflow runs from landing through Databricks bronze/silver processing, dbt staging and marts, then serving. The graph also preserves the documented SCD Type 2 snapshot and quarantine path. Pipeline and dbt model internals were not sampled, so their links rely on the README’s architecture; parser details are supported by the excerpted Python source.

Main entry points: [`notebooks/10_bronze_to_silver.ipynb`](https://github.com/bayasaa123/nsw-property-pulse/blob/main/notebooks/10_bronze_to_silver.ipynb) (Bronze and Silver), [`dbt/models/marts`](https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/marts) (Sales star-schema marts), [`dbt/models/staging`](https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/staging) (dbt staging), [`dbt/snapshots/snap_property.yml`](https://github.com/bayasaa123/nsw-property-pulse/blob/main/dbt/snapshots/snap_property.yml) (Property history snapshot)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingestion["File ingestion"]
  node_landing[("Manual file landing")]
  node_bronze_silver["Bronze and Silver"]
  node_parser["DAT parser<br/>[parser.py]"]
end

subgraph group_modelling["Data modelling"]
  node_staging["dbt staging"]
  node_latest["Latest property model"]
  node_snapshot["Property history snapshot<br/>[snap_property.yml]"]
  node_marts[("Sales star-schema marts")]
end

subgraph group_serving["Analytics serving"]
  node_dashboard["AI/BI dashboard"]
  node_genie["Genie Q&amp;A"]
end

subgraph group_quality["Data quality"]
  node_quarantine[("Bad-row quarantine")]
end

node_valuer_general(("NSW Valuer General"))

node_valuer_general -->|"publishes files"| node_landing
node_landing -->|"loads raw files"| node_bronze_silver
node_bronze_silver -->|"parses records"| node_parser
node_bronze_silver -.->|"routes bad rows"| node_quarantine
node_bronze_silver -->|"feeds silver data"| node_staging
node_staging -->|"models dimensions"| node_marts
node_staging -->|"captures attributes"| node_snapshot
node_snapshot -->|"provides history"| node_marts
node_marts -->|"serves analytics"| node_dashboard
node_marts -->|"supports questions"| node_genie

click node_bronze_silver "https://github.com/bayasaa123/nsw-property-pulse/blob/main/notebooks/10_bronze_to_silver.ipynb"
click node_parser "https://github.com/bayasaa123/nsw-property-pulse/blob/main/src/nsw_property/parser.py"
click node_staging "https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/staging"
click node_latest "https://github.com/bayasaa123/nsw-property-pulse/blob/main/dbt/models/intermediate/int_property_latest.sql"
click node_snapshot "https://github.com/bayasaa123/nsw-property-pulse/blob/main/dbt/snapshots/snap_property.yml"
click node_marts "https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/marts"

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_landing,node_bronze_silver,node_parser toneBlue
class node_staging,node_latest,node_snapshot,node_marts toneAmber
class node_dashboard,node_genie toneMint
class node_quarantine toneRose
class node_valuer_general toneIndigo
```

## Components

### File ingestion

- **Manual file landing**
- [Bronze and Silver](https://github.com/bayasaa123/nsw-property-pulse/blob/main/notebooks/10_bronze_to_silver.ipynb): `notebooks/10_bronze_to_silver.ipynb`
- [DAT parser](https://github.com/bayasaa123/nsw-property-pulse/blob/main/src/nsw_property/parser.py): `src/nsw_property/parser.py`

### Data modelling

- [dbt staging](https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/staging): `dbt/models/staging`
- [Latest property model](https://github.com/bayasaa123/nsw-property-pulse/blob/main/dbt/models/intermediate/int_property_latest.sql): `dbt/models/intermediate/int_property_latest.sql`
- [Property history snapshot](https://github.com/bayasaa123/nsw-property-pulse/blob/main/dbt/snapshots/snap_property.yml): `dbt/snapshots/snap_property.yml`
- [Sales star-schema marts](https://github.com/bayasaa123/nsw-property-pulse/tree/main/dbt/models/marts): `dbt/models/marts`

### Analytics serving

- **AI/BI dashboard**
- **Genie Q&A**

### Data quality

- **Bad-row quarantine**

### Other components

- **NSW Valuer General**

## Connections

- NSW Valuer General → Manual file landing: publishes files (evidence: `README.md`)
- Manual file landing → Bronze and Silver: loads raw files (evidence: `README.md`)
- Bronze and Silver → DAT parser: parses records (evidence: `README.md`)
- Bronze and Silver → Bad-row quarantine: routes bad rows (evidence: `README.md`)
- Bronze and Silver → dbt staging: feeds silver data (evidence: `README.md`)
- dbt staging → Sales star-schema marts: models dimensions (evidence: `README.md`)
- dbt staging → Property history snapshot: captures attributes (evidence: `README.md`)
- Property history snapshot → Sales star-schema marts: provides history (evidence: `README.md`)
- Sales star-schema marts → AI/BI dashboard: serves analytics (evidence: `README.md`)
- Sales star-schema marts → Genie Q&A: supports questions (evidence: `README.md`)
