Ontology Version: 2.2.0

cacontology-case:CaseManagerRoleShape leaf node


URI

https://cacontology.projectvic.org/case-management#CaseManagerRoleShape

Label

Case Manager Role Shape

Description

Enhanced validation shape for case manager roles with anti-rigid gUFO Role validation.

Shape Properties

Instances of cacontology-case:CaseManagerRole can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

gufo: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-production:hasRoleBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasRoleEndPoint 0 1 xsd:dateTimeStamp

Implementation

@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: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:property [ sh:hasValue gufo:Role ;
            sh:message "Case manager roles must be instances of anti-rigid gUFO Role"@en ;
            sh:path rdf:type ] ;
    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 .