LCSH subject terms for InvenioRDM
Project description
invenio-subjects-lcsh
LCSH subject terms for InvenioRDM
Install this extension to get Library of Congress Subject Headings into your instance.
Installation
From your instance directory:
pipenv install invenio-subjects-lcsh
This will add it to your Pipfile.
Versions
This repository follows calendar versioning for year and month:
2021.06.18
is both a valid semantic version and an indicator of the year-month corresponding to the loaded terms.
18
here is a patch number (not a day).
So far the package is compatible with InvenioRDM 9.1+'s subjects "ABI". If there is a breaking change, a compatibility table will be provided to indicate which version is compatible with with InvenioRDM's "ABI".
Usage
There are 2 types of users for this package. Maintainers of the package and instance administrators.
Instance administrators
For instance administrators, after you have installed the extension as per the steps above, you will want to reload your instance's fixtures: pipenv run invenio rdm-records fixtures
. This will install the new terms in your instance.
Updating existing terms currently requires manual replacement.
Maintainers
This package should probably be updated on a yearly basis. Here we show how.
- Install this package locally with the
dev
extra:
pipenv run pip install -e .[dev]
- Use the installed
galter-subjects-utils
tool to get the new list:
pipenv run galter-subjects-utils lcsh --output-file invenio_subjects_lcsh/vocabularies/subjects_lcsh.jsonl
This will
-
Download the new list(s)
-
Read it filtering for topics
-
Convert terms to InvenioRDM subjects format
-
Write those to the specified file
-
Check the manifest (it should typically be all good)
pipenv run inv check-manifest
- When you are happy with the list, bump the version and release it.
Development
Install the project in editable mode with dev
dependencies in an isolated virtualenv ((venv)
denotes that going forward):
(venv) pip install -e .[dev]
# or if using pipenv
pipenv run pip install -e .[dev]
Run tests:
(venv) invoke test
# or shorter
(venv) inv test
# or if using pipenv
pipenv run inv test
Check manifest:
(venv) inv check-manifest
# or if using pipenv
pipenv run inv check-manifest
Clean out artefacts:
(venv) inv clean
# or if using pipenv
pipenv run inv clean
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
Hashes for invenio-subjects-lcsh-2023.11.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 49861fe5fb75a7bee26b70f90969bc998c1be9572ec7da54be0e512dd2feb3d3 |
|
MD5 | d3194b8da296e6a41753ac2b0e4ec13d |
|
BLAKE2b-256 | f5627609656354060f948f88a51e188dfeb8f2659ae4c537b3e5d3bee1fe4dbb |
Hashes for invenio_subjects_lcsh-2023.11.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5874e5f14ed2ea67ad2d6c3fc1421fd7d5a6ed45bc152445d58e5da604c8438a |
|
MD5 | 71c95ddd11c1310166d4c9603d96ab6b |
|
BLAKE2b-256 | f26bd340d5e8fb4e0e801256cbd98e51340a97a8786862e019341447a42c8b83 |