Ontology Version: 3.1.0

cacontology-educational-shapes:EducatorRoleGUFOShape leaf node


URI

https://cacontology.projectvic.org/educational/shapes#EducatorRoleGUFOShape

Label

gUFO Educator Role Shape

Description

Validates educator role instances with gUFO anti-rigidity constraints and temporal employment constraints.

Targets (1)

Property Constraints (4)

Focus nodes of this shape (cacontology-educational:EducatorRole) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-educational:educatorAge Age of educator at time of exploitation.
sh:message Educator age must be between 18 and 85
0 * xsd:nonNegativeInteger
sh:minInclusive 18
sh:maxInclusive 85
cacontology-educational:yearsOfExperience Years of teaching or educational experience.
sh:message Years of experience must be between 0 and 60
0 * xsd:decimal
sh:minInclusive 0
sh:maxInclusive 60
cacontology-gufo:employmentBeginTimePoint
sh:message Educator role can have at most one employment begin point
0 1 xsd:dateTimeStamp
cacontology-gufo:employmentEndTimePoint
sh:message Educator role can have at most one employment end point
0 1 xsd:dateTimeStamp

Implementation

@prefix cacontology-educational: <https://cacontology.projectvic.org/educational#> .
@prefix cacontology-educational-shapes: <https://cacontology.projectvic.org/educational/shapes#> .
@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@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-educational-shapes:EducatorRoleGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Educator Role Shape"@en ;
    rdfs:comment "Validates educator role instances with gUFO anti-rigidity constraints and temporal employment constraints."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Educator role can have at most one employment begin point"@en ;
            sh:path cacontology-gufo:employmentBeginTimePoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Educator role can have at most one employment end point"@en ;
            sh:path cacontology-gufo:employmentEndTimePoint ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxInclusive 85 ;
            sh:message "Educator age must be between 18 and 85"@en ;
            sh:minInclusive 18 ;
            sh:path cacontology-educational:educatorAge ],
        [ sh:datatype xsd:decimal ;
            sh:maxInclusive 60 ;
            sh:message "Years of experience must be between 0 and 60"@en ;
            sh:minInclusive 0 ;
            sh:path cacontology-educational:yearsOfExperience ] ;
    sh:sparql [ sh:message "Employment begin point must precede end point"@en ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this cacontology-gufo:employmentBeginTimePoint ?begin ;
                      cacontology-gufo:employmentEndTimePoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-educational:EducatorRole .