Ontology Version: 2.2.0

cacontology-taskforce:TemporalValidationShape leaf node


URI

https://cacontology.projectvic.org/taskforce#TemporalValidationShape

Label

Temporal Validation Shape

Description

Validates temporal consistency in task force memberships.

Shape Properties

Instances of cacontology-taskforce:TaskForceMember can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-taskforce:TaskForceMember
cacontology-taskforce:memberRole 1 1 xsd:string
0 1 xsd:dateTime
1 1 xsd:dateTime
1 1 xsd:string
0 1 xsd:string
1 1 xsd:boolean

Implementation

@prefix cacontology-taskforce: <https://cacontology.projectvic.org/taskforce#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-taskforce:TemporalValidationShape a sh:NodeShape ;
    rdfs:label "Temporal Validation Shape"@en ;
    rdfs:comment "Validates temporal consistency in task force memberships."@en ;
    sh:sparql [ sh:message "Membership start date must be before end date when both are specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-taskforce:membershipStartDate ?start ;
                      cacontology-taskforce:membershipEndDate ?end .
                FILTER (?start >= ?end)
            }
        """ ] ;
    sh:targetClass cacontology-taskforce:TaskForceMember .