Skip to content

Latest commit

 

History

History
63 lines (41 loc) · 6.96 KB

constraints.md

File metadata and controls

63 lines (41 loc) · 6.96 KB

Constraints

Purpose: Verify that the features provided in the dataset adhere to the constraints specified in the INSPIRE application schema.

Prerequisites

Test method

The following checks are performed for every feature in the dataset.

The following checks shall be manually performed for every feature in the dataset related to the spatial object type Evolution:

Reference(s):

Test type: Automated + Manual

Notes

Verify that the OCL constraints that are specified in the UML model of the application schema are met, i.e. validate features against the constraints. For unmet constraints report constraintViolation.

Messages

Identifier Message text (parameters start with '$')
constraintViolation XML document '$filename', $featureType '$gmlid': The constraint '$constraint' is violated.

Contextual XPath references

The namespace prefixes used as described in README.

Abbreviation XPath expression Multiplicity Voidable
reference geometry (VectorStatisticalUnit) //schema-element(su-vector:VectorStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:geometryType/@xlink:href="http://inspire.ec.europa.eu/codelist/GeometryTypeValue/referenceGeometry" 1 (1..* for the parent) No
GM_MultiSurface (VectorStatisticalUnit) //schema-element(su-vector:VectorStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometry/gml:MultiSurface 1 (1..* for the parent) No
reference geometry (AreaStatisticalUnit) //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:geometryType/@xlink:href="http://inspire.ec.europa.eu/codelist/GeometryTypeValue/referenceGeometry" 1 (1..* for the parent) No
GM_MultiSurface (AreaStatisticalUnit) //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometry/gml:MultiSurface 1 (1..* for the parent) No
GM_Surface (AreaStatisticalUnit) //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometry/gml:Surface 1 (1..* for the parent) No
mostDetailedScale //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:mostDetailedScale
//schema-element(su-vector:VectorStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:mostDetailedScale
0..1 (1..* for the parent) No
leastDetailedScale //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:leastDetailedScale
//schema-element(su-vector:VectorStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:leastDetailedScale
0..1 (1..* for the parent) No
Generalised Geometry //schema-element(su-vector:AreaStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:geometryType/@xlink:href="http://inspire.ec.europa.eu/codelist/GeometryTypeValue/generalisedGeometry"
//schema-element(su-vector:VectorStatisticalUnit)/su-vector:geometry/su-vector:VectorStatisticalUnitGeometry/su-vector:geometryDescriptor/su-vector:GeometryDescriptor/su-vector:geometryType/@xlink:href="http://inspire.ec.europa.eu/codelist/GeometryTypeValue/generalisedGeometry"
1 (1..* for the parent) No
typeValue //schema-element(su-vector:Evolution)/su-vector:evolutionType/@xlink:href 1 No
initialUnitVersions //schema-element(su-vector:Evolution)/su-vector:initialUnitVersions/@xlink:href 0..* Yes
finalUnitVersions //schema-element(su-vector:Evolution)/su-vector:finalUnitVersions/@xlink:href 0..* Yes