https://cacontology.projectvic.org/investigation-coordination#AgreementValidityShape
Validates coordination agreement validity.
Instances of cacontology-coord:CoordinationAgreement can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-coord:CoordinationAgreement | ||||
| cacontology-coord:agreementScope | 1 | 1 |
xsd:string
|
|
| cacontology-coord:agreementType | 1 | 1 |
xsd:string
|
|
| cacontology-coord:effectiveDate | 1 | 1 |
xsd:dateTime
|
|
| cacontology-coord:expirationDate | 0 | 1 |
xsd:dateTime
|
|
| cacontology-coord:hasDataCompleteness | 1 |
xsd:double
|
||
| cacontology-coord:hasDataConsistency | 1 |
xsd:double
|
||
| cacontology-coord:hasDataQuality | 1 |
xsd:string
|
||
| cacontology-coord:hasValidationLevel | 1 |
xsd:string
|
||
| cacontology-coord:renewalClause | 1 | 1 |
xsd:boolean
|
|
| cacontology-coord:terminationClause | 1 | 1 |
xsd:boolean
|
|
| 1 |
xsd:dateTime
|
|||
| 1 |
xsd:dateTime
|
|||
| 0 | 1 |
xsd:string
|
||
| 0 | 1 |
xsd:string
|
||
| 0 | 1 |
xsd:dateTime
|
||
| 0 | 1 |
xsd:dateTime
|
||
@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 .