Ontology Version: 2.2.0

cacontology-stranger:AmberAlertValidationShape leaf node


URI

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

Label

Amber Alert Validation Shape

Description

Validates Amber Alert activation criteria.

Implementation

@prefix cacontology-stranger: <https://cacontology.projectvic.org/stranger-abduction#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-stranger:AmberAlertValidationShape a sh:NodeShape ;
    rdfs:label "Amber Alert Validation Shape"@en ;
    rdfs:comment "Validates Amber Alert activation criteria."@en ;
    sh:sparql [ sh:message "Amber Alert must meet all required criteria before activation."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-stranger:AmberAlert ;
                      cacontology-stranger:meetsAlertCriteria ?criteria .
                ?criteria cacontology-stranger:criteriaMet false .
            }
        """ ] ;
    sh:targetClass cacontology-stranger:AmberAlert .