https://cacontology.projectvic.org/detection#DetectionActionResultCrossReferenceShape
Validates that detection actions produce appropriate results.
@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/1.5.0>
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 .