Extension Dgu Local


Extension Basics

Title
Dgu Local
Name
ckanext-dgu-local
Type
Public extension
Description
Support for harvesting from Local Authorities
CKAN versions
Download-Url (zip)
Last commit
7 years ago (2018-05-14 11:03:48)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-dgu-local

This extension provides support for harvesting from Local Authority data portal that exposes datasets according to the LGA Inventory spec: https://github.com/datagovuk/ckanext-dgu-local/blob/master/ckanext/dgulocal/data/inventory.xsd .

This currently has dependencies on UK specific data, but the extension should work if the inventory document doesn’t reference the UK specific publisher and temporal URLs.

Dependencies

The LGA Inventory harvester relies on this version of ckanext-harvest:

https://github.com/datagovuk/ckanext-harvest/tree/1508-update

Installation

For development you should install ckanext-dgu-local as follows.

  1. Install this extension as normal using pip in your activated environment:

    (pyenv) $ pip install -e "git+https://github.com/datagovuk/ckanext-dgu-local.git#egg=ckanext-dgu-local"

  2. Activate the plugins by adding them to the CKAN config and then restarting CKAN:

    ckan.plugins = ...other_plugins... dgu_local inventory_harvester

  3. Setup the database tables:

    paster --plugin=ckanext-dgu-local dgulocal init --config=ckan_default.ini

Plugins

dgu_local will provide any UI/search enhancements

inventory_harvester is used for harvesting from the LGA Inventory format.

Running tests

The tests for ckanext-dgu-local can be run from the ckanext-dgu-local folder using:

nosetests --ckan --with-pylons=test-core.ini ckanext/dgulocal/tests

And some tests do not use the database so can be run in sqlite:

nosetests --ckan --with-pylons=test.ini ckanext/dgulocal/tests/test_harvester.py

Metadata

This extension relies on PackageExtras being added to packages that are created, or updated. The Extras used the identifier field for a given publisher which is documented as being unique for that publisher (but no necessarily globally unique).

Package Extras

Key Value
lga_identifier The publisher-wide unique identifier for this dataset
lga_servic
Version
Version release date
(not set)
Contact name
data.gov.uk - Cabinet Office
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

For development you should install ckanext-dgu-local as follows.

  1. Install this extension as normal using pip in your activated environment:

    (pyenv) $ pip install -e "git+https://github.com/datagovuk/ckanext-dgu-local.git#egg=ckanext-dgu-local"

  2. Activate the plugins by adding them to the CKAN config and then restarting CKAN:

    ckan.plugins = ...other_plugins... dgu_local inventory_harvester

  3. Setup the database tables:

    “`paster –plugin=ckanext-dgu-local dgulocal

Plugins to configure (ckan.ini)
other_plugins
CKAN Settings (ckan.ini)
DB migration to be executed
(not set)
<< back to Extensions