European Commission logo
INSPIRE Community Forum

Configuring pycsw (CKAN plugin) to pass INSPIRE Discovery Service validation.

Peter PARSLOW
By Peter PARSLOW

Hi,

is anyone else using pycsw (e.g. as a CKAN plugin) to run an INSPIRE Discovery Service.

The one I'm testing is at https://ckan.publishing.service.gov.uk/csw?REQUEST=GetCapabilities&SERVICE=CSW&VERSION=2.0.2

It fails validation (https://github.com/inspire-eu-validation/community/issues/211), and that might be because it only declares the "inspire_ds" XML namespace (http://inspire.ec.europa.eu/schemas/inspire_ds/1.0) by means of a local xsi:schemaLocation attribute on the inspire_ds:ExtendedCapabilities element.

I could argue that that is valid XML, but it may be easier to configure the pycsw GetCapabilities response document to declare the schemaLocations in the root element, as suggested by Iurie (https://github.com/inspire-eu-validation/community/issues/211#issuecomment-583489179)