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

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-educational:AssignmentHarassment
cacontology-educational:harassmentMedium xsd:string
cacontology-educational:writtenOn 1 uco-observable:ObservableObject
cacontology-educational:WrittenHarassment
cacontology-educational:harassmentContent xsd:string
cacontology-educational:harassmentFrequency xsd:string
cacontology-educational:harassmentMedium xsd:string

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 .