
Kulturpool Hackathon 2026 – tools for analysing and normalising metadata in Kulturpool records.
Team: 2townBefore, CarlaMariS, ikyriazi, MelissaSheena
| Part | Folder | What it is |
|---|---|---|
| CONTEXT_PROMPTING.md | — | This prompt was added to Claude. Using reusable context prompts saves tokens and can increase consistency and transparency |
| README.md | — | This file explains the project for documentation and future use |
| Normalisation interface | interface/ |
Dockerised Flask web app (German UI) that matches messy metadata values to a controlled vocabulary and lets a person approve each change |
| Data analysis | dataanalysis_notebooks/ |
Notebooks and scripts exploring the full Kulturpool export (dcType, medium, subject) |
Cultural-heritage records contain many spellings of the same thing (Foto, Fotos, Photographie → Fotografie). The interface finds these variants and lets you decide, term by term, which ones to replace. Nothing is changed without your selection.
The interface is in German. It works on one metadata field at a time: dcType (object type), medium (material/technique) or subject (topic).
Requirements: Docker with Compose.
cd interface
docker compose up --build
Open http://localhost:5000.
Choose the field to normalise (default dcType):
$env:NORM_FIELD = "medium" # or "subject"
docker compose up --build
Notes:
torch and transformers for the CLIP matcher, so the first build is large. The CLIP model is downloaded on the first analysis.interface/data/vocabularies/ and interface/output/ are mounted as volumes: edit vocabularies without rebuilding, and find exports in output/.Python 3.10+:
cd interface
py -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt
$env:NORM_FIELD = "dcType"
python app.py
Notes: The interface may look plain, because the visual elements/the CSS files/ are in docker. You may have to add an extra filepath.
CSV files in interface/data/vocabularies/, one preferred term per row, optional URI in the second column:
term,uri
Fotografie,
Druckgraphik,https://example.org/concept/123
| Field | File |
|---|---|
dcType |
dctype.csv (German) or dctype_en.csv (English, chosen automatically if the data contains many “book” and few “Buch”) |
medium |
medium.csv (comma-separated values are matched individually) |
subject |
subject.csv |
content.aggregatedCHO.<field>.src_id, …), never kp_id.More detail for developers: interface/README.md and CONTEXT_PROMPTING.md.
If you need some help or want to make some improvements using and AI assistant, there is a CONTEXT_PROMPTING.md file already available. Load this into your chat and your assistant should be good to go without having to use many tokens and reading all files using up many resources.
Everything lives in dataanalysis_notebooks/:
| File | Content |
|---|---|
carla.ipynb |
Downloads the full Kulturpool export and computes how many records have dcType, medium, subject – overall and per institution. Writes the two JSON files below. |
institution_stats.json |
Output: per-institution counts and percentages of dcType / medium / subject |
neither_ids.json |
Output: kp_ids of records with neither dcType nor medium |
melissa.ipynb |
Uses the Kulturpool search API to explore the data |
make_dataset.ipynb |
Turns one institution’s JSONL into a DataFrame, counts dcType / medium values, and tests clustering (SentenceTransformers) and CLIP matching against an external vocabulary (EKT item types) |
ilias.py |
Script to download the full export (records_export_full.tar.gz) and read records straight from the archive |
Headline numbers from the full export (2,636,673 records):
| Field | Records | Share |
|---|---|---|
dcType |
2,444,252 | 92.70 % |
medium |
809,780 | 30.71 % |
subject |
1,360,391 | 51.59 % |
neither dcType nor medium |
105,506 | 4.00 % |
Dataset: https://s3.kpool.at/nightly/records_export_full.tar.gz (several hundred MB; not stored in the repo).