https://cacontology.projectvic.org/detection#DetectionTemporalConsistencyShape
Validates temporal consistency across detection events and phases.
Instances of cacontology-detection:AutomatedDetectionAction can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-detection:AutomatedDetectionAction | ||||
| cacontology-detection:confidenceScore | 0 | 1 |
xsd:decimal
|
|
| cacontology-detection:hasDetectionBeginPoint | 1 |
xsd:dateTimeStamp
|
||
| cacontology-detection:hasDetectionEndPoint | 1 |
xsd:dateTimeStamp
|
||
| 1 | ||||
| 1 | 1 |
cacontology-detection:MachineLearningDetectionTool
|
||
| 1 | 1 |
xsd:dateTime
|
||
@prefix cacontology-detection: <https://cacontology.projectvic.org/detection#> .
@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-detection:DetectionTemporalConsistencyShape a sh:NodeShape ;
rdfs:label "Detection Temporal Consistency Shape"@en ;
rdfs:comment "Validates temporal consistency across detection events and phases."@en ;
sh:sparql [ sh:message "Detection actions must occur within active detection phase timeframe"@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/detection#"^^xsd:anyURI ;
sh:prefix "cacontology-detection" ],
[ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
sh:prefix "gufo" ] ] ;
sh:select """
PREFIX cacontology-detection: <https://cacontology.projectvic.org/detection#>
PREFIX gufo: <http://purl.org/nemo/gufo#>
SELECT ?this
WHERE {
?this cacontology-detection:hasDetectionBeginPoint ?detectionBegin .
?phase a cacontology-detection:InitialDetectionPhase ;
cacontology-detection:hasPhaseBeginPoint ?phaseBegin ;
cacontology-detection:hasPhaseEndPoint ?phaseEnd .
?this gufo:occursInPhase ?phase .
FILTER (?detectionBegin < ?phaseBegin || ?detectionBegin > ?phaseEnd)
}
""" ] ;
sh:targetClass cacontology-detection:AutomatedDetectionAction .