Ontology Version: 3.0.0

cacontology-us-ncmec:ProcessingSequenceValidationShape leaf node


URI

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

Label

Processing Sequence Validation Shape

Description

Validates that investigation triggers occur after tip processing.

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:ProcessingSequenceValidationShape a sh:NodeShape ;
    rdfs:label "Processing Sequence Validation Shape"@en ;
    rdfs:comment "Validates that investigation triggers occur after tip processing."@en ;
    sh:sparql [ sh:message "Investigation trigger should occur after tip processing."@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/us/ncmec#"^^xsd:anyURI ;
                            sh:prefix "icacus" ],
                        [ sh:namespace "https://ontology.unifiedcyberontology.org/uco/core/"^^xsd:anyURI ;
                            sh:prefix "uco-core" ] ] ;
            sh:select """
            SELECT $this WHERE {
                $this a cacontology-us-ncmec:InvestigationTrigger ;
                      uco-core:startTime ?triggerTime ;
                      cacontology-us-ncmec:triggeredBy ?tip .
                ?processing cacontology-us-ncmec:processedTip ?tip ;
                           uco-core:endTime ?processTime .
                FILTER (?triggerTime < ?processTime)
            }
        """ ] ;
    sh:targetClass cacontology-us-ncmec:InvestigationTrigger .