Ontology Version: 3.0.0

cacontology-physical-shapes:CustodyIntegrityShape leaf node


URI

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

Label

Custody Integrity Shape

Description

Validates evidence custody integrity.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-physical:EvidenceCustodianRole
cacontology-physical:hasCustodyIntegrity 1 xsd:string
cacontology-physical:hasDocumentationCompleteness 1 xsd:double
0 1 xsd:string
cac-core:Role
cacontology-infrastructure:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-infrastructure:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-multi:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-partnerships:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-production:hasRoleBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasRoleEndPoint 0 1 xsd:dateTimeStamp
cacontology:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology:hasRoleEndPoint 1 xsd:dateTimeStamp
0 cacontology:CACInvestigation

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#> .
cacontology-physical-shapes:CustodyIntegrityShape a sh:NodeShape ;
    rdfs:label "Custody Integrity Shape"@en ;
    rdfs:comment "Validates evidence custody integrity."@en ;
    sh:sparql [ sh:message "Compromised custody integrity should have documentation issues flagged."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-physical:hasCustodyIntegrity "compromised" ;
                      cacontology-physical:hasDocumentationCompleteness ?completeness .
                FILTER (?completeness > 0.8)
            }
        """ ] ;
    sh:targetClass cacontology-physical:EvidenceCustodianRole .