Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 2.13 KB

A.14.IR221.TGR14.linksToDatasetMetadata.md

File metadata and controls

37 lines (24 loc) · 2.13 KB

Download Service feed contains links to dataset metadata records

Purpose:

For each entry, the Download Service feed must provide a link to a Dataset metadata record. This link shall have a "rel" attribute with a value of "describedby" and a "type" attribute with a value "application/xml". The link must point to a Dataset metadata record, to which the Service metadata record refers (contains a link to). There must be exactly one link for each entry.

Test method

For each entry:

Reference(s):

  • TG DL, Req 14
  • IR NS, section 2.2.1, Discovery Service Metadata parameters

Test type: Automated

Notes

Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression
describedby link /atom:feed/atom:link[@rel='describedby' and (@type='application/xml' or @type='application/vnd.ogc.csw.GetRecordByIdResponse_xml')]/@href
entry //atom:entry
link to a Dataset metadata record //atom:entry/atom:link[@rel='describedby' and @type='application/xml']/@href
dataset identifier gmd:identificationInfo[1]/*/gmd:citation/*/gmd:identifier