Ontology Version: 3.1.0

cacontology-hotlines: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 (cacontology-hotlines:HashSubmissionAction) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-hotlines: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 cacontology-hotlines: <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#> .
cacontology-hotlines: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 cacontology-hotlines: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 cacontology-hotlines: ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-hotlines:HashSubmissionAction .