https://cacontology.projectvic.org/case-management#ActiveInvestigationPhaseShape
SHACL shape for active investigation phases with anti-rigid gUFO Phase validation.
Instances of cacontology-case:ActiveInvestigationPhase can have the following properties:
@prefix cacontology-case: <https://cacontology.projectvic.org/case-management#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-case:ActiveInvestigationPhaseShape a sh:NodeShape ;
rdfs:label "Active Investigation Phase Shape"@en ;
rdfs:comment "SHACL shape for active investigation phases with anti-rigid gUFO Phase validation."@en ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a cacontology-case:PhaseSequenceError . }
WHERE {
$this a cacontology-case:ActiveInvestigationPhase ;
?caseManagement cacontology-case:currentPhase $this .
FILTER NOT EXISTS {
?caseManagement cacontology-case:previousPhase ?prev ;
?prev a cacontology-case:CaseInitiationPhase .
}
}
""" ;
sh:message "Active investigation phase should follow case initiation phase"@en ;
sh:prefixes cacontology-case: ;
sh:severity sh:Violation ] ;
sh:targetClass cacontology-case:ActiveInvestigationPhase .