Ontology Version: 2.2.0

cacontology-corruption-shapes:CorruptionTemporalShape leaf node


URI

https://cacontology.projectvic.org/law-enforcement-corruption/shapes#CorruptionTemporalShape

Label

Corruption Temporal Shape

Description

Validates temporal constraints for corruption events according to gUFO framework.

Shape Properties

Instances of cacontology-corruption:LawEnforcementCorruption can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-corruption:LawEnforcementCorruption
cacontology-corruption:corruptionDuration xsd:nonNegativeInteger
cacontology-corruption:hasCorruptionImpact 1 xsd:string
cacontology-corruption:hasCorruptionSeverity 1 xsd:string
cacontology-corruption:hasDataCompleteness 1 xsd:double
cacontology-corruption:hasDataQuality 1 xsd:string
cacontology-corruption:hasValidationLevel 1 xsd:string
cacontology-corruption:hasVictimVulnerability 1 xsd:double
cacontology-corruption:isDetectedBy 1 cacontology-corruption:InsiderThreatDetection
cacontology-corruption:victimCount xsd:nonNegativeInteger
1

Implementation

@prefix cacontology-corruption: <https://cacontology.projectvic.org/law-enforcement-corruption#> .
@prefix cacontology-corruption-shapes: <https://cacontology.projectvic.org/law-enforcement-corruption/shapes#> .
@prefix gufo: <http://purl.org/nemo/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-corruption-shapes:CorruptionTemporalShape a sh:NodeShape ;
    rdfs:label "Corruption Temporal Shape"@en ;
    rdfs:comment "Validates temporal constraints for corruption events according to gUFO framework."@en ;
    sh:property [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Corruption events should specify start time"@en ;
            sh:path gufo:hasBeginPointInXSDDateTimeStamp ;
            sh:severity sh:Info ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:message "Corruption events should specify end time"@en ;
            sh:path gufo:hasEndPointInXSDDateTimeStamp ;
            sh:severity sh:Info ] ;
    sh:sparql [ sh:message "Corruption event end time must be after start time"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "http://purl.org/nemo/gufo#"^^xsd:anyURI ;
                            sh:prefix "gufo" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this gufo:hasBeginPointInXSDDateTimeStamp ?start .
                $this gufo:hasEndPointInXSDDateTimeStamp ?end .
                FILTER (?end <= ?start)
            }
        """ ;
            sh:severity sh:Violation ] ;
    sh:targetClass cacontology-corruption:LawEnforcementCorruption .