Hack-the-Pool-2026

Enrichment: Franz Ferdinand’s hunts, 1892/93 — reception in ANNO and Kulturpool

Builds on the normalised data in ../normalization/json/ (vault → filter_voyage.py, diary → diary_days.py) and adds external sources: Wikidata, ANNO, Kulturpool, Höfer’s itinerary, Weltmuseum/Commons photos, franzferdinandsworld.com. Python ≥ 3.10, standard library only; API responses are cached in .cache/.

./run_all.sh                  # all steps in order
python3 00_places.py          # normalised route places + Wikidata → data/route_places.json, route.geojson, places_resolved.json
python3 01_extract_hunts.py   # diary days (normalization) → data/hunt_entries.json, data/hunts.json
python3 02_anno.py            # ANNO newspapers → data/anno.json
python3 03_kulturpool.py      # Kulturpool objects → data/kulturpool.json
python3 03b_hoefer_photos.py  # Höfer itinerary + Weltmuseum/Commons photos → data/hoefer_photos.json
python3 03c_people.py         # people of the voyage: diary, hunts, GND/Wikidata, ANNO, Kulturpool → data/people.json
python3 03d_objects.py        # Este collection objects (Weltmuseum) ↔ stops, diary, index cards → data/objects.json
python3 03e_europeana.py      # photos by the voyage's photographers in Europeana → data/europeana.json (needs EUROPEANA_API_KEY in .env)
python3 03f_person_sources.py # hunter, captain, photographers, doctors in all sources → data/person_sources.json
python3 04_build.py           # merge → data/enrichment.json, data/hunts.geojson
python3 05_export_presse.py   # ANNO clippings → ../../3_visualization/web/data/presse_anno.csv
python3 06_crosscheck_ffworld.py  # itinerary check vs franzferdinandsworld.com → data/ffworld_days.csv, ffworld_crosscheck.json
python3 07_heroes.py          # surviving animals (heroes.json, curated) → data/heroes.json, heroes.geojson
python3 08_export_prototype.py  # bundle for the prototype → ../../3_visualization/web/data/ke_enrichment.js

After step 5 rebuild the prototype bundle in ../kaiserin_elisabeth/: uv run python -m scripts.ke_diary. Step 8 then bundles the enrichment for ../../3_visualization/web/reise.html (data/ke_enrichment.js, window.KEE). The page is built on it: the 309 days of normalization/json/tagebuch_tage.json as the spine (coordinates: hunting places from Wikidata first, then the prototype gazetteer, route places, a few stops by hand; coords says which), the 18 episodes with their ANNO articles, the Europeana photos and the Este objects at the day they are dated to, all 84 people of data/people.json (← normalization/json/personen.json + Ranglisten, with diary days, GND/Wikidata, ANNO and Kulturpool hits), the person search and the live animals (heroes.json). Views: days, hunts, animals, people, press echo (ANNO coverage, trophies/diary reviews, Kulturpool). Deep links: reise.html#1893-02-24, #hunt-1893-03-09-nepal, #fips-mucki. The bundle also feeds geschichte.html (the story page). Days after 24.8.1893 carry "ship": false: Franz Ferdinand left S.M.S. Kaiserin Elisabeth in Yokohama and travelled home without her (SHIP_END, bundle key ship). Every day with a map point carries coord_source: the method (camp, hunt, hand, heading, site, wikidata), the basis (wikidata, geonames, estimated, hand), the Wikidata/GeoNames link and a note; reise.html shows it in the day view. Hunting places that stand for several stops list them in places.json as camps (the Nepal Terai camps, Alwar, Mullengudgery, Ugi, the Laroki camp, Shingle Creek): with a Wikidata QID (coordinates fetched in step 0), a GeoNames point, or an estimate from the distances and directions in the diary and Höfer’s itinerary, each with a note.

ANNO evidence (step 2) is strict: a snippet counts only if it names Franz Ferdinand (not another archduke such as his father Karl Ludwig, not “Erzherzogl.” estates, regiments or hotels) and does not name only places or animals of another hunt; an issue found for several hunts goes to the one whose place its snippet names (else the earliest). Fewer hits (41 issues), but each one is about this hunt.

Hand-maintained inputs: places.json (hunting places: OCR/day spellings, ANNO terms, region, vault notes), route_wikidata.json (QID per route place), animals.json, heroes.json.

For the web app use data/enrichment.json (or data/hunts.geojson for the map layer).

Data model (enrichment.json)

episodes[]                       one hunting episode = consecutive diary entries in one region
  id, region, start, end         e.g. hunt-1893-03-10-nepal, 1893-03-10 … 1893-03-26
  places[]                       id, label, lat, lon (from Wikidata), wikidata, coord_note (approximate coords flagged),
                                 vault[{note, id}] (vault place note + id from normalization/json/ortschaften.json), on_route
  animals[]                      id, label_de, label_en, mentions (in diary kill-sentences)
  diary                          entries[{date, band, scan}], kill_sentences, quotes[{text, animals, first_person, date, band, scan}]
  anno                           window, queries{near, issue}, issues_found, issues_high,
                                 articles[{docId, title, date, newspaper, url, thumbnail, relevance, match, snippets[{text, image, url, page}]}]
  kulturpool                     direct[] (refers to the voyage), context[] (objects about the region, NOT about FF)
  hoefer                         stays[{stay, from, to, section}], from, to, days_without_hunting_entry, diary_within_hoefer
  photos[]                       source (Weltmuseum Wien | Wikimedia Commons), title, date, url, vf_id, image, rights
  people[]                       who is named in the episode's kill sentences: id (vault), name, group, kill_sentences, gnd, wikidata
  europeana[]                    photos by the voyage's photographers dated on the episode's days: title, creators, provider, rights, europeana, preview, vf, animals
  objects[]                      Este objects acquired/described at this stop on the episode's days: inventory, type, url, strength, evidence, card
voyage
  kulturpool[]                   voyage-level objects (tier: voyage | modern)
  anno_coverage                  issues per month mentioning FF / FF + hunting, 12/1892–12/1893
  anno_topics[]                  "trophies" (1893–94), "diary" (reviews of the printed diary 1895–98)

Join to the normalised data via places[].vault[].id (= _meta.id in normalization/json/ortschaften.json), places[].wikidata, or diary.entries[].date (= date in normalization/json/tagebuch_tage.json). The whole route with coordinates is in data/route_places.json / data/route.geojson.

Method and caveats