Ontology Version: 3.0.0

cacontology-physical-shapes:ContaminationPreventionRule leaf node


URI

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

Label

Contamination Prevention Rule

Description

Advanced gUFO business rule: Low contamination requires excellent preservation and handling.

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#> .
cacontology-physical-shapes:ContaminationPreventionRule a sh:NodeShape ;
    rdfs:label "Contamination Prevention Rule"@en ;
    rdfs:comment "Advanced gUFO business rule: Low contamination requires excellent preservation and handling."@en ;
    sh:sparql [ sh:message "Evidence with low contamination levels must have excellent preservation quality (gUFO business rule)."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-physical:hasContaminationLevel ?contamination .
                FILTER (?contamination <= 0.2)
                FILTER NOT EXISTS {
                    $this cacontology-physical:hasPreservationQuality ?preservation .
                    FILTER (?preservation IN ("excellent", "optimal"))
                }
            }
        """ ] ;
    sh:targetClass cacontology-physical:PhysicalEvidence .