Ontology Version: 2.2.0

cacontology-us-ncmec1:ReportIncidentTypeCrossReferenceShape leaf node


URI

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

Label

Report Incident Type Cross Reference Shape

Description

Validates that NCMEC reports have appropriate incident types.

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:ReportIncidentTypeCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Report Incident Type Cross Reference Shape"@en ;
    rdfs:comment "Validates that NCMEC reports have appropriate incident types."@en ;
    sh:sparql [ sh:message "NCMEC report should have valid incident type relationship."@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/us/ncmec#"^^xsd:anyURI ;
                            sh:prefix "icacus" ] ] ;
            sh:select """
            SELECT $this WHERE {
                $this a cacontology-us-ncmec:NCMECCybertipReport .
                FILTER NOT EXISTS {
                    $this cacontology-us-ncmec:hasNCMECIncidentType ?incidentType .
                    ?incidentType a cacontology-us-ncmec:NCMECIncidentType .
                }
            }
        """ ] ;
    sh:targetClass cacontology-us-ncmec1:NCMECCybertipReport .