https://cacontology.projectvic.org/educational/shapes#RoleParticipationValidationShape
Validates role participation consistency and completeness for educational domain.
@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@prefix cacontology-educational-shapes: <https://cacontology.projectvic.org/educational/shapes#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-educational-shapes:RoleParticipationValidationShape a sh:NodeShape ;
rdfs:label "gUFO Role Participation Validation Shape"@en ;
rdfs:comment "Validates role participation consistency and completeness for educational domain."@en ;
sh:sparql [ sh:message "Educator roles must be consistently employed at associated institutions"@en ;
sh:select """
SELECT ?this
WHERE {
?this rdf:type cacontology-educational:EducatorRole ;
cacontology-educational:employedAt ?institution ;
cacontology-educational:hasEmploymentPhase ?phase .
?phase cacontology-educational:employmentStatus "terminated" ;
cacontology-gufo:endTimePoint ?endTime .
?exploitation cacontology-educational:perpetratedBy ?this ;
cacontology-gufo:beginTimePoint ?exploitTime .
FILTER (?exploitTime > ?endTime)
}
""" ],
[ sh:message "All role participants must have complete participation information"@en ;
sh:select """
SELECT ?this
WHERE {
?this rdf:type cacontology-educational:EducatorRole .
FILTER (NOT EXISTS { ?this cacontology-educational:employedAt ?institution } ||
NOT EXISTS { ?this cacontology-educational:hasEducatorAge ?age } ||
NOT EXISTS { ?this cacontology-educational:yearsOfExperience ?exp })
}
""" ] ;
sh:targetClass cac-core:Role .