Data acquisition and processing
Overview › Data acquisition › Overview
How every data set of CAVEAT was obtained and turned into events and links: the sources with their addresses, the steps, all source code, the parameters of every step, and what can and cannot be repeated.
The five stages
Stages 1 to 3 depend on the domain. Stage 4 turns the result into the common package format. Stage 5 is the same for all domains and is done by CAVEAT. Hover over a stage for the examples of the domains.
The data sets
Counts are those of the packages that CAVEAT loads (rail packages: version 0.3, events as intervals of reconstructed real time; the packages of version 0.2 are superseded). The letters give the degree of reproducibility; hover over a letter for its meaning.
- A: The link step runs from a frozen input and reproduces the shipped links exactly
- B: Events and links are recomputed from a frozen intermediate table (rail payload)
- C: The collection needs a live source and gives a different result at another time
- D: Part of the data is a judgement by a reader; a script cannot repeat it
| Data set | Source | Licence | Period | Events | Links | Level | |
|---|---|---|---|---|---|---|---|
Rail delays: Germanyrail-de-0.3 | Deutsche Bahn timetable API, monthly files of piebro/deutsche-bahn-data | CC BY 4.0 (source files) | 2024-07-01 to 2026-10-01 | 238,061 | 57,004 | B | page |
Rail delays: Belgiumrail-be-0.3 | Infrabel punctuality data, monthly raw files | not stated on the dataset page | 2025-01-01 to 2026-09-30 | 51,826 | 8,486 | B | page |
Rail delays: Netherlandsrail-nl-0.3 | Rijden de Treinen train archive | CC BY 4.0 (archive page) | 2025-01-01 to 2026-09-30 | 33,545 | 2,489 | B | page |
Rail delays: Switzerlandrail-ch-0.3 | SBB / opentransportdata.swiss Istdaten | attribution required (opendata.swiss terms) | 2025-01-01 to 2026-10-03 | 10,166 | 265 | B | page |
Software: npm releasessoftware-npm-0.1 | npm registry | not recorded for the pilot | 2025-01-01 to 2026-09-30 | 55,102 | 49,561 | A C | page |
Software: npm releases, grouped by scopesoftware-npm-grouped-0.2 | derived from software-npm | as software-npm | 2025-01-01 to 2026-09-30 | 55,102 | 49,561 | derived | page |
US trade policy documentspolicy-us-trade-0.2 | Federal Register API | US federal government works | 2017-01-20 to 2026-10-18 | 599 | 2,589 | A C | page |
Research ideas: lenseslens-survey-0.1 | Semantic Scholar Academic Graph, OpenAlex | S2 API licence; OpenAlex CC0 | 1974-01-01 to 2026-10-21 | 1,713 | 7,097 | A C D | page |
Research ideas: scagnosticsscagnostics-0.3 | Semantic Scholar Academic Graph | S2 API licence | 2004-01-01 to 2026-10-21 | 918 | 2,214 | A C D | page |
Fiction: plot events of the series Darkdark-gd2025-0.1 | Graph Drawing Contest 2025 data (Dark) | not stated; permission to be clarified | 1888-09-21 to 2053-09-26 | 607 | 623 | A | page |
Hydrology: Danube flood rises, 2012/13hydro-lamah-ce-danube-basin-2013-d12-0.1 | LamaH-CE (Klingler et al. 2021), hourly discharge of 608 gauges | CC BY 4.0 or BY-SA 4.0 (the records differ; see Data packages, section 6) | 2012-10-01 to 2013-09-30 | 23,820 | 17,952 | see page | page |
Hydrology: Danube flood rises, 2014/15hydro-lamah-ce-danube-basin-2015-d12-0.1 | LamaH-CE (Klingler et al. 2021), hourly discharge of 608 gauges | CC BY 4.0 or BY-SA 4.0 (the records differ; see Data packages, section 6) | 2014-10-01 to 2015-09-30 | 22,893 | 16,647 | see page | page |
Licences are quoted from the package manifests and the pages of the sources. Where a licence is not stated, the manifest says that it is to be filled in before the package is shared.
Sources and addresses
Every address used by the scripts of this supplement. checked means that the page was opened and read on 5 Nov 2026. not re-checked means that it could not be opened from the environment in which this page was written; the address then comes from the collection scripts or the manifests.
| Domain | What | Address |
|---|---|---|
| Rail DE | Dataset page with description and licence | https://huggingface.co/datasets/piebro/deutsche-bahn-data checked |
| Rail DE | Project with the collector | https://github.com/piebro/deutsche-bahn-data checked |
| Rail DE | Monthly files, one parquet file per month (pattern; the example is the file of October 2026) | https://huggingface.co/datasets/piebro/deutsche-bahn-data/resolve/main/monthly_processed_data/data-YYYY-MM.parquet checked |
| Rail NL | Train archive page (description, columns, licence) | https://www.rijdendetreinen.nl/en/open-data/train-archive checked |
| Rail NL | Monthly service files (pattern, from the archive page) | https://opendata.rijdendetreinen.nl/public/services/services-YYYY-MM.csv.gz checked |
| Rail BE | Monthly raw punctuality data files (transportdata.be) | https://transportdata.be/de/dataset/fichiers-donnees-brutes-ponctualite-bestanden-ruwe-gegevens-stiptheid checked |
| Rail BE | Same dataset at the publisher (Infrabel open data) | https://opendata.infrabel.be/explore/dataset/stiptheid-gegevens-maandelijksebestanden/information/ not re-checked |
| Rail BE | Raw punctuality data of the previous day, overwritten daily (not used for the package, listed for completeness) | https://transportdata.be/dataset/50bf3632-7747-43e4-8c48-b87a37b93911 checked |
| Rail CH | Ist-Daten (actual data), dataset on opendata.swiss | https://ckan.opendata.swiss/en/dataset/ist-daten-actual-data checked |
| Rail CH | Portal of the data (opentransportdata.swiss) | https://opentransportdata.swiss/en/dataset/istdaten not re-checked |
| Rail CH | Terms of use named by the dataset page | https://opendata.swiss/terms-of-use#terms_by not re-checked |
| Policy | Federal Register API, search of documents (used by the script) | https://www.federalregister.gov/api/v1/documents.json not re-checked |
| Policy | Federal Register API documentation | https://www.federalregister.gov/developers/documentation/api/v1 not re-checked |
| Software | npm registry, one JSON document per package (used by the script; <package> is the package name) | https://registry.npmjs.org/<package> not re-checked |
| Software | semver library of npm (minVersion) | https://www.npmjs.com/package/semver not re-checked |
| Hydrology | LamaH-CE data set (Klingler et al. 2021), hourly runoff of the Danube network | https://doi.org/10.5281/zenodo.5153305 not re-checked |
| Papers | Semantic Scholar Academic Graph API (base used by the scripts) | https://api.semanticscholar.org/graph/v1 not re-checked |
| Papers | Semantic Scholar API documentation | https://api.semanticscholar.org/api-docs/ not re-checked |
| Papers | OpenAlex works endpoint (used by the scripts) | https://api.openalex.org/works not re-checked |
| Papers | OpenAlex documentation (CC0 data, API key) | https://help.openalex.org/api/ checked |
| Papers | Crossref and OpenCitations (used by the scagnostics scripts for records and citing DOIs) | https://api.crossref.org/works not re-checked · https://opencitations.net/index/api/v2 not re-checked |
| Fiction | Graph Drawing Contest 2025, list of events and list of edges | Dark_GD_Contest_Events.csv not re-checked · Dark_GD_Contest_Edges.csv not re-checked |
| Survey | Baumgartl et al., Survey on visualization of information diffusion over networks (the survey that survey_mapping.html maps to) | doi:10.1111/cgf.70498 not re-checked |
Environment and how to run
- Python 3.9 or newer. The link-extraction scripts and the validator need only the standard library (the validator also
jsonschema). The rail stage 1 code needspandas,numpyandduckdborpyarrow; the collection scripts needrequests; the lowest-version step needs Node.js and the npm packagesemver. - All code is in the folder
code/of this site and is shown, with download and copy buttons, on the page of its domain. Scripts marked as pilot scripts use the folder names of the machine on which the work was done; adapt the paths before running them. - Check that the shipped links are reproduced from the shipped inputs:
python verify_all.pyin the root of cascade_link_extraction.zip (17 MB) printsALL IDENTICAL. Its rail folders describe stage 2 only; the complete rail extraction is described on the Rail page. - Check that a package is valid:
python validate_package.py PACKAGE --schema cascade_package.schema.json(see Package format).
Frozen data and live sources
Sources change: registries add releases, APIs change their answers, files are overwritten. The data sets of the paper were collected in October 2026 and are frozen in the packages. A re-collection with the scripts gives a different data set, which is expected for the live sources (level C). What is reproducible is the step from the frozen input to the links (level A) and, for rail, from the frozen run table to events and links (level B). The judgements of the citation links are data (level D): a reader made them, and the records of the judgements are part of the input.

