Serve lineage events, and add reorganized_as for a town that became a city #86

Open
opened 2026-11-17 12:48:48 -05:00 by jared · 0 comments
Owner

Serve mergers and form-of-government changes as facts about governments, so a caller can follow one place's government across a change of ID.

What exists

The finance pipeline records lineage in census_of_governments_finance_pipeline/data/lineage_events.csv: 11 events with relations annexed_by, consolidated_into and merged_into (Macon-Bibb, Greeley County, …). Neither the API nor uscogdata serves them yet. data/continuations.csv (538 rows) separately maps legacy IDs to canonical ones where an ID changed and the government did not.

What is missing: a town that became a city

Eleven Massachusetts towns that adopted a city form of government appear under two canonical_govids. Watertown is one, checked 2026-11-17 against /api/v1/governments?state=MA:

canonical_govid Name Type Years
253017900000 WATERTOWN TOWN 3 (township) 1967–1993
252017194919 WATERTOWN CITY 2 (city) 1994–2022

No gap between them, and no event in lineage_events.csv links them. Weymouth is another (Weymouth Town 1967–2007, Weymouth Town City from 2012). Five of the older town records have no census_geoid, so they cannot be joined to a place by code.

None of the three existing relations fits: the government continued, and only its form changed.

Work

  1. Add a reorganized_as relation for a change of form under a new ID, with evidence, for the Massachusetts cases first.
  2. Serve lineage events from uscogdata (a verb or a table in the corpus), with the predecessor, successor, year, relation and evidence.
  3. Say in the docs how a caller following one place across years should use it, and how it differs from continuations.csv.

Consumer

nss_land links places to governments and keeps one link per ID, each with its own years (Watertown Town → Watertown City). It records the link; the change itself is a fact about the government and belongs here. Design: nss_land/docs/superpowers/specs/2026-11-17-land-cover-layer-design.md, "The place-to-government link".

Serve mergers and form-of-government changes as facts about governments, so a caller can follow one place's government across a change of ID. ## What exists The finance pipeline records lineage in `census_of_governments_finance_pipeline/data/lineage_events.csv`: 11 events with relations `annexed_by`, `consolidated_into` and `merged_into` (Macon-Bibb, Greeley County, …). Neither the API nor `uscogdata` serves them yet. `data/continuations.csv` (538 rows) separately maps legacy IDs to canonical ones where an ID changed and the government did not. ## What is missing: a town that became a city Eleven Massachusetts towns that adopted a city form of government appear under two `canonical_govid`s. Watertown is one, checked 2026-11-17 against `/api/v1/governments?state=MA`: | `canonical_govid` | Name | Type | Years | |---|---|---|---| | `253017900000` | WATERTOWN TOWN | 3 (township) | 1967–1993 | | `252017194919` | WATERTOWN CITY | 2 (city) | 1994–2022 | No gap between them, and no event in `lineage_events.csv` links them. Weymouth is another (Weymouth Town 1967–2007, Weymouth Town City from 2012). Five of the older town records have no `census_geoid`, so they cannot be joined to a place by code. None of the three existing relations fits: the government continued, and only its form changed. ## Work 1. Add a `reorganized_as` relation for a change of form under a new ID, with evidence, for the Massachusetts cases first. 2. Serve lineage events from `uscogdata` (a verb or a table in the corpus), with the predecessor, successor, year, relation and evidence. 3. Say in the docs how a caller following one place across years should use it, and how it differs from `continuations.csv`. ## Consumer `nss_land` links places to governments and keeps one link per ID, each with its own years (Watertown Town → Watertown City). It records the link; the change itself is a fact about the government and belongs here. Design: `nss_land/docs/superpowers/specs/2026-11-17-land-cover-layer-design.md`, "The place-to-government link".
jared added the
ws
corpus
type
feature
labels 2026-11-17 12:48:48 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Civilytics/uscogdata#86