Ontology Version: 3.0.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.

Shape Properties

Instances of cacontology-educational:EducatorRole can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-educational:EducatorRole
cacontology-educational:educatorAge xsd:nonNegativeInteger
cacontology-educational:yearsOfExperience xsd:decimal
1 xsd:dateTimeStamp
1 xsd:dateTimeStamp
cac-core: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-physical:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology-physical:hasRoleEndPoint 1 xsd:dateTimeStamp
cacontology-production:hasRoleBeginPoint 0 1 xsd:dateTimeStamp
cacontology-production:hasRoleEndPoint 0 1 xsd:dateTimeStamp
cacontology:hasRoleBeginPoint 1 xsd:dateTimeStamp
cacontology:hasRoleEndPoint 1 xsd:dateTimeStamp
0 cacontology:CACInvestigation

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 .