Purpose: Test the technical restrictions of access and use of spatial data sets and services.
Prerequisites
Test method
-
Check that it exists exactly one Legal Constraints element with the following features:
-
Exactly one Access Constraints or one Use Constraints element.
- The gmd:MD_RestrictionCode child element of either Access Constraints or Use Constraints has attribute codeListValue with value "otherRestrictions".
-
At least one Other Constraints element with:
-
One Anchor element which xlink:href attribute is a URL starting with "http://inspire.ec.europa.eu/metadata-codelist/ConditionsApplyingToAccessAndUse/" and postfixed with one of values of code list ConditionsApplyingToAccessAndUse of the TG MD Annex D.2.
-
Or, a non-empty free text element.
-
-
-
If any of the checks fails, the test fails.
Reference(s)
- TG MD, 2.3.7 , Req c.18
Test type: Automated
Notes
The multiplicity of Legal Constraints is one to n. But only one shall exists for describing the 'conditions for access and use' with the features described above.
According to ISO/TS 19139:2007, it is also recommended that the Access Constraints or Use Constraints element has a non-empty free text value.
This element shall not be the same one as used for describing conditions applying to conditions-applying-to-access-and-use.
Correct description example:
<gmd:resourceConstraints>
<gmd:MD_LegalConstraints>
<gmd:useConstraints>
<gmd:MD_RestrictionCode codeList="http://standards.iso.org/iso/19139/resources/gmxCodelists.xml#MD_RestrictionCode" codeListValue="otherRestrictions"/>
</gmd:useConstraints>
<gmd:otherConstraints>
<gmx:Anchor xlink:href="http://inspire.ec.europa.eu/metadata-codelist/ ConditionsApplyingToAccessAndUse/noConditionsApply">
No conditions apply to access and use
</gmx:Anchor>
</gmd:otherConstraints>
</gmd:MD_LegalConstraints>
</gmd:resourceConstraints>
The namespace prefixes used as described in README.md.