https://cacontology.projectvic.org/hotlines/core#SpecialistRoleShape
SHACL shape for hotline specialist roles with anti-rigid gUFO Role validation and competency requirements.
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix hotline: <https://cacontology.projectvic.org/hotlines/core#> .
@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#> .
hotline: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 hotline: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 hotline: ;
sh:severity sh:Violation ] ;
sh:targetClass [ a owl:Class ;
owl:unionOf ( hotline:HotlineAnalystRole hotline:ForensicsSpecialistRole hotline:LiaisonRole ) ] .