mirror of
https://github.com/ogdch/ckanext-transharvest.git
synced 2026-08-25 21:54:17 +00:00
Harvester for term_translations | Read-only mirror of https://github.com/ogdch/ckanext-transharvest — Bundesamt für Statistik. Issues & pull requests at the source.
- Python 62.9%
- Shell 37.1%
| Filename | Latest commit message | Latest commit date |
|---|---|---|
| ckanext | ||
| scripts | ||
| .gitignore | ||
| .travis.yml | ||
| build.sh | ||
| LICENSE | ||
| pip-requirements.txt | ||
| pre-commit.sh | ||
| README.md | ||
| setup.cfg | ||
| setup.py | ||
ckanext-transharvest
This harvester has the purpose to transfer term translations from one CKAN instante to another.
Installation
Use pip to install this plugin. This example installs it in /home/www-data
source /home/www-data/pyenv/bin/activate
pip install -e git+https://github.com/ogdch/ckanext-transharvest.git#egg=ckanext-transharvest --src /home/www-data
cd /home/www-data/ckanext-transharvest
python setup.py develop
Make sure to add transharvest to ckan.plugins in your config file.
For development
- install the
pre-commit.shscript as a pre-commit hook in your local repositories: **ln -s ../../pre-commit.sh .git/hooks/pre-commit
Configuration
This harvester requires ckan_term_url in the configuration JSON. This is the base URL of a CKAN instance, that should be harvested for term translations. Please make sure, that this remote CKAN instance needs the ckanext-ogdch_actions, as this extensions provides the requires API for this harvester.
{
"ckan_term_url": "http://datahub.io"
}
Run harvester
source /home/www-data/pyenv/bin/activate
paster --plugin=ckanext-transharvest transharvest gather_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest fetch_consumer -c development.ini &
paster --plugin=ckanext-transharvest transharvest run -c development.ini