Ontology Version: 3.0.0

cacontology-physical-shapes:EvidenceTemporalShape leaf node


URI

https://cacontology.projectvic.org/physical/shapes#EvidenceTemporalShape

Label

Evidence Temporal Shape

Description

Validates gUFO temporal constraints for physical evidence.

Shape Properties

Instances of cacontology-physical:PhysicalEvidence can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-physical:PhysicalEvidence
1 1 xsd:dateTime
1 1 xsd:string
1 1 xsd:string
1 1 xsd:string
1 1 xsd:string
1 1 xsd:string
cacontology-physical:evidenceType 1 1 xsd:string
cacontology-physical:hasContaminationLevel 1 xsd:double
cacontology-physical:hasEvidenceBeginPoint 1 xsd:dateTimeStamp
cacontology-physical:hasEvidenceEndPoint 1 xsd:dateTimeStamp
cacontology-physical:hasEvidenceIntegrity 1 xsd:string
cacontology-physical:hasEvidenceReliability 1 xsd:double
cacontology-physical:hasForensicValue 1 xsd:string
cacontology-physical:hasPreservationQuality 1 xsd:string

Implementation

@prefix cacontology-physical: <https://cacontology.projectvic.org/physical#> .
@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-physical-shapes:EvidenceTemporalShape a sh:NodeShape ;
    rdfs:label "Evidence Temporal Shape"@en ;
    rdfs:comment "Validates gUFO temporal constraints for physical evidence."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Evidence may have begin point timestamp."@en ;
            sh:path cacontology-physical:hasEvidenceBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Evidence may have end point timestamp."@en ;
            sh:path cacontology-physical:hasEvidenceEndPoint ] ;
    sh:sparql [ sh:message "Evidence end must be after begin when both are specified (gUFO temporal constraint)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-physical:hasEvidenceBeginPoint ?start ;
                      cacontology-physical:hasEvidenceEndPoint ?end .
                FILTER (?end <= ?start)
            }
        """ ] ;
    sh:targetClass cacontology-physical:PhysicalEvidence .