Ontology Version: 2.2.0

cacontology-detection:ManualClassificationActionGUFOShape leaf node


URI

https://cacontology.projectvic.org/detection#ManualClassificationActionGUFOShape

Label

gUFO Manual Classification Action Shape

Description

Validates manual classification action instances with gUFO Event constraints.

Shape Properties

Instances of cacontology-detection:ManualClassificationAction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:ManualClassificationAction
cacontology-detection:hasDetectionBeginPoint 1 xsd:dateTimeStamp
cacontology-detection:hasDetectionEndPoint 1 xsd:dateTimeStamp
cacontology-detection:reviewDecision 0 1 xsd:string
1
1 1 uco-identity:Person
1 1 xsd:dateTime

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@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 uco-action: <https://ontology.unifiedcyberontology.org/uco/action/> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix uco-identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:ManualClassificationActionGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Manual Classification Action Shape"@en ;
    rdfs:comment "Validates manual classification action instances with gUFO Event constraints."@en ;
    sh:property [ sh:hasValue gufo:Event ;
            sh:message "Manual classification action must be typed as gUFO Event"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Manual classification action must specify start time"@en ;
            sh:minCount 1 ;
            sh:path uco-core:startTime ],
        [ sh:class uco-identity:Person ;
            sh:maxCount 1 ;
            sh:message "Manual classification action must specify the person performing the review"@en ;
            sh:minCount 1 ;
            sh:path uco-action:performer ],
        [ sh:datatype xsd:string ;
            sh:in ( "confirmed_csam" "not_csam" "requires_further_review" "inconclusive" "false_positive" ) ;
            sh:maxCount 1 ;
            sh:message "Review decision must be from the allowed list"@en ;
            sh:minCount 0 ;
            sh:path cacontology-detection:reviewDecision ] ;
    sh:targetClass cacontology-detection:ManualClassificationAction .