Ontology Version: 2.7.0

cacontology-hotlines: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.

Shape Properties

Instances of cacontology-hotlines:HashSubmissionAction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-hotlines:HashSubmissionAction
cacontology-hotlines:producesHash 1 uco-observable:Hash

Implementation

@prefix cacontology-hotlines: <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#> .
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 .