https://cacontology.projectvic.org/legal-outcomes#EnhancementFactorShape
Validation shape for enhancement factor instances.
Focus nodes of this shape (cacontology-legal-outcomes:EnhancementFactor) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
cacontology-legal-outcomes:enhancementJustification |
sh:message Enhancement justification must be between 10 and 500 characters. |
1 | 1 | xsd:string |
sh:minLength
10
sh:maxLength
500
|
cacontology-legal-outcomes:enhancementType |
sh:message Enhancement factor must specify enhancement type from the allowed list. |
1 | 1 | xsd:string |
sh:in
victim_vulnerability, leadership_role, use_of_technology, commercial_purpose, distribution_scale, repeat_offender, violence_threat
|
cacontology-legal-outcomes:enhancementValue |
sh:message Enhancement factor must have enhancement value between 1 and 10. |
1 | 1 | xsd:nonNegativeInteger |
sh:minInclusive
1
sh:maxInclusive
10
|
@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 .