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

Missing groups in categories.json result in internal server error when opening /catalog.rdf of website #1

Closed rickelt closed 1 year ago

rickelt commented 2 years ago

When the list of groups/categories in categories.json does not include every group on the actual website, it results in an internal server error, when trying to open the catalog.rdf of the website. e.g: I have a group called bevoelkerung, but it is missing or misspelled in the json file, I get the Error and the Error Logs mention a KeyError: u'bevoelkerung' Is there a way to circumvent this? It is not great, whenever we have to change the groups on the frontend, to also have to change the json file.

gdmhrogut commented 1 year ago

There has to be a mapping from CKAN groups/categories to EU data themes somewhere and the categories.json mapping file is thus the place for that.

Generally speaking, this piece of software is a custom implementation of DCAT-AP.de for OpenData.HRO, the open data portal of the municipality of Rostock. Consequently, all the mappings in ckanext/hro_dcatapde/mappings are somewhat tailored to the needs of Rostock – most obviously in ckanext/hro_dcatapde/mappings/geocodings.json. There is no way round adopting those mapping files to your own needs.