Extension Metaconf


Extension Basics

Title
Metaconf
Name
ckanext-metaconf
Type
Public extension
Description
Eextension for CKAN to configure metadata for datasets and resources
CKAN versions
Download-Url (zip)
Last commit
10 years ago (2015-02-03 01:41:05)
Url to repo
Category
Data Management & Quality


Background Infos

Description (long)
Show details

ckanext-metaconf

Introduction

This is an extension for the CKAN data portal platform. It adds the possibility to configure the metadata schema for datasets and resources. You can specify your metadata vocabulary by defining elements that are shown in the CKAN dataset creation workflow. This specification is done by the maintainer of the portal not the user.

There are many things that can be done when using CKAN Datasets:

  • [x] create it
  • [x] show it
  • [x] update it
  • [x] export metadata as rdf

These are modified by this plugin to reflect your changes to the metadata schema.

How can I specify my metadata-schema?

Before messing around with this plugin, take a look at how to work with [CKAN Plugins!] (http://docs.ckan.org/en/latest/extensions/tutorial.html#installing-the-extension)

Now that you know how to install a extension, you can configure the metadata schema to fit your needs. In the ckanext/metaconf/ directory theres a settings.py’ file. It is the only file you have to edit to fully specify your schema. As a example there is the OpenGovernmentData-Metadata format implemented so you can see what’s possible and how to implement it.

Every element (shown in the creation workflow) is thereby specified as a python McBlock object. Choose a random name (here it’s ‘fuenf’) for your object and write something like the following:

“` ogd_groups = McBlock() ogd_groups.type = ‘select’ ogd_groups.key = ‘ogd_groups’ ogd_groups.rdf_type = ‘rdf:todo’ ogd_groups.label = ‘Kategorien’ ogd_groups.mandatory = True ogd_groups.opt_value[‘preselected’] = “empty” ogd_groups.opt_value[‘entries’] = [ {‘value’: ”, ‘text’: ‘Wählen Sie eine Lizenz…’}, {‘value’: ‘dl-de-by-1.0’, ‘text’: ‘

Version
Version release date
(not set)
Contact name
of the portal
Contakt email
(not set)
Contact Url
(not set)


Installation Guide

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