Ontology Version: 2.2.0

cacontology-custodial:TrustViolationGUFOShape leaf node


URI

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

Label

gUFO Trust Violation Shape

Description

Validates trust violations as gUFO events with temporal boundaries.

Shape Properties

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

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-custodial:TrustViolation
cacontology-custodial:hasViolationBeginPoint 1 xsd:dateTimeStamp
cacontology-custodial:hasViolationEndPoint 1 xsd:dateTimeStamp
cacontology-custodial:perpetratedBy 1 cacontology-custodial:AuthorityFigure
0 1 xsd:string
0 1 xsd:string
cacontology-custodial:violationSeverity 1 1 xsd:string
cacontology-custodial:violationType 1 1 xsd:string
1

Implementation

@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@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-custodial:TrustViolationGUFOShape a sh:NodeShape ;
    rdfs:label "gUFO Trust Violation Shape"@en ;
    rdfs:comment "Validates trust violations as gUFO events with temporal boundaries."@en ;
    sh:property [ sh:hasValue gufo:Event ;
            sh:message "Trust violation must be typed as gUFO Event"@en ;
            sh:minCount 1 ;
            sh:path rdf:type ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Trust violation can have at most one begin point"@en ;
            sh:path cacontology-custodial:hasViolationBeginPoint ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Trust violation can have at most one end point"@en ;
            sh:path cacontology-custodial:hasViolationEndPoint ],
        [ sh:class cacontology-custodial:AuthorityFigure ;
            sh:message "Trust violation must be perpetrated by authority figure"@en ;
            sh:minCount 1 ;
            sh:path cacontology-custodial:perpetratedBy ] ;
    sh:sparql [ sh:message "Violation begin point must precede end point"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
                            sh:prefix "cacontology-custodial" ] ] ;
            sh:select """
            PREFIX cacontology-custodial: <https://cacontology.projectvic.org/custodial#>
            SELECT ?this
            WHERE {
                ?this cacontology-custodial:hasViolationBeginPoint ?begin ;
                      cacontology-custodial:hasViolationEndPoint ?end .
                FILTER (?begin >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-custodial:TrustViolation .