Ontology Version: 3.1.0

cacontology-case:CaseReviewShape leaf node


URI

https://cacontology.projectvic.org/case-management#CaseReviewShape

Label

Case Review Shape

Description

Enhanced validation shape for case review with gUFO Event validation.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-case:CaseReview) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-case:reviewType Type of review (supervisory_review, peer_review, quality_assurance, legal_review, administrative_review, external_review).
sh:message Case review must specify review type from the allowed list.
1 1 xsd:string
sh:in supervisory_review, peer_review, quality_assurance, legal_review, administrative_review, external_review
cacontology-gufo:reviewBeginTime Temporal point when case review begins using gUFO temporal framework.
sh:message Case review must specify begin time
1 1 xsd:dateTime
cacontology-gufo:reviewEndTime Temporal point when case review ends using gUFO temporal framework.
sh:message Case review may specify end time
0 1 xsd:dateTime

Implementation

@prefix cacontology-case: <https://cacontology.projectvic.org/case-management#> .
@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@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-case:CaseReviewShape a sh:NodeShape ;
    rdfs:label "Case Review Shape"@en ;
    rdfs:comment "Enhanced validation shape for case review with gUFO Event validation."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Case review must specify begin time"@en ;
            sh:minCount 1 ;
            sh:path cacontology-gufo:reviewBeginTime ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Case review may specify end time"@en ;
            sh:minCount 0 ;
            sh:path cacontology-gufo:reviewEndTime ],
        [ sh:datatype xsd:string ;
            sh:in ( "supervisory_review" "peer_review" "quality_assurance" "legal_review" "administrative_review" "external_review" ) ;
            sh:maxCount 1 ;
            sh:message "Case review must specify review type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-case:reviewType ] ;
    sh:targetClass cacontology-case:CaseReview .