Ontology Version: 2.2.0

cacontology-forensics:TemporalValidationShape leaf node


URI

https://cacontology.projectvic.org/forensics#TemporalValidationShape

Label

Temporal Validation Shape

Description

Validates temporal consistency in forensic actions.

Shape Properties

Instances of cacontology-forensics:ForensicAcquisitionAction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-forensics:ForensicAcquisitionAction
1 xsd:double
cacontology-forensics:acquisitionMethod 1 1 xsd:string
1 xsd:string
cacontology-forensics:evidenceSeized 1 uco-core:UcoObject
cacontology-forensics:forensicCopy 1 cacontology-forensics:ForensicImage
cacontology-forensics:writeBlockingUsed 1 1 xsd:boolean
1 1 xsd:dateTimeStamp
1 xsd:dateTimeStamp
1 uco-tool:Tool
0 1 xsd:dateTime
1 1 xsd:dateTime

Implementation

@prefix cacontology-forensics: <https://cacontology.projectvic.org/forensics#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-forensics:TemporalValidationShape a sh:NodeShape ;
    rdfs:label "Temporal Validation Shape"@en ;
    rdfs:comment "Validates temporal consistency in forensic actions."@en ;
    sh:sparql [ sh:message "Acquisition 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-forensics:ForensicAcquisitionAction .