mirror of
https://github.com/ilri/csv-metadata-quality.git
synced 2024-12-22 12:12:18 +01:00
A simple but opinionated metadata quality checker and fixer designed to work with CSVs in the DSpace ecosystem.
Alan Orth
a93b5b31c5
Currently only supports specifying input and output files with -i and -o. Eventually I'll add more options like dry run, debug, and maybe things like forcing unsafe fixes. |
||
---|---|---|
csv_metadata_quality | ||
data | ||
tests | ||
.build.yml | ||
.flake8 | ||
LICENSE.txt | ||
Pipfile | ||
Pipfile.lock | ||
README.md | ||
requirements-dev.txt | ||
requirements.txt |
CSV Metadata Quality
A simple but opinionated metadata quality checker and fixer designed to work with CSVs in the DSpace ecosystem. Supports multi-value fields using the standard DSpace value separator ("||"). Despite the name it does support reading Excel files.
Written and tested using Python 3.7.
Checks
Supports checking the validity of the following metadata elements:
- ISSN
- ISBN
- Multi-value separators
- Dates
Fixes
Supports fixing the following metadata issues:
- Leading, trailing, and excessive whitespace
Todo
- Reporting / summary
- Real logging
- Fix invalid multi-value separators? Check if there are any valid cases of "|" in the database
License
This work is licensed under the GPLv3.
The license allows you to use and modify the work for personal and commercial purposes, but if you distribute the work you must provide users with a means to access the source code for the version you are distributing. Read more about the GPLv3 at TL;DR Legal.