Ontology Version: 3.1.0

cacontology-asset-forfeiture:RestraintPhaseShape leaf node


URI

https://cacontology.projectvic.org/asset-forfeiture#RestraintPhaseShape

Label

Restraint Phase Shape

Description

SHACL shape for restraint phases with anti-rigid gUFO Phase validation.

Targets (1)

Implementation

@prefix cacontology-asset-forfeiture: <https://cacontology.projectvic.org/asset-forfeiture#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-asset-forfeiture:RestraintPhaseShape a sh:NodeShape ;
    rdfs:label "Restraint Phase Shape"@en ;
    rdfs:comment "SHACL shape for restraint phases with anti-rigid gUFO Phase validation."@en ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a cacontology-asset-forfeiture:PhaseSequenceError . }
            WHERE {
                $this a cacontology-asset-forfeiture:RestraintPhase ;
                ?action cacontology-asset-forfeiture:currentPhase $this .
                FILTER NOT EXISTS { 
                    ?action cacontology-asset-forfeiture:previousPhase ?prev ;
                    ?prev a cacontology-asset-forfeiture:AssetIdentificationPhase .
                }
            }
        """ ;
            sh:message "Restraint phase should follow asset identification phase"@en ;
            sh:prefixes cacontology-asset-forfeiture: ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-asset-forfeiture:RestraintPhase .