A collection of lookup scripts to map legacy metadata formats to standardized facets for SLUB/finc search systems.
Project description
slub_finclookup
Ein modernes Python-Paket zur Transformation von Bibliotheksmetadaten und Klassifikationen für das finc-Projekt der SLUB Dresden.
Warum dieses Paket?
In der bibliothekarischen Datenverarbeitung müssen häufig verschiedene Klassifikationssysteme (wie DDC, LCC, RVK oder lokale Fachgebiete) in ein einheitliches Format für Suchindizes (wie Solr) überführt werden.
slub_finclookup bündelt diese historisch gewachsenen Mapping-Logiken in einem stabilen, performanten und gut dokumentierten Paket. Es bietet:
- Präzision: Exakte Abbildungen von Schlagworten und Notationen auf finc-Kategorien.
- Performance: Optimierte Datenstrukturen für schnelle Lookups auch bei sehr großen Tabellen (z.B. Fotothek).
- Modernität: Volle Kompatibilität mit Python 3.12 und einfache Integration in moderne Pipelines.
Installation
pip install slub_finclookup
(Oder über uv):
uv add slub_finclookup
Nutzung
Jedes Modul enthält eine lookup-Funktion, die einen Eingabewert auf das entsprechende finc-Facet abbildet.
Beispiel: DBIS Fachgebiete
from slub_finclookup.DBIS_Fachgebiete_2_finc_class_facet import lookup
result = lookup('Allgemein / Fachübergreifend')
print(result) # Ausgabe: 'Allgemeines'
Beispiel: Sprachentransformation
from slub_finclookup.language2code_2_languageName import lookup
name = lookup('de')
print(name) # Ausgabe: 'German'
Enthaltene Mappings
Das Paket beinhaltet Transformationen für:
- DBIS: Fachgebiete zu finc Facets und Keywords.
- Klassifikationen: DDC, LCC, RVK, KNM, ICS.
- Sprachen: ISO 639-1 und 639-2 zu Klarnamen.
- Fotothek: Spezielle Schlagwort-Mappings für Bilddaten.
Entwicklung und Beiträge
Projektplanung und technische Details finden Sie in den Dateien plan.md und docs/technical.md.
Dieses Projekt wird mit uv verwaltet. Um lokal zu entwickeln:
git clone https://git.slub-dresden.de/metadata/processing/slub_finclookup.git
cd slub_finclookup
uv sync
Lizenz
Dieses Paket ist unter der MIT-Lizenz veröffentlicht.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file slub_finclookup-1.0.0.tar.gz.
File metadata
- Download URL: slub_finclookup-1.0.0.tar.gz
- Upload date:
- Size: 57.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08e0c84eca31e02f88b4b998475339e53580f5116d8485f2dd38f63bb2aa4cab
|
|
| MD5 |
b4dea669b07282032a1ff599e39155e4
|
|
| BLAKE2b-256 |
9b108105c22f873e91887cd24f5127a41efb0ea2e87931f844f8369d828b6e70
|
File details
Details for the file slub_finclookup-1.0.0-py3-none-any.whl.
File metadata
- Download URL: slub_finclookup-1.0.0-py3-none-any.whl
- Upload date:
- Size: 40.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.9.25 {"installer":{"name":"uv","version":"0.9.25","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"KDE neon","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
762f97ee5fa5bf6ec43f85de5dd7cf1ae6d31d6a4df67faebf8edfb264c38daf
|
|
| MD5 |
d388a57f4942483f478112e2a920f2c9
|
|
| BLAKE2b-256 |
b2505fb47c946cd1522a8973d64cabf9d1d43ccf7cc34e4eeb20819ec10941c3
|