Ontology Version: 3.0.0

cacontology-legal-outcomes:EnhancementFactorShape leaf node


URI

https://cacontology.projectvic.org/legal-outcomes#EnhancementFactorShape

Label

Enhancement Factor Shape

Description

Validation shape for enhancement factor instances.

Implementation

@prefix cacontology-legal-outcomes: <https://cacontology.projectvic.org/legal-outcomes#> .
@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-legal-outcomes: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-legal-outcomes: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-legal-outcomes: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-legal-outcomes:enhancementJustification ] ;
    sh:targetClass cacontology-legal-outcomes:EnhancementFactor .