Ontology Version: 2.2.0

cacontology-detection:PhotoDNAHashGUFOShape leaf node


URI

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

Label

gUFO PhotoDNA Hash Shape

Description

Validates PhotoDNA hash instances with gUFO foundational constraints.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-detection:PhotoDNAHash
cacontology-detection:photoDNAValue 1 1 xsd:string
1

Implementation

@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:PhotoDNAHashGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO PhotoDNA Hash Shape"@en ;
    rdfs:comment "Validates PhotoDNA hash instances with gUFO foundational constraints."@en ;
    sh:property [ sh:hasValue gufo:Object ;
            sh:message "PhotoDNA hash must be typed as gUFO Object"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 128 ;
            sh:message "PhotoDNA value must be a hexadecimal string (32-128 characters)"@en ;
            sh:minCount 1 ;
            sh:minLength 32 ;
            sh:path cacontology-detection:photoDNAValue ;
            sh:pattern "^[0-9A-Fa-f]+$" ] ;
    sh:targetClass cacontology-detection:PhotoDNAHash .