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.
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