Extension Federagobes


Extension Basics

Title
Federagobes
Name
ckanext-federagobes
Type
Public extension
Description
The `ckanext-federagobes` extension enables CKAN instances to publish their dataset catalogs in RDF format, specifically designed for federation with datos.gob.es (the Spanish national open data po...
CKAN versions
Download-Url (zip)
Last commit
8 years ago (2017-10-10 11:05:04)
Url to repo
Category
Standards Compliance


Background Infos

Description (long)
Show details

ckanext-federagobes - CKAN extension to federate data on datos.gob.es

ckanext-federagobes generates an RDF version of the dataset catalogue that can be used to federate its datasets on datos.gob.es.

This extension was developed for the Open Data BCN project, which heavily relies on custom dataset fields and multilanguage support provided by ckanext-scheming and ckanext-fluent, but the templating system allows the XML template to be adapted to any organization’s dataset schema and disable the multilanguage support by modifying the federador.xml file.

The resulting RDF file can be accessed from the URL /federador.xml of your CKAN installation.

Requirements

This extension requires CKAN version 2.7. It hasn’t been tested on previous or later versions.

Installation

To install ckanext-federagobes: 1. Activate your CKAN virtual environment, for example: . /usr/lib/ckan/default/bin/activate cd /usr/lib/ckan/default/src

  1. Install the ckanext-federagobes Python package into your virtual environment: pip install -e "git+https://github.com/AjuntamentdeBarcelona/ckanext-federagobes.git#egg=ckanext-federagobes"

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

  3. Restart CKAN. For example if you’ve deployed CKAN with Apache on Ubuntu: sudo service apache2 reload

Configuration

The following configuration settings are required in order to generate a valid RDF file. These should be included on your CKAN config file (usually found at /etc/ckan/default/production.ini).

ckanext.federagobes.publisher

URI that identifies the publisher organization. This is provided by datos.gob.es.

ckanext.federagobes.create_date

Dataset catalogue creation date in ISO‑8601 format.

ckanext.federagobes.theme_taxonomy

Version
Version release date
(not set)
Contact name
Ajuntament de Barcelona
Contakt email
Contact Url
(not set)


Installation Guide

Configuration hints

To install ckanext-federagobes: 1. Activate your CKAN virtual environment, for example: . /usr/lib/ckan/default/bin/activate cd /usr/lib/ckan/default/src

  1. Install the ckanext-federagobes Python package into your virtual environment: pip install -e "git+https://github.com/AjuntamentdeBarcelona/ckanext-federagobes.git#egg=ckanext-federagobes"

  2. Add federagobes to the ckan.plugins setting in your CKAN config file (by default the config file is located at `/etc/ckan/default/p

Plugins to configure (ckan.ini)
federagobes
CKAN Settings (ckan.ini)
# ckanext.federagobes.publisher = http://datos.gob.es/recurso/sector-publico/org/Organismo/L01080193
# ckanext.federagobes.create_date = 2017-02-23T08:00:00
# ckanext.federagobes.theme_taxonomy = http://datos.gob.es/kos/sector-publico/sector/
# ckanext.federagobes.license_url = http://opendata-ajuntament.barcelona.cat/condicions-us
# ckanext.federagobes.catalog_title.ca = Open Data BCN
# ckanext.federagobes.catalog_title.es = Open Data BCN
# ckanext.federagobes.catalog_title.en = Open Data BCN
# ckanext.federagobes.catalog_desc.ca = Servei de dades obertes de l'Ajuntament de Barcelona
# ckanext.federagobes.catalog_desc.es = Servicio de datos abiertos del Ayuntamiento de Barcelona
# ckanext.federagobes.catalog_desc.en = Barcelona's City Hall Open Data Service
DB migration to be executed
(not set)
<< back to Extensions