Ontology Version: 2.2.0

cacontology-us-ncmec1:TriggerInvestigationCrossReferenceShape leaf node


URI

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

Label

Trigger Investigation Cross Reference Shape

Description

Validates that investigation triggers result in investigations.

Implementation

@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:TriggerInvestigationCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Trigger Investigation Cross Reference Shape"@en ;
    rdfs:comment "Validates that investigation triggers result in investigations."@en ;
    sh:sparql [ sh:message "Investigation trigger should result in actual investigation."@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/us/ncmec#"^^xsd:anyURI ;
                            sh:prefix "icacus" ],
                        [ sh:namespace "https://cacontology.projectvic.org#"^^xsd:anyURI ;
                            sh:prefix "icac" ] ] ;
            sh:select """
            SELECT $this WHERE {
                $this a cacontology-us-ncmec:InvestigationTrigger .
                FILTER NOT EXISTS {
                    $this cacontology-us-ncmec:resultedInInvestigation ?investigation .
                    ?investigation a cacontology:Investigation .
                }
            }
        """ ] ;
    sh:targetClass cacontology-us-ncmec1:InvestigationTrigger .