invenio-subjects-cessda vocabularies
Project description
invenio-subjects-cessda
Overview
invenio-subjects-cessda
is a Python package designed to integrate the CESSDA Vocabulary with InvenioRDM
It enables indexing and retrieval of STI Repository materials using CESSDA subject terms.
Installation
Prerequisites
Active virtual environment of your InvenioRDM instance. From your instance active venv:
Steps
1- Install the package:
pip install invenio-subjects-cessda
2- Run the following commands in your InvenioRDM instance:
invenio rdm-records fixtures
invenio-cli run
Versioning
This project adheres to SemVer versioning:
Usage Guide
For Instance Administrators
After installation: 1- Refer to Invenio subjects documentation 2- Run the following commands:
pip install invenio-subjects-cessda
invenio rdm-records fixtures
invenio-cli run
Your instance is now ready to use the CESSDA vocabulary.
For Package Maintainers
Setting Up Development Environment After cloning the repository:
# Run make install to install dependencies.
make install
# Use make test to run tests.
make test
Debugging
Modify Makefile
to set the DEBUGGER environment variable to False for less detailed logging.
Updating CESSDA Versions
Last updated: 2024-02-01
Check the version date in this README. To fetch the latest CESSDA versions, run:
make run
Upload to pypi
make install-package-tools # this will install twine (install-package-tools-pipenv if you use pipenv)
make package # this will zip the package into dist dir
make package-check # verify if the package pass twine checks
twine upload -u <USERNAME> -p <PASSWORD> --repository-url https://test.pypi.org/legacy/ dist/* --verbose
# or:
twine upload --repository PROJECT_NAME
Debug Log Examples
The vocabularies versions That is been included are the following:
https://vocabularies.cessda.eu/v2/codes/CdcPublisherNames/6.0.0/en
https://vocabularies.cessda.eu/v2/codes/CessdaPersistentIdentifierTypes/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/CountryNamesAndCodes/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/TopicClassification/4.2.2/en
https://vocabularies.cessda.eu/v2/codes/AggregationMethod/1.1.2/en
https://vocabularies.cessda.eu/v2/codes/AnalysisUnit/2.1.3/en
https://vocabularies.cessda.eu/v2/codes/CharacterSet/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/CommonalityType/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/ContributorRole/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/DataSourceType/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/DataType/1.1.2/en
https://vocabularies.cessda.eu/v2/codes/DateType/1.1.2/en
https://vocabularies.cessda.eu/v2/codes/GeneralDataFormat/2.0.3/en
https://vocabularies.cessda.eu/v2/codes/LanguageProficiency/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/LifecycleEventType/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/ModeOfCollection/4.0.3/en
https://vocabularies.cessda.eu/v2/codes/NumericType/1.1.0/en
https://vocabularies.cessda.eu/v2/codes/ResponseUnit/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/SamplingProcedure/1.1.4/en
https://vocabularies.cessda.eu/v2/codes/SoftwarePackage/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/SummaryStatisticType/2.1.2/en
https://vocabularies.cessda.eu/v2/codes/TimeMethod/1.2.3/en
https://vocabularies.cessda.eu/v2/codes/TimeZone/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/TypeOfAddress/1.1.0/en
https://vocabularies.cessda.eu/v2/codes/TypeOfConceptGroup/1.0.2/en
https://vocabularies.cessda.eu/v2/codes/TypeOfFrequency/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/TypeOfInstrument/1.1.2/en
https://vocabularies.cessda.eu/v2/codes/TypeOfNote/1.1.0/en
https://vocabularies.cessda.eu/v2/codes/TypeOfTelephone/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/TypeOfTranslationMethod/1.0.0/en
https://vocabularies.cessda.eu/v2/codes/Variables-Relations/1.0.0/en
Changes
Version 1.1.0
- Update CESSDA vocabularies to 2024-02-01
- Introduce Auto fetch new versions for all vocabularies
- Refactor convert functionality and add sorting
- Introduce debugging option to 'make run' command
- Add error handling to data fetching
- Bump requirements.txt
- Bump update dependencies to their latest versions
Version 1.0.0
- Initial public release 2022.11.03
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
Hashes for invenio-subjects-cessda-1.1.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | b9b517040e04c242bb2662e90bb560933988de4b7e955e4b57b178f5d41b5eb5 |
|
MD5 | 2004f01e720f97eae2dc39f8d57cb7c2 |
|
BLAKE2b-256 | 75a76c2b133c088c149e541e416a1bbf650abc793b2559f2ab2f1d0c70780a7f |