Ontology Version: 2.2.0

cacontology-stranger:AlertCriteriaShape leaf node


URI

https://cacontology.projectvic.org/stranger-abduction#AlertCriteriaShape

Label

Alert Criteria Shape

Description

Validation shape for alert criteria instances.

Implementation

@prefix cacontology-stranger: <https://cacontology.projectvic.org/stranger-abduction#> .
@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-stranger:AlertCriteriaShape a sh:NodeShape ;
    rdfs:label "Alert Criteria Shape"@en ;
    rdfs:comment "Validation shape for alert criteria instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "age_criteria" "abduction_confirmed" "danger_criteria" "description_available" "time_criteria" "jurisdiction_criteria" ) ;
            sh:maxCount 1 ;
            sh:message "Alert criteria must specify criteria type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-stranger:criteriaType ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:message "Alert criteria must specify if criteria is met."@en ;
            sh:minCount 1 ;
            sh:path cacontology-stranger:criteriaMet ],
        [ sh:datatype xsd:string ;
            sh:in ( "confirmed" "probable" "possible" "unverified" "disputed" ) ;
            sh:maxCount 1 ;
            sh:message "Alert criteria must specify verification level from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-stranger:verificationLevel ] ;
    sh:targetClass cacontology-stranger:AlertCriteria .