--- topic: data-layers triggers: [data layer, data layers, datalaag, TripleXL, triplexl, SPARQL, GeoSPARQL, "Layers ▸ Data", LayerCategory, lib_layers.rs, layer_state.rs, data_layers.rs, "change feed", waterschap, Noorderzijlvest, "Hunze en Aa's", crates/atlas] updated: 2026-11-30 --- # Data layers: any source with places in it, kept current ## v1 — proposed 2026-11-30 ![v1](v1.png) Asked 2026-11-30: "a generic, dynamic data layer in Cartopolis; the first that wants to show its data is https://www.triplexl.nl/." **TripleXL** is a linked-data store: SPARQL 1.1 with GeoSPARQL (CRS84, EPSG:4326 and RD, EPSG:28992), GraphQL, a search index, and a change feed of commits as a stream (`text/event-stream`) or signed webhooks (`/capabilities` says all of it). Its public datasets on 2026-11-30 include the open data of the three water boards round Groningen — Noorderzijlvest, Hunze & Aa's, Wetterskip Fryslân — and their **saved queries carry `view.kind = "map"`** (with an optional `colour` column), so a map layer can be picked rather than written. A saved query answers without a token at `/datasets/{account}/{dataset}/queries/{name}` as SPARQL JSON, geometry as a `wktLiteral` with its CRS in front. Every marker on the sheet is a real record from those queries, placed on the PDOK aerial photo (BRT grijs in the admin preview). Aerial photo © Beeldmateriaal Nederland (PDOK), CC BY 4.0; BRT achtergrondkaart © Kadaster (PDOK), CC BY 4.0. The proposal: - **A data layer is things at places, several at once** — unlike a lens, which colours areas by one figure at a time. It lives under Layers as a seventh category, **Data**, grouped by publisher, each tile counting what it holds here and in all. - **A layer is data, not code**: a source, a query and a style (title column, colour column, fields for the card, link column), made on cartopolis.org's Admin page from a pasted address. A new kind of source needs an adapter in atlas; a new layer needs nothing built. - **Atlas fetches; the app only reads atlas**, through the per-cell files it already streams. Atlas converts the CRS, keeps a revision per layer, reruns the query on each commit the source announces (or on a timer when it has no feed), and the clients refetch only the cells whose revision moved. - **Every record says where it is from** on its card: publisher, route ("via TripleXL"), licence, when the source last changed, and a link to the record. Left open on the sheet: areas (a figure → lens, none → outlines), queries that ask for a value, private datasets behind a token, who may add a layer, and whether a marker also lights the object it stands on. Agreed 2026-11-30 ("bouw het zo") and built the same day, in that order: atlas's `feeds` (TripleXL's saved queries, followed by the dataset's revision every minute), Layers ▸ Data with the dot and its card (`systems::feeds`, `lib_feeds`), and Admin ▸ Data layers. Built differently from the drawing: the dots are plain discs in the layer's colours, without a stem or a kind's glyph; the card has no Walk here or Share yet; a change arriving shows no toast (the dot simply takes its new place or colour); the Admin preview is the points on a plain ground, not on the BRT map; "other" is grey and listed only when a layer has seven values. Standing facts are in `docs/notes/data-layers.md`. The scratch script that placed the sheet's records is not kept; the query names and counts are on the sheet.