inspire-eu-validation / ets-repository

Repository for Executable Test Suites of the INSPIRE validator (under development)
European Union Public License 1.2
13 stars 25 forks source link

md-iso.a.3: Access and use conditions: update to version 2.0.1 #132

Open juremekis opened 6 years ago

juremekis commented 6 years ago

The "Access and use conditions" test case has not yet been updated to the 2.0.1 specification. It is defined by the following requirement:

TG Requirement C.18: metadata/2.0/req/common/conditions-for-access-and-use

Conditions for access and use of the described resource shall be described using exactly one gmd:resourceConstraints/gmd:MD_LegalConstraints element. This element shall not be the same used for describing limitations on public access (see 2.4.6). The gmd:resourceConstraints/gmd:MD_LegalConstraints element for conditions for access and use shall be encoded as follows:

One instance of either gmd:accessConstraints or gmd:useConstraints element shall be given. In both cases this element shall contain a gmd:MD_RestrictionCode element with code list value "otherRestrictions".

Additionally at least one instance of gmd:otherConstraints shall be given describing the actual conditions.

If no conditions apply the gmd:otherConstraints shall include a gmx:Anchor element pointing to the value "noConditionsApply" in the code list ConditionsApplyingToAccessAndUse.

If the conditions are unknown gmd:otherConstraints shall include a gmx:Anchor element pointing to the value "conditionsUnknown" in the code list ConditionsApplyingToAccessAndUse.

In other cases gmd:otherConstraints shall include a Non-empty Free Text Element with a textual description of the conditions in the language of the metadata. This text shall include descriptions of terms and conditions, including where applicable, the corresponding fees or an URL pointing to an online resource where these terms and conditions are described.

Failed test, which I believe should not have failed, is available here: Test report: http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp/v2/TestRuns/EIDe42726ac-3686-4654-8ba6-e4581e573b2f.html Failed test: http://inspire-sandbox.jrc.ec.europa.eu/etf-webapp//v2/TestRuns/EIDe42726ac-3686-4654-8ba6-e4581e573b2f.html?lang=en#EID9bde43f0-fdda-46dc-bc44-2d081849655b Metadata can be obtained from here: http://prostor4.gov.si/imps/srv/slv/xml.metadata.get?uuid=3e0b727e-49d5-4c7f-835b-823c5392a307 .

cportele commented 6 years ago

See #133