Ontology Version: 3.1.0

hotline:ReportReviewActionShape leaf node


URI

https://cacontology.projectvic.org/hotlines#ReportReviewActionShape

Label

Report Review Action Shape

Description

Enhanced SHACL shape for report review actions with comprehensive gUFO Event modeling and classification requirements.

Targets (1)

Property Constraints (2)

Focus nodes of this shape (hotline:ReportReviewAction) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
hotline:classification Links a hotline report to its classification label (a skos:Concept from the ClassificationScheme).
sh:message A report review action must assign at least one classification
1 *
uco-action:performer
sh:message A report review action must have at least one performer
1 *

Implementation

@prefix hotline: <https://cacontology.projectvic.org/hotlines#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
hotline:ReportReviewActionShape a sh:NodeShape ;
    rdfs:label "Report Review Action Shape"@en ;
    rdfs:comment "Enhanced SHACL shape for report review actions with comprehensive gUFO Event modeling and classification requirements."@en ;
    sh:property [ sh:message "A report review action must have at least one performer"@en ;
            sh:minCount 1 ;
            sh:path uco-action:performer ],
        [ sh:message "A report review action must assign at least one classification"@en ;
            sh:minCount 1 ;
            sh:path hotline:classification ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a hotline:QualificationError . }
            WHERE {
                $this a hotline:ReportReviewAction .
                $this uco-action:performer ?performer .
                FILTER NOT EXISTS { 
                    ?performer hotline:playsRole hotline:HotlineAnalystRole .
                }
            }
        """ ;
            sh:message "Report review must be performed by qualified analyst"@en ;
            sh:prefixes hotline: ;
            sh:severity sh:Violation ] ;
    sh:targetClass hotline:ReportReviewAction .