Ontology Version: 2.2.0

cacontology-educational:shapes/EducatorPerpetratedExploitationGUFOShape leaf node


URI

https://ontology.caseontology.org/icac/educational-exploitation/shapes/EducatorPerpetratedExploitationGUFOShape

Label

gUFO Educator Perpetrated Exploitation Shape

Description

Validates educator exploitation instances with gUFO Event constraints and temporal boundaries.

Implementation

@prefix cacontology-educational: <https://ontology.caseontology.org/icac/educational-exploitation/> .
@prefix cacontology-educational-shapes: <https://ontology.caseontology.org/icac/educational-exploitation/shapes/> .
@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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-educational-shapes:EducatorPerpetratedExploitationGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Educator Perpetrated Exploitation Shape"@en ;
    rdfs:comment "Validates educator exploitation instances with gUFO Event constraints and temporal boundaries."@en ;
    sh:property [ sh:hasValue gufo:Event ;
            sh:message "Educator perpetrated exploitation must be typed as gUFO Event"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Exploitation event can have at most one begin point"@en ;
            sh:path cacontology-gufo:beginTimePoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Exploitation event can have at most one end point"@en ;
            sh:path cacontology-gufo:endTimePoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Exploitation can have at most one first incident time point"@en ;
            sh:path cacontology-educational:exploitationFirstIncidentTimePoint ],
        [ sh:datatype xsd:decimal ;
            sh:maxInclusive 10000 ;
            sh:message "Exploitation duration must be between 0.1 hours and 10,000 hours"@en ;
            sh:minInclusive 0.1 ;
            sh:path cacontology-educational:exploitationDuration ] ;
    sh:sparql [ sh:message "First incident time point should not precede overall begin point"@en ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this cacontology-educational:exploitationFirstIncidentTimePoint ?first ;
                      cacontology-gufo:beginTimePoint ?begin .
                FILTER (?first < ?begin)
            }
        """ ] ;
    sh:targetClass cacontology-educational:EducatorPerpetratedExploitation .