Ontology Version: 2.2.0

hotline:HashSubmissionActionShape leaf node


URI

https://cacontology.projectvic.org/hotlines/core#HashSubmissionActionShape

Label

Hash Submission Action Shape

Description

Enhanced SHACL shape for hash submission actions with gUFO Event validation and forensic requirements.

Target Classes (1)

Shape Properties

Instances of hotline:HashSubmissionAction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

hotline:HashSubmissionAction
hotline:producesHash 1 uco-observable:Hash

Implementation

@prefix hotline: <https://cacontology.projectvic.org/hotlines/core#> .
@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#> .
hotline:HashSubmissionActionShape a sh:NodeShape ;
    rdfs:label "Hash Submission Action Shape"@en ;
    rdfs:comment "Enhanced SHACL shape for hash submission actions with gUFO Event validation and forensic requirements."@en ;
    sh:property [ sh:class uco-observable:Hash ;
            sh:message "A hash submission action must produce at least one hash"@en ;
            sh:minCount 1 ;
            sh:path hotline:producesHash ] ;
    sh:rule [ a sh:SPARQLRule ;
            sh:construct """
            INSERT { $this a hotline:HashIntegrityError . }
            WHERE {
                $this hotline:producesHash ?hash .
                FILTER NOT EXISTS { 
                    ?hash uco-observable:hashMethod ?method .
                    ?hash uco-observable:hashValue ?value .
                }
            }
        """ ;
            sh:message "Hash submissions must maintain cryptographic integrity"@en ;
            sh:prefixes hotline: ;
            sh:severity sh:Violation ] ;
    sh:targetClass hotline:HashSubmissionAction .