Ontology Version: 2.2.0

cacontology-detection:DetectionActionResultCrossReferenceShape leaf node


URI

https://cacontology.projectvic.org/detection#DetectionActionResultCrossReferenceShape

Label

Detection Action Result Cross Reference Shape

Description

Validates that detection actions produce appropriate results.

Shape Properties

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

Implementation

@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:DetectionActionResultCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Detection Action Result Cross Reference Shape"@en ;
    rdfs:comment "Validates that detection actions produce appropriate results."@en ;
    sh:sparql [ sh:message "Automated detection action should produce detection results"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/detection#"^^xsd:anyURI ;
                            sh:prefix "cacontology-detection" ] ] ;
            sh:select """
            PREFIX cacontology-detection: <https://cacontology.projectvic.org/detection#>
            PREFIX uco-action: <https://ontology.unifiedcyberontology.org/uco/action/>
            SELECT ?this
            WHERE {
                ?this a cacontology-detection:AutomatedDetectionAction .
                FILTER NOT EXISTS {
                    ?this uco-action:result ?result .
                    ?result a cacontology-detection:DetectionResult .
                }
            }
        """ ] ;
    sh:targetClass cacontology-detection:AutomatedDetectionAction .