https://cacontology.projectvic.org/us/ncmec#ProcessingTimeValidationShape
Validates processing time reasonableness.
Instances of cacontology-us-ncmec:TipProcessing can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-us-ncmec:TipProcessing | ||||
| cacontology-us-ncmec:processedTip | 1 | 1 |
cacontology-us-ncmec:NCMECCybertipReport
|
|
| cacontology-us-ncmec:processingTime | 0 | 1 |
xsd:decimal
|
|
| 0 | 1 |
xsd:dateTime
|
||
| 1 | 1 |
xsd:dateTime
|
||
@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:ProcessingTimeValidationShape a sh:NodeShape ;
rdfs:label "Processing Time Validation Shape"@en ;
rdfs:comment "Validates processing time reasonableness."@en ;
sh:sparql [ sh:message "Processing time should be consistent with start and end times."@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 uco-core:startTime ?start ;
uco-core:endTime ?end ;
cacontology-us-ncmec:processingTime ?declaredTime .
BIND((?end - ?start) / 3600 AS ?actualHours)
FILTER (ABS(?actualHours - ?declaredTime) > 1.0)
}
""" ] ;
sh:targetClass cacontology-us-ncmec:TipProcessing .