Ontology Version: 2.2.0

cacontology-detection:HashFormatValidationShape leaf node


URI

https://cacontology.projectvic.org/detection#HashFormatValidationShape

Label

Hash Format Validation Shape

Description

Validates hash format and consistency.

Shape Properties

Instances of cacontology-detection:PerceptualHash can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:PerceptualHash
cacontology-detection:hashAlgorithm 1 1 xsd:string
cacontology-detection:perceptualHashValue 1 1 xsd:string
1

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:HashFormatValidationShape a sh:NodeShape ;
    rdfs:label "Hash Format Validation Shape"@en ;
    rdfs:comment "Validates hash format and consistency."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Hash creation time should be specified when available"@en ;
            sh:minCount 0 ;
            sh:path uco-core:createdTime ] ;
    sh:targetClass cacontology-detection:PerceptualHash,
        cacontology-detection:PhotoDNAHash .