https://cacontology.projectvic.org/taskforce#TaskForceCrossReferenceShape
Validates cross-references between task force and related entities.
@prefix cacontology-taskforce: <https://cacontology.projectvic.org/taskforce#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-taskforce:TaskForceCrossReferenceShape a sh:NodeShape ;
rdfs:label "Task Force Cross Reference Shape"@en ;
rdfs:comment "Validates cross-references between task force and related entities."@en ;
sh:sparql [ sh:message "Task force must have at least one member and resource allocation."@en ;
sh:select """
SELECT $this
WHERE {
$this a cacontology-taskforce:TaskForce .
FILTER NOT EXISTS {
$this cacontology-taskforce:hasMember ?member ;
cacontology-taskforce:allocatesResources ?resource .
}
}
""" ] ;
sh:targetClass cacontology-taskforce:TaskForce .