[ckan-dev] How to install ckanext-scheming

Timothy Giles timothy.giles at slu.se
Wed Sep 21 13:38:49 UTC 2016


Pierre,

. /usr/lib/ckan/default/bin/activate
cd /usr/lib/ckan/default/src

pip install -e ”git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming”

cd ./ckanext-scheming

pip install -r /usr/lib/ckan/default/src/ckanext-scheming/requirements.txt


·         Any issues, sudo the previous command *

As the rest of the instructions say, insert scheming_datasets in to your plugins line

Add in the scheming.presets section in to your config, just under the plugins section

Add in a scheming.dataset_fallback = false

Add in a scheming.dataset_schemas = ckanext.scheming:schemaname.json


Where schemaname.json is the JSON file that describes your schema (ie. list of metadata elements). As an example, I think there is camel.json and ckan_dataset.json

Create a similar template file called dataset.json and it will load as the default ‘new dataset’ schema/template.

Sorry – the json files are stored in ./ckanext-scheming/ckanext/scheming/…….


Hope the above helps

Tim


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/ckan-dev/attachments/20160921/e8e17de5/attachment-0003.html>


More information about the ckan-dev mailing list