Ontology Version: 2.2.0

cacontology-custodial:TrustBreachSituationShape leaf node


URI

https://cacontology.projectvic.org/custodial#TrustBreachSituationShape

Label

Trust Breach Situation Shape

Description

Validates trust breach situations.

Shape Properties

Instances of cacontology-custodial:TrustBreachSituation can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@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-custodial:TrustBreachSituationShape a sh:NodeShape ;
    rdfs:label "Trust Breach Situation Shape"@en ;
    rdfs:comment "Validates trust breach situations."@en ;
    sh:sparql [ sh:message "Trust breach situation must be created by trust violation event"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
                            sh:prefix "cacontology-custodial" ] ] ;
            sh:select """
            SELECT ?this
            WHERE {
                ?this a cacontology-custodial:TrustBreachSituation .
                FILTER NOT EXISTS {
                    ?violation a cacontology-custodial:TrustViolation ;
                              cacontology-custodial:createsCustodialSituation ?this .
                }
            }
        """ ] ;
    sh:targetClass cacontology-custodial:TrustBreachSituation .