Ontology Version: 2.3.0

cacontology-physical-shapes:ConsentToSearchAuthorizationShape leaf node


URI

https://cacontology.projectvic.org/physical-evidence/shapes#ConsentToSearchAuthorizationShape

Label

Consent to Search Authorization Shape

Description

Validation shape for consent-based search authorizations.

Implementation

@prefix cacontology-physical-shapes: <https://cacontology.projectvic.org/physical-evidence/shapes#> .
@prefix cacontology-physical1: <https://cacontology.projectvic.org/physical-evidence#> .
@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-physical-shapes:ConsentToSearchAuthorizationShape a sh:NodeShape ;
    rdfs:label "Consent to Search Authorization Shape"@en ;
    rdfs:comment "Validation shape for consent-based search authorizations."@en ;
    sh:property [ sh:datatype rdf:langString ;
            sh:maxCount 1 ;
            sh:message "Consent authorization should have a label."@en ;
            sh:minCount 0 ;
            sh:path rdfs:label ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "May specify if consent was given."@en ;
            sh:minCount 0 ;
            sh:path cacontology-physical1:consentGiven ],
        [ sh:datatype xsd:string ;
            sh:in ( "verbal" "written" "implied" ) ;
            sh:maxCount 1 ;
            sh:message "Consent type must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-physical1:consentType ],
        [ sh:datatype xsd:string ;
            sh:in ( "vehicle_only" "device_only" "full_search" "limited" ) ;
            sh:maxCount 1 ;
            sh:message "Consent scope must be from the allowed list."@en ;
            sh:minCount 0 ;
            sh:path cacontology-physical1:consentScope ] ;
    sh:targetClass cacontology-physical1:ConsentToSearchAuthorization .