ckan / ckanext-dcat

CKAN ♥ DCAT
https://docs.ckan.org/projects/ckanext-dcat
165 stars 145 forks source link

Encode URIRef and remove white-spaces #138

Closed seitenbau-govdata closed 6 years ago

seitenbau-govdata commented 6 years ago

The pull request adds an careful URIRef quoting for URIs with http(s) and white-space removal for URIs without http(s), e.g. mailto.

It mainly solves an internal server error when serializing the graph. If there are some datasets in the database with URIs containing white-spaces, it is not possible to serialize the graph which returns into an internal server error. Furthermore it solves the problem with incorrect encoded URIs which can result in a problem in a remote system when it is importing the graph.

https://github.com/GovDataOfficial/ckanext-dcatde/issues/6