Ontology Version: 3.1.0

cacontology-corruption-shapes:OfficerCareerTemporalShape leaf node


URI

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

Label

Officer Career Temporal Shape

Description

Validates temporal aspects of officer corruption career.

Property Constraints (2)

Focus nodes of this shape (cacontology-corruption:CorruptLawEnforcementOfficer) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-corruption:corruptionDuration Duration of corrupt activities in months before detection.
sh:message Corruption duration should be specified in months
0 * xsd:nonNegativeInteger
sh:minInclusive 0
sh:severity sh:Info
cacontology-corruption:yearsOfService Number of years the officer served before corruption was discovered.
sh:message Years of service should be reasonable (0-50 years)
0 * xsd:nonNegativeInteger
sh:minInclusive 0
sh:maxInclusive 50
sh:severity sh:Warning

Implementation

@prefix cacontology-corruption: <https://cacontology.projectvic.org/law-enforcement-corruption#> .
@prefix cacontology-corruption-shapes: <https://cacontology.projectvic.org/law-enforcement-corruption/shapes#> .
@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:OfficerCareerTemporalShape a sh:NodeShape ;
    rdfs:label "Officer Career Temporal Shape"@en ;
    rdfs:comment "Validates temporal aspects of officer corruption career."@en ;
    sh:property [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxInclusive 50 ;
            sh:message "Years of service should be reasonable (0-50 years)"@en ;
            sh:minInclusive 0 ;
            sh:path cacontology-corruption:yearsOfService ;
            sh:severity sh:Warning ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:message "Corruption duration should be specified in months"@en ;
            sh:minInclusive 0 ;
            sh:path cacontology-corruption:corruptionDuration ;
            sh:severity sh:Info ] ;
    sh:targetClass cacontology-corruption:CorruptLawEnforcementOfficer .