Ontology Version: 3.1.0

cacontology-educational-shapes:AssignmentHarassmentGUFOShape leaf node


URI

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

Label

gUFO Assignment Harassment Shape

Description

Validation shape for harassment on student assignments with gUFO Event constraints.

Property Constraints (2)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-educational:harassmentMedium Medium used for written harassment (assignment, test, note).
sh:message Assignment harassment must have medium of 'assignment'
0 * xsd:string
sh:hasValue assignment
cacontology-educational:writtenOn Links written harassment to academic material it was written on.
sh:message Assignment harassment must specify what it was written on
1 * uco-observable:ObservableObject

Implementation

@prefix cacontology-educational: <https://cacontology.projectvic.org/educational#> .
@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#> .
@prefix uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-educational-shapes:AssignmentHarassmentGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Assignment Harassment Shape"@en ;
    rdfs:comment "Validation shape for harassment on student assignments with gUFO Event constraints."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:hasValue "assignment" ;
            sh:message "Assignment harassment must have medium of 'assignment'"@en ;
            sh:path cacontology-educational:harassmentMedium ],
        [ sh:class uco-observable:ObservableObject ;
            sh:message "Assignment harassment must specify what it was written on"@en ;
            sh:minCount 1 ;
            sh:path cacontology-educational:writtenOn ] ;
    sh:targetClass cacontology-educational:AssignmentHarassment .