Ontology Version: 3.0.0

cacontology-educational-shapes:ClassroomExploitationContextGUFOShape leaf node


URI

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

Label

gUFO Classroom Exploitation Context Shape

Description

Validation shape for classroom exploitation contexts as gUFO Objects with spatial and temporal constraints.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-educational:ClassroomExploitationContext
cacontology-educational:classroomNumber xsd:string
cacontology-educational:isolationLevel xsd:string
cacontology-educational:studentsPresent xsd:nonNegativeInteger
cacontology-educational:timeOfDay xsd:string
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 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:ClassroomExploitationContextGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Classroom Exploitation Context Shape"@en ;
    rdfs:comment "Validation shape for classroom exploitation contexts as gUFO Objects with spatial and temporal constraints."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Context can have at most one time point"@en ;
            sh:path cacontology-gufo:contextTimePoint ],
        [ sh:datatype xsd:string ;
            sh:message "Classroom number must be valid format (e.g., 101, A205, 12B)"@en ;
            sh:path cacontology-educational:classroomNumber ;
            sh:pattern "^[A-Z]?[0-9]{1,4}[A-Z]?$" ],
        [ sh:datatype xsd:string ;
            sh:in ( "morning" "afternoon" "evening" "after_hours" ) ;
            sh:message "Time of day must be a valid time period"@en ;
            sh:path cacontology-educational:timeOfDay ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxInclusive 35 ;
            sh:message "Students present cannot exceed 35"@en ;
            sh:path cacontology-educational:studentsPresent ],
        [ sh:datatype xsd:string ;
            sh:in ( "alone" "few_students" "class_present" ) ;
            sh:message "Isolation level must be alone, few_students, or class_present"@en ;
            sh:path cacontology-educational:isolationLevel ] ;
    sh:targetClass cacontology-educational:ClassroomExploitationContext .