Ontology Version: 3.1.0

cacontology-training:ProfessionalCertificationShape leaf node


URI

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

Label

Professional Certification Shape

Description

Validation shape for professional certification instances.

Property Constraints (3)

Focus nodes of this shape (cacontology-training:ProfessionalCertification) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-training:certificationStatus Status of professional certification (active, expired, suspended).
sh:message Certification status must be from the allowed list.
1 1 xsd:string
sh:in active, expired, suspended, revoked, pending
cacontology-training:certificationValidityPeriod Validity period of certification in months.
sh:message Certification validity period must be between 1 and 120 months.
0 1 xsd:decimal
sh:minInclusive 1.0
sh:maxInclusive 120.0
uco-core:name
sh:message Professional certification must have a name (5-200 characters).
1 1 xsd:string
sh:minLength 5
sh:maxLength 200

Implementation

@prefix cacontology-training: <https://cacontology.projectvic.org/training#> .
@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 uco-core: <https://ontology.unifiedcyberontology.org/uco/core/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-training:ProfessionalCertificationShape a sh:NodeShape ;
    rdfs:label "Professional Certification Shape"@en ;
    rdfs:comment "Validation shape for professional certification instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:maxLength 200 ;
            sh:message "Professional certification must have a name (5-200 characters)."@en ;
            sh:minCount 1 ;
            sh:minLength 5 ;
            sh:path uco-core:name ],
        [ sh:datatype xsd:string ;
            sh:in ( "active" "expired" "suspended" "revoked" "pending" ) ;
            sh:maxCount 1 ;
            sh:message "Certification status must be from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-training:certificationStatus ],
        [ sh:datatype xsd:decimal ;
            sh:maxCount 1 ;
            sh:maxInclusive 120.0 ;
            sh:message "Certification validity period must be between 1 and 120 months."@en ;
            sh:minCount 0 ;
            sh:minInclusive 1.0 ;
            sh:path cacontology-training:certificationValidityPeriod ] ;
    sh:targetClass cacontology-training:ProfessionalCertification .