ALL YOUR DATASETS ARE BELONG TO US
A collection of everyday tasks on CKAN.
- Update datasets owner
- Clear datasets licenses
- Update resources format based on URI extensions
- Update datasets spatial coverage based on keywords
- Harvest a DCAT remote source
- Replace attribute values of datasets and resources
- Add datasets to group
- Add more spatial coordinates based on keywords
- Get publication stats from organizations
- Backup catalogs
Set CKAN host and token
% export CKAN_HOST='http://192.168.33.20:8080'
% export CKAN_API_TOKEN='9e21c4ed'
List all datasets
% python ckanops.py --datasets
Harvest a DCAT source
% python ckanops.py --harvest <URI>
Replace attributes
% python ckanops.py --replace resource format 'csv"' CSV
% python ckanops.py --replace dataset license_id notspecified cc-by
Add 2 datasets to a group (test)
% python ckanops.py -g test indicadores-sobre-el-gobierno fonden