Ontology Version: 2.2.0

cacontology-sentencing:EnhancementFactorShape leaf node


URI

https://cacontology.projectvic.org/sentencing#EnhancementFactorShape

Label

Enhancement Factor Shape

Description

Validation shape for enhancement factor instances.

Implementation

@prefix cacontology-sentencing: <https://cacontology.projectvic.org/sentencing#> .
@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-sentencing:EnhancementFactorShape a sh:NodeShape ;
    rdfs:label "Enhancement Factor Shape"@en ;
    rdfs:comment "Validation shape for enhancement factor instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:in ( "victim_vulnerability" "leadership_role" "use_of_technology" "commercial_purpose" "distribution_scale" "repeat_offender" "violence_threat" ) ;
            sh:maxCount 1 ;
            sh:message "Enhancement factor must specify enhancement type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-sentencing:enhancementType ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 10 ;
            sh:message "Enhancement factor must have enhancement value between 1 and 10."@en ;
            sh:minCount 1 ;
            sh:minInclusive 1 ;
            sh:path cacontology-sentencing:enhancementValue ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 500 ;
            sh:message "Enhancement justification must be between 10 and 500 characters."@en ;
            sh:minCount 1 ;
            sh:minLength 10 ;
            sh:path cacontology-sentencing:enhancementJustification ] ;
    sh:targetClass cacontology-sentencing:EnhancementFactor .