https://cacontology.projectvic.org/case-management#CaseManagerRoleShape
Enhanced validation shape for case manager roles with anti-rigid gUFO Role validation.
Instances of cacontology-case:CaseManagerRole can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| 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
|
|||
@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:CaseManagerRoleShape a sh:NodeShape ;
rdfs:label "Case Manager Role Shape"@en ;
rdfs:comment "Enhanced validation shape for case manager roles with anti-rigid gUFO Role validation."@en ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a cacontology-case:RoleCompetencyError . }
WHERE {
$this a cacontology-case:CaseManagerRole .
FILTER NOT EXISTS {
$this cacontology-case:hasCompetency ?competency ;
?competency cacontology-case:competencyType "case_management" .
}
}
""" ;
sh:message "Case manager roles must have appropriate management competency"@en ;
sh:prefixes cacontology-case: ;
sh:severity sh:Violation ] ;
sh:targetClass cacontology-case:CaseManagerRole .