https://cacontology.projectvic.org/custodial#CustodialCrossReferenceShape
Validates cross-references between custodial relationships and related entities.
@prefix cacontology-custodial: <https://cacontology.projectvic.org/custodial#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-custodial:CustodialCrossReferenceShape a sh:NodeShape ;
rdfs:label "Custodial Cross Reference Shape"@en ;
rdfs:comment "Validates cross-references between custodial relationships and related entities."@en ;
sh:sparql [ sh:message "Custodial relationship must involve both a custodian and a child."@en ;
sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/custodial#"^^xsd:anyURI ;
sh:prefix "cacontology-custodial" ] ] ;
sh:select """
SELECT ?this
WHERE {
?this a cacontology-custodial:CustodialRelationship .
FILTER NOT EXISTS {
?this cacontology-custodial:involvesCustodian ?custodian ;
cacontology-custodial:involvesChild ?child .
}
}
""" ] ;
sh:targetClass cacontology-custodial:CustodialRelationship .