Skip to main content

A collection of lookup scripts to map legacy metadata formats to standardized facets for SLUB/finc search systems.

Project description

slub_finclookup

Python 3.12 License: MIT

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slub_finclookup-1.0.0.tar.gz (57.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

slub_finclookup-1.0.0-py3-none-any.whl (40.1 kB view details)

Uploaded Python 3

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

Hashes for slub_finclookup-1.0.0.tar.gz
Algorithm Hash digest
SHA256 08e0c84eca31e02f88b4b998475339e53580f5116d8485f2dd38f63bb2aa4cab
MD5 b4dea669b07282032a1ff599e39155e4
BLAKE2b-256 9b108105c22f873e91887cd24f5127a41efb0ea2e87931f844f8369d828b6e70

See more details on using hashes here.

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

Hashes for slub_finclookup-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 762f97ee5fa5bf6ec43f85de5dd7cf1ae6d31d6a4df67faebf8edfb264c38daf
MD5 d388a57f4942483f478112e2a920f2c9
BLAKE2b-256 b2505fb47c946cd1522a8973d64cabf9d1d43ccf7cc34e4eeb20819ec10941c3

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page