rostock / ckanext-hro_dcatapde

A custom implementation of DCAT-AP.de for OpenData.HRO, the open data portal of the municipality of Rostock
https://opendata-hro.de
GNU Affero General Public License v3.0
3 stars 1 forks source link

Extension for CKAN: HRO-DCAT-AP.de

A custom implementation of DCAT-AP.de for OpenData.HRO, the open data portal of the municipality of Rostock – view it in production: https://www.opendata-hro.de/

HRO-DCAT-AP.de defines a DCAT-AP profile that needs to be layered right on top of euro_dcat_ap, as defined in ckanext-dcat. It builds on both ckanext-dcatde and ckanext-dcatde_berlin and works like the latter, i.e. no database conversion necessary and the CKAN core remains untouched.

Many thanks to the contributors to both ckanext-dcatde and ckanext-dcatde_berlin where much of the code is derived from.

Requirements

Installation

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

    . /usr/lib/ckan/default/bin/activate
  2. Install HRO-DCAT-AP.de into your virtual Python environment:

    pip install -r https://github.com/rostock/ckanext-hro_dcatapde/raw/master/requirements.txt
    pip install -e 'git+https://github.com/rostock/ckanext-hro_dcatapde.git#egg=ckanext-hro_dcatapde'
  3. Add hro_dcatapde to the ckan.plugins setting in your CKAN config file (by default the config file is located at /etc/ckan/default/ckan.ini)

  4. Add the following lines to your CKAN config file:

    ckanext.dcat.enable_content_negotiation = True
    ckanext.dcat.rdf.profiles = euro_dcat_ap dcatap_de
    ckanext.hro_dcatapde.contributorid = [your contributor id]
  5. Restart CKAN. For example, if you have deployed CKAN with Apache HTTP Server on Ubuntu:

    sudo service apache2 reload

Upgrade

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

    . /usr/lib/ckan/default/bin/activate
  2. Upgrade HRO-DCAT-AP.de within your virtual Python environment:

    pip install --upgrade -r https://github.com/rostock/ckanext-hro_dcatapde/raw/master/requirements.txt
    pip install --upgrade -e 'git+https://github.com/rostock/ckanext-hro_dcatapde.git#egg=ckanext-hro_dcatapde'
  3. Restart CKAN. For example, if you have deployed CKAN with Apache HTTP Server on Ubuntu:

    sudo service apache2 reload