https://cacontology.projectvic.org/case-management#MultiJurisdictionalCaseManagementShape
Enhanced validation shape for multi-jurisdictional case management with gUFO Situation validation.
Instances of cacontology-case:MultiJurisdictionalCaseManagement can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-case:CaseManagement | ||||
| cacontology-case:casePriority | 1 | 1 |
xsd:string
|
|
| cacontology-case:caseStatus | 1 | 1 |
xsd:string
|
|
| cacontology-case:currentPhase | 0 | 1 |
gufo:Phase
|
|
@prefix cacontology-case: <https://cacontology.projectvic.org/case-management#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-case:MultiJurisdictionalCaseManagementShape a sh:NodeShape ;
rdfs:label "Multi Jurisdictional Case Management Shape"@en ;
rdfs:comment "Enhanced validation shape for multi-jurisdictional case management with gUFO Situation validation."@en ;
sh:property [ sh:hasValue gufo:Situation ;
sh:message "Multi-jurisdictional case management must be instances of gUFO Situation"@en ;
sh:path rdf:type ] ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a cacontology-case:JurisdictionCoordinationError . }
WHERE {
$this a cacontology-case:MultiJurisdictionalCaseManagement .
{
SELECT $this (COUNT(?jurisdiction) AS ?jurisdictionCount) WHERE {
$this cacontology-case:participatesInManagement ?jurisdiction .
?jurisdiction a cacontology-case:JurisdictionalEntity .
} GROUP BY $this
}
FILTER(?jurisdictionCount < 2)
}
""" ;
sh:message "Multi-jurisdictional case management must involve multiple jurisdictions"@en ;
sh:prefixes cacontology-case: ;
sh:severity sh:Violation ] ;
sh:targetClass cacontology-case:MultiJurisdictionalCaseManagement .