https://cacontology.projectvic.org/international#InternationalReferralCrossReferenceShape
Validates that international referrals have alerting and receiving partners.
Instances of cacontology-international:InternationalReferral can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-international:InternationalReferral | ||||
| cacontology-international:responseTimeInternational | 0 | 1 |
xsd:decimal
|
|
| cacontology-international:undercoverCoordination | 0 | 1 |
xsd:boolean
|
|
| 1 | 1 |
xsd:dateTime
|
||
@prefix cacontology-international: <https://cacontology.projectvic.org/international#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-international:InternationalReferralCrossReferenceShape a sh:NodeShape ;
rdfs:label "International Referral Cross Reference Shape"@en ;
rdfs:comment "Validates that international referrals have alerting and receiving partners."@en ;
sh:sparql [ sh:message "International referral should have alerting partner and referral target."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-international:InternationalReferral .
FILTER NOT EXISTS {
$this cacontology-international:alertingPartner ?alerter ;
cacontology-international:referredTo ?target .
FILTER (?alerter != ?target)
}
}
""" ] ;
sh:targetClass cacontology-international:InternationalReferral .