https://cacontology.projectvic.org/production#TemporalValidationShape
Validates temporal consistency in production offenses.
Instances of cacontology-production:ProductionOffense can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-production:ProductionOffense | ||||
| 0 | 1 |
xsd:decimal
|
||
| cacontology-production:productionMethod | 1 | 1 |
xsd:string
|
|
| cacontology-production:sessionCount | 0 | 1 |
xsd:nonNegativeInteger
|
|
| cacontology-production:victimCount | 1 | 1 |
xsd:nonNegativeInteger
|
|
| 0 | 1 |
xsd:dateTime
|
||
| 0 | 1 |
xsd:dateTime
|
||
@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-production:TemporalValidationShape a sh:NodeShape ;
rdfs:label "Temporal Validation Shape"@en ;
rdfs:comment "Validates temporal consistency in production offenses."@en ;
sh:sparql [ sh:message "Start time must be before end time when both are specified."@en ;
sh:select """
SELECT $this
WHERE {
$this uco-core:startTime ?start ;
uco-core:endTime ?end .
FILTER (?start >= ?end)
}
""" ] ;
sh:targetClass cacontology-production:ProductionOffense .