ckanext-cprvalidation
Validates resources for the Danish national open data platform http://portal.opendata.dk
Note: This module is developed on CKAN v2.6, compatibility with other versions is not ensured.
Installation
Activate virtualenv:
source /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src
git clone git@github.com:NicolaiMogensen/ckanext-cprvalidation.git
cd ckanext-cprvalidation
Install Extension:
python setup.py develop
Enable plugin in configuration:
ckan.plugins = datastore ... cprvalidation
Add database settings to production.ini:
ckan.cprvalidation.postgres_password = "Postgres password here"
ckan.cprvalidation.cprvalidation_password = "Password for dedicated user"
ckan.cprvalidation.postgres_port = "5432"
ckan.cprvalidation.apikey = "A CKAN API key that can view private resources"
ckan.cprvalidation.email = "Email for reports"
Create user “cprvalidation” in PostgreSQL.
Usage
Init the database:
paster --plugin=ckanext-cprvalidation validation initdb --config=/etc/ckan/default/production.ini
Setup a CRON job to scan at regular intervals.