Tools serving to control and read vocabulary data in a standardized way.
Go to file
Joshua Ramon Enslin e1a9a99797
Use ++$i over $i++ outside of loops in Wikidata fetcher
This is a slightly more performant way of incrementing an integer.
2021-04-12 12:54:07 +02:00
src Use ++$i over $i++ outside of loops in Wikidata fetcher 2021-04-12 12:54:07 +02:00
tests Fix file path of MD_STD 2021-03-09 20:15:22 +01:00
LICENSE Add license 2021-02-06 13:52:19 +01:00
README.md Add README 2021-02-06 13:40:54 +01:00

Tools to automatically clean and enrich vocabulary entries at museum-digital

This repository contains a set of tools, that can be hooked into an existing application working with museum-digital's structures and libraries, to simplify the handling of vocabulary entries.

General applicability

While most scripts in this repository require a DB connection to a museum-digital vocabulary database, and are thus likely useful outside of museum-digital's own ecosystem. An exception are src/NodaTimeSplitter.php and src/NodaUncertaintyHelper.php.

NodaTimeSplitter

src/NodaTimeSplitter.php contains a list of rules to reformulate and parse entered time names into an array.

NodaUncertaintyHelper

src/NodaUncertaintyHelper.php contains lists of indicators for invalid or uncertain inputs and functions to use those lists to clean inputs . If, e.g., "Berlin?" has been entered as a place, this actually means that the entered place is "Berlin" and the entry is uncertain.