min-max-values
Several constraint types cover numerical minimum and maximum values. Especially in combination these different constraint types might be confused which results in a bad user experience.
This module contains an example covering the following constraint types:
- Minimum cardinality (properties)
- Maximum cardinality (properties)
- Minimum exclusive (property value)
- Minimum inclusive (property value)
- Maximum exclulsive (property value)
- Maximum inclusive (property value)
- Minimum length (property value)
- Maximum length (property value)
- Qualified minimum count (data shapes)
- Qualified maximum count (data shapes)
Example
The example is available here
Description
The example contains a fictive specification of geo coordinate measurements with different min/max value constraint types.
According to min/max cardinality constraints there should be exactly one
schema:latitude
, exactly one schema:longitude
, exactly one ex:measureDate
and at least one rdfs:comment
.
The maximum cardinality constraint for ex:invalidationDate
is not considered as its property shape is deactivated.
According to min and maximum value properties schema:latitude
must be between -90 (inclusive) and 91 (exclusive)
and schema:longitude
must be between -181 (exclusive) and 180 (inclusive).
The string length of the
schema:latitude
value must be between 1 and 3 and for schema:longitude
between 1 and 4.
The maximum values are chosen to accomodate for the minus symbol of the respective minimum value.
At least one of the mandatory rdfs:comment
property values must comply with a separate data shape ex:protocolSpec
.