Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.9 KB

A.17.IR22.IR23.ds.temporal.md

File metadata and controls

36 lines (25 loc) · 1.9 KB

#A.17.IR22.IR23.ds.temporal

Purpose: INSPIRE provides 4 types of temporal reference, which are all conditional elements on their own. However, at least one of them must be provided.

Prerequisites

Test method

The four types of which one must be provided are Temporal extent, Date of publication, Date of last revision and Date of creation. This test performs the following checks:

  • Is a valid TimePeriod and does it contain gml:beginPosition and gml:endPosition or gml:begin/gml:timeInstant/gml:timePosition x 2 or gml:begin/gml:timeInstant/gml:timePosition and gml:endPosition or gml:beginPosition and gml:begin/gml:timeInstant/gml:timePosition
  • Is a valid date of publication given at dateType='publication'
  • Is a valid date of last revision given at dateType='revision'
  • Is a valid date of creation given at dateType='creation' The test will fail if and only if all of the above checks evaluate to false.

Reference(s)

Test type: Automated

Notes

##Contextual XPath references

The namespace prefixes used as described in README.md.

Abbreviation XPath expression (relative to gmd:MD_Metadata)
TimePeriod gmd:identificationInfo[1]//gmd:extent//gmd:temporalElement/*/gmd:extent/gml:TimePeriod
date gmd:identificationInfo[1]//gmd:citation//gmd:date
dateType gmd:identificationInfo[1]//gmd:citation//gmd:date/*/gmd:dateType