Ontology Version: 3.1.0

cacontology-coord:AgreementValidityShape leaf node


URI

https://cacontology.projectvic.org/investigation-coordination#AgreementValidityShape

Label

Agreement Validity Shape

Description

Validates coordination agreement validity.

Targets (1)

Implementation

@prefix cacontology-coord: <https://cacontology.projectvic.org/investigation-coordination#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-coord:AgreementValidityShape a sh:NodeShape ;
    rdfs:label "Agreement Validity Shape"@en ;
    rdfs:comment "Validates coordination agreement validity."@en ;
    sh:sparql [ sh:message "Coordination agreement effective date must be before expiration date when both are specified."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-coord:effectiveDate ?effective ;
                      cacontology-coord:expirationDate ?expiration .
                FILTER (?effective >= ?expiration)
            }
        """ ] ;
    sh:targetClass cacontology-coord:CoordinationAgreement .