Ontology Version: 2.11.0

cacontology-hotlines:SpecialistRoleShape leaf node


URI

https://cacontology.projectvic.org/hotlines/core#SpecialistRoleShape

Label

Specialist Role Shape

Description

SHACL shape for hotline specialist roles with anti-rigid gUFO Role validation and competency requirements.

Implementation

@prefix cacontology-hotlines: <https://cacontology.projectvic.org/hotlines/core#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-hotlines:SpecialistRoleShape a sh:NodeShape ;
    rdfs:label "Specialist Role Shape"@en ;
    rdfs:comment "SHACL shape for hotline specialist roles with anti-rigid gUFO Role validation and competency requirements."@en ;
    sh:property [ sh:hasValue gufo:Role ;
            sh:message "Specialist roles must be instances of anti-rigid gUFO Role"@en ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTime ;
            sh:message "Specialist roles must have assignment timestamps"@en ;
            sh:minCount 1 ;
            sh:path cacontology-hotlines:roleAssignmentTime ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a hotline:CompetencyError . }
            WHERE {
                $this a ?roleType .
                ?roleType rdfs:subClassOf* [ owl:unionOf (hotline:HotlineAnalystRole hotline:ForensicsSpecialistRole hotline:LiaisonRole) ] .
                FILTER NOT EXISTS { 
                    $this hotline:hasCompetency ?competency .
                }
            }
        """ ;
            sh:message "Specialist roles require demonstrated competencies"@en ;
            sh:prefixes cacontology-hotlines: ;
            sh:severity sh:Violation ] ;
    sh:targetClass [ a owl:Class ;
            owl:unionOf ( cacontology-hotlines:HotlineAnalystRole cacontology-hotlines:ForensicsSpecialistRole cacontology-hotlines:LiaisonRole ) ] .