https://cacontology.projectvic.org/victim-impact#AssessmentDateValidationShape
Validates assessment date consistency.
Instances of cacontology-impact:VictimImpactAssessment can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-impact:VictimImpactAssessment | ||||
| cacontology-impact:assessmentDate | 1 | 1 |
xsd:dateTime
|
|
| 0 | 1 |
xsd:decimal
|
||
| cacontology-impact:assessmentType | 1 | 1 |
xsd:string
|
|
| 1 | 1 |
xsd:string
|
||
| cacontology-impact:severityLevel | 1 | 1 |
xsd:string
|
|
@prefix cacontology-impact: <https://cacontology.projectvic.org/victim-impact#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-impact:AssessmentDateValidationShape a sh:NodeShape ;
rdfs:label "Assessment Date Validation Shape"@en ;
rdfs:comment "Validates assessment date consistency."@en ;
sh:sparql [ sh:message "Assessment date should not be in the future."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-impact:assessmentDate ?date .
FILTER (?date > NOW())
}
""" ] ;
sh:targetClass cacontology-impact:VictimImpactAssessment .