ISAITB / shacl-validator

Web and command-line application for the validation of RDF data.
https://joinup.ec.europa.eu/collection/interoperability-test-bed-repository/solution/rdf-validator
European Union Public License 1.2
13 stars 1 forks source link

Guessing of Filetype Fails if URL Uses Parameters #4

Closed init-dcat-ap-de closed 2 years ago

init-dcat-ap-de commented 2 years ago

See https://github.com/GovDataOfficial/DCAT-AP.de-SHACL-Validation/issues/16:

The validator guesses the filetype using the file extension. This works when submitting URLs like

https://opendata-portal/catalog.rdf

But this does not work using urls with parameters:

https://opendata-portal/catalog.rdf?fq=name:dcat-ap-de-example-dataset

The error message displayed is Die RDF-Sprache konnte nicht für den bereitgestellten Inhalt bestimmt werden.

Is this a bug?

And the following discussion.

costas80 commented 2 years ago

Indeed it makes sense to be able to overlook query string parameters when determining the syntax type from a URL. Also this seems quite simple to support. We'll get started on this and roll it out asap.

costas80 commented 2 years ago

The fix for this is now live. For content loaded via provided URI, any query string extensions are ignored when guessing the resource's content type.