Ontology Version: 2.2.0

cacontology-detection:DetectionRoleParticipationShape leaf node


URI

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

Label

Detection Role Participation Shape

Description

Validates detection role participation constraints.

Target Classes (1)

Shape Properties

Instances of uco-identity:Person can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

uco-identity:Person
cacontology-enterprises:participatesInCoercion cacontology-enterprises:SelfHarmCoercion
cacontology-enterprises:participatesInRecruitment cacontology-enterprises:ContentBasedRecruitment

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 uco-identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-detection:DetectionRoleParticipationShape a sh:NodeShape ;
    rdfs:label "Detection Role Participation Shape"@en ;
    rdfs:comment "Validates detection role participation constraints."@en ;
    sh:sparql [ sh:message "Person in detection role must participate in appropriate detection actions"@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#>
            PREFIX uco-action: <https://ontology.unifiedcyberontology.org/uco/action/>
            SELECT ?this
            WHERE {
                ?this gufo:playsRole ?role .
                ?role a cacontology-detection:ContentAnalystRole .
                FILTER NOT EXISTS {
                    ?action a cacontology-detection:ManualClassificationAction ;
                           uco-action:performer ?this .
                }
            }
        """ ] ;
    sh:targetClass uco-identity:Person .