Ontology Version: 3.1.0

cacontology-case:CaseAssignmentShape leaf node


URI

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

Label

Case Assignment Shape

Description

Enhanced validation shape for case assignment with comprehensive gUFO Event validation and Role relationships.

Targets (1)

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-case:assignedToRole Links case assignment to specific role being assigned.
sh:message Case assignment may specify assigned gUFO Role
0 * cac-core:Role
cacontology-case:assignmentType Type of assignment (primary_investigator, secondary_investigator, lead_detective, analyst, supervisor, prosecutor).
sh:message Case assignment must specify assignment type from the allowed list.
1 1 xsd:string
sh:in primary_investigator, secondary_investigator, lead_detective, analyst, supervisor, prosecutor
cacontology-gufo:assignmentBeginTime Temporal point when case assignment begins using gUFO temporal framework.
sh:message Case assignment must specify begin time using gUFO temporal framework
1 1 xsd:dateTime
cacontology-gufo:assignmentEndTime Temporal point when case assignment ends using gUFO temporal framework.
sh:message Case assignment may specify end time using gUFO temporal framework
0 1 xsd:dateTime

Implementation

@prefix cac-core: <https://cacontology.projectvic.org/core#> .
@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:CaseAssignmentShape a sh:NodeShape ;
    rdfs:label "Case Assignment Shape"@en ;
    rdfs:comment "Enhanced validation shape for case assignment with comprehensive gUFO Event validation and Role relationships."@en ;
    sh:property [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Case assignment must specify begin time using gUFO temporal framework"@en ;
            sh:minCount 1 ;
            sh:path cacontology-gufo:assignmentBeginTime ],
        [ sh:datatype xsd:dateTime ;
            sh:maxCount 1 ;
            sh:message "Case assignment may specify end time using gUFO temporal framework"@en ;
            sh:minCount 0 ;
            sh:path cacontology-gufo:assignmentEndTime ],
        [ sh:datatype xsd:string ;
            sh:in ( "primary_investigator" "secondary_investigator" "lead_detective" "analyst" "supervisor" "prosecutor" ) ;
            sh:maxCount 1 ;
            sh:message "Case assignment must specify assignment type from the allowed list."@en ;
            sh:minCount 1 ;
            sh:path cacontology-case:assignmentType ],
        [ sh:class cac-core:Role ;
            sh:message "Case assignment may specify assigned gUFO Role"@en ;
            sh:minCount 0 ;
            sh:path cacontology-case:assignedToRole ] ;
    sh:targetClass cacontology-case:CaseAssignment .