https://cacontology.projectvic.org/investigation-coordination#AgreementValidityShape
Validates coordination agreement validity.
@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 .