Ontology Version: 2.2.0

cacontology-training:InternationalTrainingShape leaf node


URI

https://cacontology.projectvic.org/training#InternationalTrainingShape

Label

International Training Shape

Description

Validation shape for international training instances.

Shape Properties

Instances of cacontology-training:InternationalTraining can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-training:InternationalTraining
cacontology-training:completionRate 0 1 xsd:decimal
cacontology-training:participationRate 0 1 xsd:decimal
cacontology-training:trainingDuration 0 1 xsd:decimal
cacontology-training:trainingLanguage 0 10 xsd:string
cacontology-training:trainingReachCount 0 1 xsd:nonNegativeInteger
0 1 xsd:dateTime
1 1 xsd:string
1 1 xsd:dateTime

Implementation

@prefix cacontology-training: <https://cacontology.projectvic.org/training#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-training:InternationalTrainingShape a sh:NodeShape ;
    rdfs:label "International Training Shape"@en ;
    rdfs:comment "Validation shape for international training instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 200 ;
            sh:message "International training must have a name (5-200 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 5 ;
            sh:path uco-core:name ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "International training must specify start time."@en ;
            sh:minCount 1 ;
            sh:path uco-core:startTime ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "International training may specify end time."@en ;
            sh:minCount 0 ;
            sh:path uco-core:endTime ],
        [ sh:datatype xsd:nonNegativeInteger ;
            sh:maxCount 1 ;
            sh:maxInclusive 100000 ;
            sh:message "Training reach count must be between 1 and 100000 when specified."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1 ;
            sh:path cacontology-training:trainingReachCount ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 2000.0 ;
            sh:message "Training duration must be between 0.5 and 2000 hours."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.5 ;
            sh:path cacontology-training:trainingDuration ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Participation rate must be between 0.0 and 1.0."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-training:participationRate ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 1.0 ;
            sh:message "Completion rate must be between 0.0 and 1.0."@en ;
            sh:minCount 0 ;
            sh:minInclusive 0.0 ;
            sh:path cacontology-training:completionRate ],
        [ sh:datatype xsd:string ;
            sh:maxCount 10 ;
            sh:maxLength 50 ;
            sh:message "Training language should be 2-50 characters (up to 10 languages)."@en ;
            sh:minCount 0 ;
            sh:minLength 2 ;
            sh:path cacontology-training:trainingLanguage ] ;
    sh:targetClass cacontology-training:InternationalTraining .