D54 — The data pages say what they show: a front page, readable views, ids as links, one page per entity¶
- Status: Accepted — amends D51e and D50
- Date: 2026-09-24
- Origin: slice 29, after the first person to use /data could not tell what they were looking at
- Area: surfaces
Decision¶
This follows Datasette's own metadata conventions: titles, description_html,
column descriptions, label_column, sort, facets, hidden, canned-query
params, and one render_cell plugin. There are no template overrides.
- A front page says what the graph is about and what it holds, worked out from what we believe, so it never drifts from the tables:
- a title and a line on what it covers:
title:andabout:inkg.yaml, or indataset.yamlfor a shared dataset (which then wins), else the first sentence of each pack in use; - each type held, as a count linking to its view, broken down by status and
by country or house (saying how many state it), its two most widely stated
totals ("
it_power_mwtotals 13,352 MW across the 71 that state it"), and the entities most linked to from elsewhere ("[redacted — D65]"); - how well it is sourced: sources, publishers and the span of their dates; how many current values rest on two or more independent sources, and the publishers most values rest on; how many newer values wait for a second source, and how many are disputed;
- the scopes being tracked, with their members and criteria;
- how to read
standing, the saved questions, and when it was built. - A type nothing is held of is hidden, with any saved question that reads only such views: a data-center graph does not offer "members by party".
- Only what a reader uses first is listed:
- each type's view, titled "Data centers — what we believe now";
current_values("Every value, with its standing");- the evidence:
claims,eventsandsources.
Logs, leases, captures, bundles, sweeps and the rest are hidden, and still
answer SQL.
- Column descriptions:
- for a type view, only where they add to the column's name: the pack's
description, or the unit ("in MW");
- for current_values, every column, standing spelt out.
- Ids are links (kg.serve.ds_plugin):
- an entity id opens the entity page;
- claim_ids becomes "N claims →", opening those claims;
- a claim's entity shows the entity's name;
- sources show their URL.
- An entity page: the canned query entity(:id) lists every value the entity
holds, each with its standing and the quote, locator and source behind it.
This is the path from a row to its evidence.
- Saved queries get a readable title and their parameters. A query saved
after the peer started appears on the next page, because freshness rebuilds
the metadata with the table.
- kg views export describes only the tables its file holds. It has no
claims, so it has no entity page.
- kg views browse [--port] serves the same pages over the local graph on
127.0.0.1, without sign-in, kept fresh on every request. CLI only; claude.ai
already has read op=sql.
Why¶
At /data the database page listed 29 tables in alphabetical order, the views
people want last. It had no word on what any of them were, and every row led
with a bare en_… id. A first front page explained how to read the tables but
still not what the graph was about: a person opening it wants to know the
subject, the size and the shape before any table ("105 data centers, 71
operational, 88 in the US; 5 of 1,009 values rest on two sources, most on one
aggregator"). Datasette's answer is metadata and a small plugin, which
survive upgrades better than templates.