Skip to content

Latest commit

 

History

History
37 lines (23 loc) · 2.63 KB

A.38.IR3.TGR43.openSearchUrlGetSpatialDataset.md

File metadata and controls

37 lines (23 loc) · 2.63 KB

OpenSearch Description provides at least one URL for Get Spatial Dataset operation

Purpose:

The OpenSearch description must contain a "Url" element that describes a template URL for the Get Spatial Data Set operation. This template must accept the INSPIRE parameters "crs", "spatial_dataset_identifier_code", "spatial_dataset_identifier_namespace" and the OpenSearch "language" parameter. The "Url" element must have an attribute "type" with a value corresponding to the media type of the result and an attribute "rel" with the value "results".

Test method

Reference(s):

Test type:

Automated

Notes

[1] The values for the parameters "crs", "spatial_dataset_identifier_code", "spatial_dataset_identifier_namespace" and "language" can be obtained from the OpenSearch description

Comment to the TG: The Get Spatial Data Set operation implementation as OpenSearch query feels strange and unnecessary: The Dataset Feed + HTTP requests for the dataset content (requirements 26 - 34) already implement the Get Spatial Data Set operation. Also the semantics of Open Search queries is that they should return a list of search hits (entries), not the actual data contents.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
url element /os:OpenSearchDescription/os:Url
Get Spatial Dataset url /os:OpenSearchDescription/os:Url[@rel='results' and starts-with(@template,'http') and contains(@template,'crs') and contains(@template,'spatial_dataset_identifier_code') and contains(@template,'spatial_dataset_identifier_namespace') and contains(@template,'language')]
media-type /os:OpenSearchDescription/os:Url/@type