clarity-h2020 / data-management-plan

CLARITY Data Management Plan
https://zenodo.org/communities/clarity/
0 stars 1 forks source link

Create ckanapi export statements #4

Closed p-a-s-c-a-l closed 4 years ago

p-a-s-c-a-l commented 4 years ago

Create ckanapi export scripts for organisation and/or groups.

p-a-s-c-a-l commented 4 years ago

CKANAPI --all and -m parameters not working:

ckanapi action group_package_show id=non-open-data-produced-by-clarity -r https://ckan.myclimateservice.eu/ --all > non-open-data-produced-by-clarity.json

Usage: ckanapi action ACTION_NAME [(KEY=STRING | KEY:JSON | KEY@FILE ) ... | -i | -I JSON_INPUT] [-j | -J] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY] [-g]] ckanapi load datasets [--upload-resources] [-I JSONL_INPUT] [-s START] [-m MAX] [-p PROCESSES] [-l LOG_FILE] [-n | -o] [-qwz] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY]] ckanapi load (groups | organizations) [--upload-logo] [-I JSONL_INPUT] [-s START] [-m MAX] [-p PROCESSES] [-l LOG_FILE] [-n | -o] [-qwz] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY]] ckanapi load (users | related) [-I JSONL_INPUT] [-s START] [-m MAX] [-p PROCESSES] [-l LOG_FILE] [-n | -o] [-qwz] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY]] ckanapi dump (datasets | groups | organizations | users | related) (ID_OR_NAME ... | --all) ([-O JSONL_OUTPUT] | [-D DIRECTORY]) [-p PROCESSES] [-dqwz] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY] [-g]] ckanapi delete (datasets | groups | organizations | users | related) (ID_OR_NAME ... | [-I JSONL_INPUT] [-s START] [-m MAX]) [-p PROCESSES] [-l LOG_FILE] [-qwz] [[-c CONFIG] [-u USER] | -r SITE_URL [-a APIKEY]] ckanapi (-h | --help) ckanapi --version

p-a-s-c-a-l commented 4 years ago

use limit and rows

p-a-s-c-a-l commented 4 years ago

done