ckanext-validation-schema-generator
This extension helps to generate table schema for a resource based on its content. Support tabular data.
You must define a field for datasets and resources to store a table schema data. Check config options below.
Requirements
This extension has been written to work with python 2 and CKAN 2.9.5. Relies on datastore.
Compatibility with core CKAN versions:
| CKAN version |
Compatible? |
| 2.6 and earlier |
not tested |
| 2.7 |
not tested |
| 2.8 |
not tested |
| 2.9.5+ |
yes |
Suggested values:
- “yes”
- “not tested” - I can’t think of a reason why it wouldn’t work
- “not yet” - there is an intention to get it working
- “no”
Installation
TODO: Add any additional install steps to the list below.
For example installing any non-Python dependencies or adding any required
config settings.
To install ckanext-validation-schema-generator:
Activate your CKAN virtual environment, for example:
. /usr/lib/ckan/default/bin/activate
Clone the source and install it on the virtualenv
git clone https://github.com//ckanext-validation-schema-generator.git
cd ckanext-validation-schema-generator
pip install -e .
pip install -r requirements.txt
Add validation-schema-generator to the ckan.plugins setting in your CKAN
config file (by default the config file is located at
/etc/ckan/default/ckan.ini).
Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu:
sudo service apache2 reload
Config settings
# The maximum time for the schema generation before it is aborted.
# Give an amount in seconds. Default is 60 minutes
# (optional, default: 3600).
ckanext.validation_schema_generator.job_timeout = 3600
# If the resource is remote or private, we could pass an API key inside headers
# This option defines should we pass API key or not
# (