Ontology Version: 3.0.0

cacontology:RoleExclusivityShape leaf node


URI

https://cacontology.projectvic.org#RoleExclusivityShape

Label

Role Exclusivity Shape

Target Classes (1)

Implementation

@prefix cacontology: <https://cacontology.projectvic.org#> .
@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:RoleExclusivityShape a sh:NodeShape ;
    rdfs:label "Role Exclusivity Shape"@en ;
    sh:sparql [ sh:message "Person cannot simultaneously be victim and offender in same investigation"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org#"^^xsd:anyURI ;
                            sh:prefix "cacontology" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this cacontology:playsRole ?victimRole ;
                      cacontology:playsRole ?offenderRole .
                ?victimRole a cacontology:VictimRole ;
                           cacontology:participatesInInvestigation ?investigation .
                ?offenderRole a cacontology:OffenderRole ;
                             cacontology:participatesInInvestigation ?investigation .
            }
        """ ] ;
    sh:targetClass uco-identity:Person .