Ontology Version: 2.2.0

cacontology-gufo:RoleExclusivityShape leaf node


URI

https://cacontology.projectvic.org/gufo#RoleExclusivityShape

Label

Role Exclusivity Shape

Implementation

@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@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-gufo: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/gufo#"^^xsd:anyURI ;
                            sh:prefix "cacontology-gufo" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this cacontology-gufo:playsRole ?victimRole ;
                      cacontology-gufo:playsRole ?offenderRole .
                ?victimRole a cacontology-gufo:VictimRole ;
                           cacontology-gufo:participatesInInvestigation ?investigation .
                ?offenderRole a cacontology-gufo:OffenderRole ;
                             cacontology-gufo:participatesInInvestigation ?investigation .
            }
        """ ] ;
    sh:targetClass cacontology-gufo:Person .