#A.12.IR12.srv.type
Purpose: If the type of the resource was service, exactly one name describing the type of service must be given.
Prerequisites
- A.01.validate must be passed
Test method
If the type of the resource is service, exactly one name describing the type of service must be given. The test first checks if a service type element is given at serviceType and if it is unique throughout the document. The test then checks if the element serviceType contains text that equals one of the types given in http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType (TG MD Chap. 1.3.1.)
If the type of the resource was not service, this test is omitted.
Reference(s)
- TG MD, 1.3.1 & 2.3.2, Req 12
- IR MD Part B. 2.2
- http://inspire.ec.europa.eu/metadata-codelist/SpatialDataServiceType
Test type: Automated
Notes
##Contextual XPath references
The namespace prefixes used as described in README.md.
Abbreviation | XPath expression (relative to gmd:MD_Metadata) |
---|---|
serviceType | ./gmd:identificationInfo[1]/*/srv:serviceType |