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.
-
Activate your CKAN virtual Python environment, for example:
. /usr/lib/ckan/default/bin/activate
-
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'
-
Add
hro_dcatapde
to theckan.plugins
setting in your CKAN config file (by default the config file is located at/etc/ckan/default/ckan.ini
) -
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]
-
Restart CKAN. For example, if you have deployed CKAN with Apache HTTP Server on Ubuntu:
sudo service apache2 reload
-
Activate your CKAN virtual Python environment, for example:
. /usr/lib/ckan/default/bin/activate
-
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'
-
Restart CKAN. For example, if you have deployed CKAN with Apache HTTP Server on Ubuntu:
sudo service apache2 reload