Files
republic-os/data/jurisdictions/us/states/de/counties/new-castle/index.md
T
Fabio 1beeaab2db Graph: national county↔district↔legislator authority layer
The first edges in the repo. Every US county now links to the districts it
sits in, weighted by area overlap, and every legislator links to the district
they represent — county → district → representative, traversable.

Data (PostGIS, no Atlas dependency — computed directly from geometry):
- data/county_district_edges.jsonl — 16,328 weighted edges. area_weight =
  ST_Area(ST_Intersection(county, district))/ST_Area(county) over ST_MakeValid
  Census TIGER 2024 geometries, overlaps <0.5% dropped. Uses area-intersection,
  NOT centroid-in-polygon, so urban districts that carve through counties
  (e.g. GA CD-5 / Atlanta across Clayton+DeKalb+Fulton) are captured, not
  silently dropped. Per-county weights sum to ~1.0 per district type.

build.py:
- ~6,896 new district nodes: 435 CD (ACS demographics where available; sparse
  for the 8 states missing from acs_cd) + 4,927 state-house + 1,897 state-senate
  (geometry-only). GEOID/number-keyed, stable.
- county index.md gains a `districts:` block (frontmatter) + a ## Districts
  section (body links, so link-integrity checks them).
- legislators + US House members gain `represents:` pointing at their district
  node; edge stored once on the person, inverse left to the view.
- schemas/jurisdiction: classification enum + chamber/districts fields.

Honest gaps (logged, not hidden): ID + NH have no state-house geometry, so
their house districts get nodes (represents resolves) but no county edges;
CD nodes for acs_cd-missing states are demographically sparse.

Deterministic (byte-identical rebuild); validate.py passes 26,617 records,
link-integrity clean (every district/represents link resolves).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-04 22:28:08 -04:00

7.6 KiB
Raw Blame History

type, title, classification, fips, state, demographics, districts, sources, confidence, tags, timestamp
type title classification fips state demographics districts sources confidence tags timestamp
Jurisdiction New Castle County, DE county 10003 DE
population population_under_18 population_18_64 population_65_plus median_household_income poverty_rate homeownership_rate unemployment_rate median_home_value gini_index vacancy_rate race_white race_black race_asian race_native hispanic bachelors_plus
588093 138888 198150 251055 89846 9.99 68.49 5.05 372200 0.4527 5.44 302952 156425 40551 2639 73584 230059
to rel area_weight
us/states/de/districts/00 in-district 0.9046
to rel area_weight
us/states/de/districts/senate/14 in-district 0.2167
to rel area_weight
us/states/de/districts/senate/12 in-district 0.1512
to rel area_weight
us/states/de/districts/senate/10 in-district 0.1228
to rel area_weight
us/states/de/districts/senate/4 in-district 0.0898
to rel area_weight
us/states/de/districts/senate/8 in-district 0.0507
to rel area_weight
us/states/de/districts/senate/11 in-district 0.0416
to rel area_weight
us/states/de/districts/senate/9 in-district 0.0405
to rel area_weight
us/states/de/districts/senate/2 in-district 0.0349
to rel area_weight
us/states/de/districts/senate/13 in-district 0.0325
to rel area_weight
us/states/de/districts/senate/7 in-district 0.0297
to rel area_weight
us/states/de/districts/senate/5 in-district 0.027
to rel area_weight
us/states/de/districts/senate/1 in-district 0.0265
to rel area_weight
us/states/de/districts/senate/3 in-district 0.016
to rel area_weight
us/states/de/districts/house/9 in-district 0.1642
to rel area_weight
us/states/de/districts/house/11 in-district 0.1359
to rel area_weight
us/states/de/districts/house/12 in-district 0.0695
to rel area_weight
us/states/de/districts/house/27 in-district 0.0607
to rel area_weight
us/states/de/districts/house/8 in-district 0.0574
to rel area_weight
us/states/de/districts/house/17 in-district 0.0534
to rel area_weight
us/states/de/districts/house/15 in-district 0.0395
to rel area_weight
us/states/de/districts/house/23 in-district 0.0327
to rel area_weight
us/states/de/districts/house/22 in-district 0.0269
to rel area_weight
us/states/de/districts/house/16 in-district 0.0259
to rel area_weight
us/states/de/districts/house/25 in-district 0.025
to rel area_weight
us/states/de/districts/house/6 in-district 0.0193
to rel area_weight
us/states/de/districts/house/21 in-district 0.019
to rel area_weight
us/states/de/districts/house/19 in-district 0.0181
to rel area_weight
us/states/de/districts/house/10 in-district 0.0172
to rel area_weight
us/states/de/districts/house/18 in-district 0.0171
to rel area_weight
us/states/de/districts/house/24 in-district 0.0156
to rel area_weight
us/states/de/districts/house/26 in-district 0.0148
to rel area_weight
us/states/de/districts/house/2 in-district 0.0139
to rel area_weight
us/states/de/districts/house/7 in-district 0.013
to rel area_weight
us/states/de/districts/house/13 in-district 0.0114
to rel area_weight
us/states/de/districts/house/5 in-district 0.0109
to rel area_weight
us/states/de/districts/house/28 in-district 0.0101
field source
demographics Census ACS 2023
field source
districts PostGIS area-intersection over Census TIGER 2024 boundaries
official
jurisdiction
county
de
2026-07-03

New Castle County, DE

County jurisdiction — 3 officeholders mapped.

Demographics (ACS 2023)

Measure Value
Population 588093
Under 18 138888
1864 198150
65+ 251055
Median household income 89846
Poverty rate 9.99
Homeownership rate 68.49
Unemployment rate 5.05
Median home value 372200
Gini index 0.4527
Vacancy rate 5.44
White 302952
Black 156425
Asian 40551
Native 2639
Hispanic/Latino 73584
Bachelor's or higher 230059

Districts

Source

  • demographics: Census ACS 2023
  • districts: PostGIS area-intersection over Census TIGER 2024 boundaries