https://cacontology.projectvic.org/us/ncmec#UrgencyConsistencyValidationShape
Validates urgency level consistency with trigger criteria.
@prefix cacontology-us-ncmec1: <https://cacontology.projectvic.org/us/ncmec#> .
@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-us-ncmec1:UrgencyConsistencyValidationShape a sh:NodeShape ;
rdfs:label "Urgency Consistency Validation Shape"@en ;
rdfs:comment "Validates urgency level consistency with trigger criteria."@en ;
sh:sparql [ sh:message "Immediate urgency should have appropriate trigger criteria."@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/us/ncmec#"^^xsd:anyURI ;
sh:prefix "icacus" ] ] ;
sh:select """
SELECT $this WHERE {
$this cacontology-us-ncmec:urgencyLevel "immediate" .
FILTER NOT EXISTS {
$this cacontology-us-ncmec:triggerCriteria ?criteria .
FILTER (?criteria IN ("imminent_danger", "victim_age"))
}
}
""" ] ;
sh:targetClass cacontology-us-ncmec1:InvestigationTrigger .