Ontology Version: 2.2.0

cacontology-gufo:ChildSexualAbuseEventShape leaf node


URI

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

Label

Child Sexual Abuse Event Shape

Implementation

@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@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:ChildSexualAbuseEventShape a sh:NodeShape ;
    rdfs:label "Child Sexual Abuse Event Shape"@en ;
    sh:property [ sh:hasValue gufo:Kind ;
            sh:message "Child Sexual Abuse Event must be gUFO Kind"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ] ;
    sh:sparql [ sh:message "Criminal event must involve victim and offender roles"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/gufo#"^^xsd:anyURI ;
                            sh:prefix "cacontology-gufo" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this a cacontology-gufo:ChildSexualAbuseEvent .
                FILTER NOT EXISTS {
                    ?victimRole a cacontology-gufo:VictimRole ;
                               cacontology-gufo:participatesInEvent ?this .
                } FILTER NOT EXISTS {
                    ?offenderRole a cacontology-gufo:OffenderRole ;
                                 cacontology-gufo:participatesInEvent ?this .
                }
            }
        """ ] ;
    sh:targetClass cacontology-gufo:ChildSexualAbuseEvent .