CAMPOP-Places

CAMPOP Places

DOI License: CC BY 4.0

Permanent, human-legible identifiers for historical places in England and Wales, each with a point location placed by a stated method.

Identifiers take the form {COUNTY}.{Place} — the three-letter Chapman code of the historic county and the modern place name — and resolve under https://w3id.org/campop/place/.

In a browser each opens the place’s page; a client asking for JSON gets the data (see How resolution works).

What a CAMPOP Place is

A CAMPOP Place is a hook: one permanent identifier for one place, so that what different sources say about that place can be joined. A market grant, a fair in a 1792 almanac, a church in Domesday, a borough in the 1835 schedules and a stage on Paterson’s roads that all refer to the same place should all point at the same identifier, and then they can be read together.

A place is included because a source attests it, not because it was, or became, a town. It is minted when an attestation from a source the project admits (public domain, CC0, CC BY or OGL) needs somewhere to attach, and it needs no other qualification: a village with one Domesday church, a market that failed within a generation, a fair held on a hilltop with no settlement at all. Being a CAMPOP Place says nothing about a place’s status. Whether it was a town, on which definition and at what date, is a question for the attestations attached to it, asked by an analysis that states its own criterion.

This is a deliberate break with the dataset these identifiers began from.

Why not a list of towns: the selection bias in Candidate Towns

The first points came from Candidate Towns of England and Wales, c.1563-1911 (Shaw-Taylor, Satchell, Potter & Bogart, 2017), a list of everywhere that might have been a town on one of the criteria historians have used. Its word “candidate” is careful, but the way the list was assembled decided in advance which places could ever be studied, and it favoured the places that turned out to be successful:

Each of these filters selects on outcome. A sample of places chosen for having become towns can say little about why some places became towns and others did not, because the ones that did not are missing from it. Questions about growth and decline need the failures included in the count, and the selection removed them first. That is survivorship bias: the dataset could only describe the winners.

CAMPOP Places therefore keeps the Candidate Towns points and identifiers it inherited (an identifier, once published, is never withdrawn), but no longer uses that list to decide what belongs. Inclusion now follows the evidence: what a source attests, wherever it is. Three rules follow from that:

Why Chapman codes. They are the codes the people most likely to cite these identifiers already know: British genealogy and local history have used them for decades, GENUKI and the FreeREG and FreeCEN transcriptions among them, so NFK.Kings-Lynn reads as Norfolk without a lookup. They name the historic counties these places belonged to, and one code list covers the Channel Islands (JSY, GSY, ALD, SRK) and the Isle of Man (IOM) too, so extending the gazetteer there would not mean mixing two schemes. Only the historic-county codes are used: the three Yorkshire ridings are all YKS, and the post-1974 codes are not used at all. The World Historical Gazetteer indexes the historic county outlines under Historic Counties Standard codes instead (ukhc:AGL for Anglesey), so chapman-codes.csv pairs each Chapman code with its HCS code, and a place’s relation to its county uses that. The gazetteer used HCS codes in its identifiers for a short time before v1. They do not redirect, but the Reconcile tab reads them (below).

How a point is placed

The method was devised by Max Satchell and Ellen Potter for the original Towns dataset. Its aim, in the deposit’s own words, was

to establish an accurate and consistent set of town central points suitable for network analysis based on enduring features.

A point is placed on the first of these that can be identified, in order:

  1. Marketplace, or a market feature such as a market house or corn exchange
  2. Parish church
  3. Inn
  4. Post Office
  5. Public house
  6. Centre of the High Street

The hierarchy is the substance of the dataset, not a footnote to it. It is why a point here means something a coordinate scraped from elsewhere does not: each is a town centre chosen by a rule that prefers features likely to endure, so points are comparable with one another and stable across the period. A church standing proxy for a town and a mapped marketplace are both valid under the rule and are not the same kind of evidence, which is why each point records what it is on, in feature_type.

Subsequent additions to the dataset have occasionally been located by road intersections. Those additions are later than the original and follow a seventh rule, used where none of the six applies: a junction judged to be an arguable centre of the settlement.

Fair sites. CAMPOP Places names fair sites as well as towns: a fair held on a green, a common or a hill away from any settlement’s centre (Woodbury Hill, Bradford Leigh) is a place of its own. Its point goes on the ground the fair was held on, and its feature_type is FAIR. That is an eighth rule, not a rung of the hierarchy: the point is not a proxy for a town centre, and is a different kind of evidence from a mapped marketplace. Use MARKET for a market site, a market house or a market place, and FAIR only where the place is the fair site.

Lost settlements. A deserted or shrunken settlement that a source attests (a Domesday vill now a farm or a field of earthworks) has no surviving centre for the hierarchy to find. Its point goes on the site as recorded, by its earthworks or a heritage record, and its feature_type is SITE, with the geometry’s certainty saying how sure the placing is (usually less-certain). A ninth rule, like FAIR not a rung of the hierarchy: the point says where the settlement was, not where a town centre is. Added 2 Nov 2026; the first is Wildthorpe (Yorkshire), a Domesday vill.

Provenance of the coordinates

The coordinates of the original, unextended dataset derive from Satchell et al., Candidate Towns of England and Wales c.1563–1911 (2017). Places added since do not, and the dataset should not be described as though they did.

When an identifier changes

The identifier encodes the name, so standardising a spelling changes it. An old identifier that simply stops working takes every citation of it with it, so each one is recorded on the place that superseded it, in previous_uris:

"properties": {
  "uri": "https://w3id.org/campop/place/NFK.Kings-Lynn",
  "previous_uris": ["https://w3id.org/campop/place/NFK.Lynn-Regis"]
}

(An illustration: no place has been renamed yet.) uri is the place’s identifier in full, the same as its @id, and previous_uris and split_from hold full identifiers too, so each is a link in JSON-LD rather than a string. build_pages.py collects the old identifiers into place/previous.json, a flat map from the old identifier to the current one, keyed by the local part (NFK.Lynn-Regis), which is what the place page is asked for. A uri that names a different place from its @id stops the build. It refuses to build if two live places claim the same old identifier — a redirect that resolves to two places is worse than one that 404s, because it looks like an answer — or if an old identifier is also a live one.

A retirement with no place to carry it (a duplicate deleted outright) is recorded by hand in superseded.csv, which any spreadsheet can edit:

old_identifier,replaced_by,reason
CUL.Alleyholm,CUL.Holme-Abbey,a typographic duplicate of Holme Abbey in the Candidate Towns layer

Several replaced_by identifiers, separated by ;, make a split. The build merges these rows with previous_uris and split_from. It follows a chain, so if Holme Abbey were renamed, Alleyholm would still lead to it. It refuses (exit 10) a row that leads to no place or round in a circle.

Every retired identifier keeps a file at its old address, place/CUL/Alleyholm.json, which says what replaced it:

{ "@id": "https://w3id.org/campop/place/CUL.Alleyholm",
  "isReplacedBy": "https://w3id.org/campop/place/CUL.Holme-Abbey",
  "comment": "Superseded by … : a typographic duplicate … Cite that identifier instead." }

isReplacedBy is dct:isReplacedBy. GitHub Pages cannot redirect, so this is how a JSON client that w3id sends to an old identifier gets an answer rather than a 404. The place page reads the same file and says Superseded or Split, with links.

After v1 the rule is stricter: a correction is a new URI plus skos:exactMatch from the old one, never an edit in place. previous_uris records the trail; it does not replace that rule.

Apostrophes are dropped from the identifier and kept in the name. King's Lynn is NFK.Kings-Lynn. An apostrophe is legal in a URI path segment — RFC 3986 lists it as a sub-delimiter — but it is a poor thing to carry: it needs quoting in a shell, it breaks naive CSV, SQL and JavaScript string handling, and the typographic apostrophe U+2019 is not a sub-delimiter, so King's and King’s would percent-encode differently and one name would yield two identifiers.

When a record is more than one place

EAST LOOE/WEST LOOE is one point in the Candidate Towns layer standing for two settlements. Renaming it would not help: the problem is not its spelling but that it is two places. So it is split. Each part becomes a place of its own, with its own point, name and closeMatch, and records the identifier it came from in split_from:

"properties": { "uri": "CNW.East-Looe", "split_from": ["CNW.East-Looe-West-Looe"] }

The old identifier is retired, not given to either part. A redirect from it to East Looe would be an answer to a question the old record never asked, and a citation of it may have meant either town or both. build_pages.py collects split_from into place/split.json, a map from each retired identifier to all of its parts, and the place page shows that identifier as a list to choose from. If the record had itself superseded older identifiers, those are carried in split_from too, so they keep resolving.

A split is not a redirect, so it is kept out of previous.json, whose premise is one old identifier to one place. The build refuses a split identifier that is also a live one or also recorded as superseded, and a “split” into a single place, which is a rename and belongs in previous_uris.

Why not a Wikidata QID

Wikidata is the obvious candidate for identity and does not hold up for this purpose.

So a QID is recorded as skos:closeMatch, with its certainty and its distance in km — a claim about a match, carrying its evidence. Never as the identity.

AGY.Beaumaris can also be read, checked and argued with in a footnote. Q1992389 can only be looked up.

Repository layout

path what it is
place/{COUNTY}/{Place}.json one self-contained Linked Places Feature per place
place/index.html the human representation — map, expansion, matches
place/index.json a flat index of every existing place, for duplicate checking
place/previous.json superseded identifier → the identifier that now carries it
place/split.json retired identifier of a split record → every place it was split into
contribute/index.html the contribution tool — a new place, an edit, a split or a merge
contribute/reconcile.js the contribution tool’s Reconcile and Map tabs
names.js the place-name rules both tools share: canonical form, identifier slug, match score
campop-places.lp.geo.json the whole collection, for bulk users
build_pages.py splits the collection into the per-place files
check_place_tree.py every feature has a file under place/, and every file a feature
contribute/england-wales.geo.json the outline a new point must fall inside; built by build_mask.py
add_attested_names.py adds the names the historical lists print for a place, each cited to the list (from the markets repository’s variant-names file)
add_places.mjs mints many places at once by the contribution tool’s own rules, for sources that attest hundreds of places (Domesday)
test_contribute_commit.py headless tests of the contribution tool’s commit path
chapman-codes.csv the Chapman codes of the historic counties, each with its HCS code for WHG; the authority for county codes
.github/workflows/build-places.yml rebuilds place/ whenever the collection changes
API/index.html legacy. Resolves the ten w3id.org/locolligo/CAMPOP-Places/AGY.* identifiers the 2022 deposit published to their current identifiers
LICENSE CC BY 4.0, with the citation

Proposing a place, or an edit

Open the contribution tool →

It does four jobs, on any of three basemaps — the NLS OS 25-inch sheets (the default), the NLS OS 6-inch sheets, or OpenStreetMap:

There are two ways out of it, and they make different claims.

This page used to say that nothing is written back from a web page, because a gazetteer any page view can alter is not a gazetteer. What survives is narrower: a page view still cannot alter it. Only an account GitHub already lets push to this repository can, and every change is a named commit that can be read and reverted.

Commit access

The page asks for a fine-grained personal access token, limited to docuracy/CAMPOP-Places, with Contents: Read and write and nothing else, and a short expiry. A classic ghp_ token reaches every repository an account can, and is refused. The token is checked before it is stored: that GitHub accepts it, whose it is, that the account can push, and that the token itself can write. A token GitHub later rejects is forgotten on the spot, and there is a Forget this token button. Two things a web page cannot check are left to the contributor: that the token is limited to this one repository, and when it expires.

Two facts shape this, and the token dialog states both:

A GitHub App or OAuth’s device flow would avoid a long-lived token in the browser, but both need a server-side step, and this is a static site.

Because nothing stands between the click and main, the page makes the build’s refusals before it commits, against the collection as it stands on main: a county code that is not an English or Welsh code in chapman-codes.csv, an identifier already taken, two features sharing an identifier but disagreeing, a superseded identifier claimed twice or still live, a split identifier still live or split into only one place, and a point outside England and Wales (contribute/england-wales.geo.json, built by build_mask.py from ONS boundaries under the OGL). An edit to a field someone else has changed since the place was loaded is refused, not overwritten. If main moves between the read and the write, which is ordinary because the Action commits to it, the page re-reads, re-applies and re-checks. It never forces. While campop-places.lp.geo.json does not exist, committing is off: creating the collection is a deliberate step, not a side effect of the first new place.

test_contribute_commit.py tests all of this headlessly, against a fake GitHub.

With commit access, finished changes can also be added to a batch, kept in the browser, and committed together as one commit; if any change in the batch is refused, none is written.

Place-name suggestions. With your own WHG API Token, typing three letters of a name suggests GB1900 place names in the chosen historic county. Choosing one moves the map to where GB1900 engraves that label, on the 6-inch sheet, for you to judge: it does not place the point or change the name, because GB1900 is share-alike. WHG’s county outlines leave out detached parts of counties, so for a place in one, clear the county to search all of England and Wales.

Two things the tool actively prevents, whichever way out is used:

  1. Minting a place that already exists. Every candidate is checked by distance and by name, against place/index.json, or, when committing, against the collection on main. A point within 2 km of an existing place, or sharing its name within 12 km, blocks the download and the commit until someone confirms in as many words that it is a different place. Neither test is sufficient alone: two places 400 m apart with unrelated names are two places; two records 9 km apart both called Llantwit Major are one place entered twice.
  2. Ingesting someone else’s coordinate. The NLS 6-inch and 25-inch tiles are share-alike, which this project treats as a witness licence: consulted to navigate, never copied in. The datum is where the contributor clicks, having looked at the sheet.

The map opens on the 25-inch sheets, as each place’s page does. They begin at zoom 13 and the 6-inch at zoom 10, so OpenStreetMap is drawn beneath both and shows below those zooms rather than an empty map. Both pages take the sheets from one file, basemaps.js. The 25-inch sheets are NLS’s county tile sets (Derbyshire with Shropshire, all of Wales in one), drawn from zoom 13, each fetched only where its county’s bounds are in view; the edition differs from county to county, so the basemap’s label, and the “Placed against” line of a commit, name no dates. Choosing a GB1900 suggestion switches to the 6-inch, the edition GB1900 transcribes, where its label is engraved. Choosing a historic county zooms the map to it, using the county’s extent from the World Historical Gazetteer, and loading a place to edit zooms to its marker. A name carried over from the Reconcile tab by Create place is looked up in GB1900 at once, as if typed.

Reconciling a table

The contribution tool has a Reconcile tab. Drop a CSV or TSV that names places, and get it back with CAMPOP identifiers filled in. The tab works out which column holds the place names, which (if any) already holds CAMPOP identifiers, and which (if any) holds a county, as a Chapman code (NFK), an HCS code (NRF) or a county name (Norfolk, Yorkshire West Riding); any of these can be changed. An identifier written with the HCS county codes used before v1 (NRF.Kings-Lynn) is read as the place it named, and written back with its Chapman code.

The identifiers go back into the file’s own identifier column, in the form it already uses, or into a new campop_uri column in full. Nothing else in the file changes. The file is never uploaded; it is kept in your browser’s storage so a reload does not lose the work. Names are matched by the same rules the tool uses to mint them (names.js).

How resolution works

GitHub Pages is static and cannot read an Accept header. w3id.org runs Apache and can, so the negotiation lives there and Pages only serves files:

          Accept: application/json    →  303  →  place/AGY/Beaumaris.json
w3id.org ┤
          Accept: text/html  or  */*  →  303  →  place/?id=AGY.Beaumaris

303 See Other, not 302. A place is not a document, so its identifier must not 200; 303 says “the thing you asked for is not a web resource, but here is a description of it”. This is the httpRange-14 convention that linked-data clients rely on.

Try it (each opens in a new tab):

From a terminal, curl -L -H 'Accept: application/ld+json' https://w3id.org/campop/place/AGY.Beaumaris returns the data rather than the page.

The rules live at ids/campop/.htaccess in perma-id/w3id.org, merged from perma-id/w3id.org#6707 on 2026-09-16.

Building

python build_pages.py campop-places.lp.geo.json --out .

Writes place/{COUNTY}/{Place}.json, sharded on the county code so ~1,700 files browse as 52 directories, plus the collection. place/ is generated — do not edit it by hand.

It refuses to build on a county code that is not an English or Welsh code in chapman-codes.csv (the Channel Islands and the Isle of Man are listed, but not yet in scope), and on a place with no relation to its county under the paired HCS code. Pass --allow-unknown-county to build anyway. An identifier minted on a wrong county code is not cosmetic — it is permanent and wrong. Each per-place file carries its own @context, so it is valid Linked Places standing alone rather than a fragment of the collection it came from. Every @id is re-minted onto https://w3id.org/campop/place/; pass --base to change that.

The HTML page fetches the same static file a machine client is 303’d to, so the two representations cannot drift apart. One page serves every place: 1,700 generated HTML files would be identical but for their data and would need rebuilding whenever the design changed.

Automation

.github/workflows/build-places.yml rebuilds place/ on any push touching the collection, the builder or the county codes, and commits the result. It fails on a county code that is not an English or Welsh Chapman code, on a place with no relation to its county, on an unusable @id, on conflicting identifiers, on a superseded or split identifier that is ambiguous or still live, on a split into a single place, on a feature with no file, and on a file with no feature — the last because a stale identifier that still resolves is worse than a 404, since it looks like data.

The county shards under place/ are cleared before each build, so a renamed or removed place takes its old file with it. The contribution tool commits to main directly, so a new commit can land while a run is building. When that happens the run’s push is refused, and it rebuilds on the new head and tries again rather than forcing.

The commit is made with GITHUB_TOKEN, whose pushes do not trigger workflows, so it cannot loop.