Add elections + demographics layer: candidates and jurisdictions

Two new entity types, built deterministically from the raw exports:

  Candidate (2,494)     — 2026 federal candidates as files under
                          us/states/<st>/candidates/, with office,
                          district, party, incumbent/challenger stance,
                          campaign committee, FEC id.

  Jurisdiction (3,494)  — demographic nodes carrying ACS 2023 data:
                          3,131 counties (deduped from 3,231 mixed-format
                          fips keys) + 363 congressional districts.

This completes the county skeleton nationwide: every US county is now a
browsable node with population, income, poverty, race, education and
housing — even where no officeholders are mapped yet. In Florida the
county index.md merges into the existing dir and reports its officeholder
count alongside demographics (St. Lucie: 33 officeholders + ACS profile).

build.py now reads seven raw inputs in one deterministic pass
(byte-identical on rerun). The mirror now answers: who holds power, who
runs this institution, who is running, and what each place is made of.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Fabio
2026-07-03 23:35:00 -04:00
parent 6b3249ecc0
commit 5b0712c31f
5989 changed files with 304296 additions and 0 deletions
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "OK-01"
classification: congressional-district
state: "OK"
district: "OK-01"
demographics:
population: 827396
population_under_18: 222571
population_18_64: 283819
population_65_plus: 321006
median_household_income: 71143
poverty_rate: 12.41
homeownership_rate: 61.65
unemployment_rate: 4.52
median_home_value: 261000
gini_index: 0.4725
vacancy_rate: 7.14
race_white: 504628
race_black: 65818
race_asian: 30653
hispanic: 129447
bachelors_plus: 192374
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ok]
timestamp: "2026-07-03"
---
# OK-01
Congressional district OK-01.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 827396 |
| Under 18 | 222571 |
| 1864 | 283819 |
| 65+ | 321006 |
| Median household income | 71143 |
| Poverty rate | 12.41 |
| Homeownership rate | 61.65 |
| Unemployment rate | 4.52 |
| Median home value | 261000 |
| Gini index | 0.4725 |
| Vacancy rate | 7.14 |
| White | 504628 |
| Black | 65818 |
| Asian | 30653 |
| Hispanic/Latino | 129447 |
| Bachelor's or higher | 192374 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "OK-02"
classification: congressional-district
state: "OK"
district: "OK-02"
demographics:
population: 815354
population_under_18: 209548
population_18_64: 250992
population_65_plus: 354814
median_household_income: 56060
poverty_rate: 17.55
homeownership_rate: 72.32
unemployment_rate: 5.07
median_home_value: 176700
gini_index: 0.4599
vacancy_rate: 15.98
race_white: 515712
race_black: 25479
race_asian: 6527
hispanic: 54109
bachelors_plus: 116144
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ok]
timestamp: "2026-07-03"
---
# OK-02
Congressional district OK-02.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 815354 |
| Under 18 | 209548 |
| 1864 | 250992 |
| 65+ | 354814 |
| Median household income | 56060 |
| Poverty rate | 17.55 |
| Homeownership rate | 72.32 |
| Unemployment rate | 5.07 |
| Median home value | 176700 |
| Gini index | 0.4599 |
| Vacancy rate | 15.98 |
| White | 515712 |
| Black | 25479 |
| Asian | 6527 |
| Hispanic/Latino | 54109 |
| Bachelor's or higher | 116144 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "OK-03"
classification: congressional-district
state: "OK"
district: "OK-03"
demographics:
population: 797016
population_under_18: 220434
population_18_64: 273494
population_65_plus: 303088
median_household_income: 59917
poverty_rate: 17.71
homeownership_rate: 65.17
unemployment_rate: 5.22
median_home_value: 171700
gini_index: 0.4625
vacancy_rate: 13.97
race_white: 517721
race_black: 34574
race_asian: 15119
hispanic: 171160
bachelors_plus: 118529
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ok]
timestamp: "2026-07-03"
---
# OK-03
Congressional district OK-03.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 797016 |
| Under 18 | 220434 |
| 1864 | 273494 |
| 65+ | 303088 |
| Median household income | 59917 |
| Poverty rate | 17.71 |
| Homeownership rate | 65.17 |
| Unemployment rate | 5.22 |
| Median home value | 171700 |
| Gini index | 0.4625 |
| Vacancy rate | 13.97 |
| White | 517721 |
| Black | 34574 |
| Asian | 15119 |
| Hispanic/Latino | 171160 |
| Bachelor's or higher | 118529 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "OK-04"
classification: congressional-district
state: "OK"
district: "OK-04"
demographics:
population: 819271
population_under_18: 210670
population_18_64: 289952
population_65_plus: 318649
median_household_income: 67377
poverty_rate: 14.68
homeownership_rate: 64.89
unemployment_rate: 4.39
median_home_value: 215500
gini_index: 0.4421
vacancy_rate: 9.41
race_white: 547501
race_black: 56952
race_asian: 22696
hispanic: 96899
bachelors_plus: 148722
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ok]
timestamp: "2026-07-03"
---
# OK-04
Congressional district OK-04.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 819271 |
| Under 18 | 210670 |
| 1864 | 289952 |
| 65+ | 318649 |
| Median household income | 67377 |
| Poverty rate | 14.68 |
| Homeownership rate | 64.89 |
| Unemployment rate | 4.39 |
| Median home value | 215500 |
| Gini index | 0.4421 |
| Vacancy rate | 9.41 |
| White | 547501 |
| Black | 56952 |
| Asian | 22696 |
| Hispanic/Latino | 96899 |
| Bachelor's or higher | 148722 |
## Source
- demographics: Census ACS 2023
@@ -0,0 +1,59 @@
---
type: Jurisdiction
title: "OK-05"
classification: congressional-district
state: "OK"
district: "OK-05"
demographics:
population: 836356
population_under_18: 217833
population_18_64: 285839
population_65_plus: 332684
median_household_income: 76260
poverty_rate: 12.44
homeownership_rate: 64.58
unemployment_rate: 4.33
median_home_value: 274700
gini_index: 0.4828
vacancy_rate: 7.88
race_white: 541369
race_black: 86760
race_asian: 29481
hispanic: 99611
bachelors_plus: 223841
sources:
- field: demographics
source: Census ACS 2023
confidence: official
tags: [jurisdiction, congressional-district, ok]
timestamp: "2026-07-03"
---
# OK-05
Congressional district OK-05.
## Demographics (ACS 2023)
| Measure | Value |
| --- | --- |
| Population | 836356 |
| Under 18 | 217833 |
| 1864 | 285839 |
| 65+ | 332684 |
| Median household income | 76260 |
| Poverty rate | 12.44 |
| Homeownership rate | 64.58 |
| Unemployment rate | 4.33 |
| Median home value | 274700 |
| Gini index | 0.4828 |
| Vacancy rate | 7.88 |
| White | 541369 |
| Black | 86760 |
| Asian | 29481 |
| Hispanic/Latino | 99611 |
| Bachelor's or higher | 223841 |
## Source
- demographics: Census ACS 2023