Ontology Version: 2.2.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.

Target Classes (1)

Shape Properties

Instances of cacontology-case:CaseReview can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-case:CaseReview
cacontology-case:reviewType 1 1 xsd:string
cacontology-gufo:reviewBeginTime 1 1 xsd:dateTime
cacontology-gufo:reviewEndTime 0 1 xsd:dateTime

Implementation

@prefix cacontology-case: <https://cacontology.projectvic.org/case-management#> .
@prefix cacontology-gufo: <https://cacontology.projectvic.org/gufo#> .
@prefix gufo: <http://purl.org/nemo/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:hasValue gufo:Event ;
            sh:message "Case review must be instances of gUFO Event"@en ;
            sh:path rdf:type ],
        [ 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 .