Extension SPC Pacific Data Hub


Extension Basics

Title
SPC Pacific Data Hub
Name
ckanext-spc-pdh
Type
Public extension
Description
CKAN extension for the Pacific Data Hub, an open data portal for datasets from the Pacific region with multiple harvesters and custom schemas.
CKAN versions
Download-Url (zip)
Last commit
4 years ago (2021-06-22 12:13:32)
Url to repo
Category
Regional Government Themes


Background Infos

Description (long)
Show details

ckanext-spc

CKAN repo for the Pacific Data Hub, an open data portal for datasets from the Pacific.

Requirements

  • ckanext-scheming

Installation

To install ckanext-spc:

  1. Activate your CKAN virtual environment: . /usr/lib/ckan/default/bin/activate
  2. Install the ckanext-spc and its requirements: pip install ckanext-spc pip install -r dev-requirements.txt
  3. Add spc to the ckan.plugins setting in your CKAN config file.
  4. For the SpcNadaHarvester to work, install the nada_harvester branch of ckanext-ddi.
  5. Update SOLR schema: xml <field name="topic" type="string" indexed="true" stored="true" multiValued="true"/>
  6. Update DB schema: paster spc db-upgrade -c config.ini
  7. Restart CKAN.

Config Settings

scheming.dataset_schemas = ckanext.spc.schemas:dataset.json

Development Installation

git clone https://github.com/DataShades/ckanext-spc.git
cd ckanext-spc
python setup.py develop
pip install -r dev-requirements.txt
paster spc db-upgrade -c config.ini

Template macros

This extension provides a new template macro nested_field for rendering fields in nested schemas.

Interactive widgets

Development server with examples: npm run dev-widgets Build widgets: npm run build-widgets

General Information

Harvesters

  • OAI-PMH: spc_oaipmh_harvester (dataset type: publications)
  • DKAN: spc_dkan_harvester (dataset type: dataset)
  • GBIF: spc_gbif_harvester (dataset type: biodiversity_data)
  • PRDR Publications: spc_prdr_publications_harvester (dataset type: publications)
  • PRDR Data: spc_prdr_res_energy_harvester (dataset type: dataset)
  • SPREP: spc_sprep_harvester (dataset type: dataset)

Dataset types

  • Biodiversity data - EML schema
  • Dataset - DCAT schema
  • Geographic data - ANZLIC schema
  • Publications - Dublin Core schema

Running the Tests

pytest --ckan-ini test.ini ckanext/spc

License

AGPL-3.0

Version
0.1
Version release date
(not set)
Contact name
Pacific Community
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

Configuration hints

Requires ckanext-scheming. Update Solr schema and run DB upgrade via paster spc db-upgrade.

Plugins to configure (ckan.ini)
spc
CKAN Settings (ckan.ini)
# scheming.dataset_schemas = ckanext.spc.schemas:dataset.json
DB migration to be executed
(not set)
<< back to Extensions