The dai_thesauri_harvester
plugin for CKAN enables the harvesting of tags from [idai.thesauri.de](http://thesauri.dainst.org)
and their addition to a CKAN instance database table. It facilitates the enrichment of dataset metadata by allowing the use of standardized tags from the Digital Archaeological Institute (DAI) Thesaurus. Furthermore, the plugin publishes an API endpoint that is utilized in the package form, enhancing data entry and search capabilities.
- Harvest tags from
[idai.thesauri.de](http://thesauri.dainst.org)
. - Populate a CKAN database table with harvested tags.
- Provide an API endpoint for use in dataset forms.
- CLI commands for managing the thesaurus data.
To populate the thesaurus table with data from idai.thesauri.de visit
ckan -c /etc/ckan/default/production.ini dai_thesauri_harvester
This plugin adds an API endpoint that can be used on the package form for suggesting tags from the DAI Thesaurus. Documentation for the API endpoint usage can be found at http:///api/3/action/help_show?name=dai_thesauri_harvester_show.
TODO: Add any additional install steps to the list below. For example installing any non-Python dependencies or adding any required config settings.
To install ckanext-thesauri_harvester:
-
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
-
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-thesauri_harvester.git cd ckanext-thesauri_harvester pip install -e . pip install -r requirements.txt
-
Add
thesauri_harvester
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
). -
Restart CKAN. For example if you've deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
To install ckanext-thesauri_harvester for development, activate your CKAN virtualenv and do:
git clone https://github.com//ckanext-thesauri_harvester.git
cd ckanext-thesauri_harvester
python setup.py develop
pip install -r dev-requirements.txt