Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 3.04 KB

A.39.IR3.IR4.TGR44.openSearchQueryExample.md

File metadata and controls

42 lines (28 loc) · 3.04 KB

OpenSearch Description provides Query examples for each dataset

Purpose:

For each dataset available the OpenSearch description must contain a "Query" element" element that has a "role" attribute with the value "example" and "spatial_dataset_identifier_code" and "spatial_dataset_identifier_namespace" attributes together containing unique spatial dataset identifier. The value of the "crs" and "language" attributes must be set to the values considered as the default ones by the service provider.

Test method

For each "Query" element:

Reference(s):

Test type:

Automated

Notes

[1] Are the "crs" and "language" attributes mandatory? This is not clear from the requirement, but would make sense and is assumed to be so.

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
Query element /os:OpenSearchDescription/os:Query[@role='example' and string-length(@inspire_dls:spatial_dataset_identifier_code) > 0 and string-length(@inspire_dls:spatial_dataset_identifier_namespace) > 0 ]
Describe Spatial Dataset url /os:OpenSearchDescription/os:Url[@rel='describedby' and @type='application/atom+xml' and starts-with(@template,'http') and contains(@template,'spatial_dataset_identifier_code') and contains(@template,'spatial_dataset_identifier_namespace') and contains(@template,'language')]
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')]
category CRS //atom:entry/atom:category[string-length(@term) > 0]