Ontology Version: 3.1.0

hotline:HashSubmissionActionShape leaf node


URI

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

Label

Hash Submission Action Shape

Description

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

Targets (1)

Property Constraints (1)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
hotline:producesHash Links a hash submission action to the produced hash.
sh:message A hash submission action must produce at least one hash
1 * uco-observable:Hash

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-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 .