Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to advertise in opensearchdescription if a download is available in multiple formats #167

Open
pvgenuchten opened this issue Jun 4, 2018 · 1 comment

Comments

@pvgenuchten
Copy link

pvgenuchten commented Jun 4, 2018

While researching #165, i ran into the following challenge:

screen shot 2018-06-04 at 17 47 48

In some feeds in the netherlands data-publishers have decided to put the same dataset in multiple formats online, to facilitate ease-of-reuse. An example is here: http://services.rce.geovoorziening.nl/www/download/data/Rijksmonumenten_nl.xml
In that scenario would I have to add to URL element twice in the opensearch description, for each of the available formats? Having a unique url per format? That would cause problems if some of the datasets are exposed in less or more formats then other datasets in the same service.

<Url type="application/zip" rel="results" template="https://www.nationaalgeoregister.nl/geonetwork/opensearch/dut/download?format=application/zip&spatial_dataset_identifier_code={inspire_dls:spatial_dataset_identifier_code?}&spatial_dataset_identifier_namespace={inspire_dls:spatial_dataset_identifier_namespace?}&crs={inspire_dls:crs?}&language={language?}&q={searchTerms?}"/>
<Url type="application/gml+xml" rel="results" template="https://www.nationaalgeoregister.nl/geonetwork/opensearch/dut/download?format=application/gml+xml&spatial_dataset_identifier_code={inspire_dls:spatial_dataset_identifier_code?}&spatial_dataset_identifier_namespace={inspire_dls:spatial_dataset_identifier_namespace?}&crs={inspire_dls:crs?}&language={language?}&q={searchTerms?}"/>

testreport:
http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp/v2/TestRuns/EID6af4d855-4d6c-4532-9506-b86e207ac25c.html

@jonherrmann jonherrmann self-assigned this Jun 21, 2018
@jonherrmann
Copy link
Collaborator

jonherrmann commented Jun 22, 2018

Based on this template:
<Url type="application/zip" rel="results" template="https://www.nationaalgeoregister.nl:/geonetwork/opensearch/dut/download?spatial_dataset_identifier_code={inspire_dls:spatial_dataset_identifier_code?}&amp;spatial_dataset_identifier_namespace={inspire_dls:spatial_dataset_identifier_namespace?}&amp;crs={inspire_dls:crs?}&amp;language={language?}&amp;q={searchTerms?}"/>

The INSPIRE validators sends this request:
https://www.nationaalgeoregister.nl/geonetwork/opensearch/dut/download?spatial_dataset_identifier_namespace=http://www.cultureelerfgoed.nl&spatial_dataset_identifier_code=dd7d8650-7651-11e0-a1f0-0800200c9a61&crs=http://www.opengis.net/def/crs/EPSG/0/28992&language=nl

with Accept header application/zip. The validator expects that the service response Content-Type equals the media-type from the GetSpatialDataset URL. But the service returns a XML document.

@jonherrmann jonherrmann removed their assignment Jun 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants