Extension Resourceversions


Extension Basics

Title
Resourceversions
Name
ckanext-resourceversions
Type
Public extension
Description
The `resourceversions` extension for CKAN introduces dataset versioning capabilities. It achieves t
CKAN versions
Download-Url (zip)
Last commit
7 years ago (2018-06-14 07:24:02)
Url to repo
Category
Standards Compliance


Background Infos

Description (long)
Show details

=============

ckanext-resourceversions

This extension allows you to create versions of datasets. Each version becomes a new dataset. Therefore, when uploading a new file or changing the link of a resource a new dataset with a new resource is being created. However, when changing any other information no new version is being created.

Versions

This extension must be used together with ckanext-thredds. Therefore, you can create versions of subsets and show relations between the original dataset versions and the subset versions.

Versions

API function:

package_search(context, data_dict)

Extends CKAN’s package_search.

Additional Parameters: * include_versions (bool) - includes all matching versions of a dataset if True, otherwise only the newest versions (optional, default: False)


Requirements

This extension must be used together with ckanext-thredds. Moreover, each resource needs a field “newer_version” and “subset_of”.


Installation

To install ckanext-resourceversions:

  1. Activate your CKAN virtual environment, for example::

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

  2. Install the ckanext-resourceversions Python package into your virtual environment::

    pip install ckanext-resourceversions

  3. Add resourceversions to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/production.ini).

  4. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu::

    sudo service apache2 reload


Config Settings

Document any optional config settings here. For example::

# The minimum number of hours to wait before re-checking a resource
# (optional, default: 24).
ckanext.resourceversions.some_setting = some_default_value

Development Installation

Version
1.0
Version release date
2017-12-12
Contact name
(not set)
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints
Plugins to configure (ckan.ini)
resourceversions
CKAN Settings (ckan.ini)
# ckanext.resourceversions.some_setting = some_default_value
DB migration to be executed
(not set)
<< back to Extensions