Ontology Version: 3.0.0

cacontology-us-ncmec:UrgencyConsistencyValidationShape leaf node


URI

https://cacontology.projectvic.org/us/ncmec#UrgencyConsistencyValidationShape

Label

Urgency Consistency Validation Shape

Description

Validates urgency level consistency with trigger criteria.

Shape Properties

Instances of cacontology-us-ncmec:InvestigationTrigger can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-us-ncmec:InvestigationTrigger
cacontology-us-ncmec:referralJurisdiction 0 1 xsd:string
cacontology-us-ncmec:triggerCriteria 0 5 xsd:string
cacontology-us-ncmec:triggeredBy 1 1 cacontology-us-ncmec:NCMECCybertipReport
cacontology-us-ncmec:urgencyLevel 0 1 xsd:string
1 1 xsd:dateTime

Implementation

@prefix cacontology-us-ncmec: <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-ncmec: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-ncmec:InvestigationTrigger .