fix: reorder graph and optional clauses
Putting the optional clause within the graph clause causes to query causes, using DEV data, some organisations to be missed by the query. Turning the order around resolves this without losing any organisations, tested with DEV and PROD data.
This commit is contained in:
@@ -58,8 +58,8 @@ export default {
|
||||
?bestuur a org:Organization .
|
||||
}
|
||||
|
||||
GRAPH ?h {
|
||||
OPTIONAL {
|
||||
OPTIONAL {
|
||||
GRAPH ?h {
|
||||
?bestuur org:hasPrimarySite ?primarySite.
|
||||
|
||||
OPTIONAL {
|
||||
@@ -67,10 +67,11 @@ export default {
|
||||
OPTIONAL { ?sa locn:adminUnitL2 ?provincie. }
|
||||
}
|
||||
}
|
||||
FILTER (?h IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service> ))
|
||||
}
|
||||
|
||||
FILTER (?g IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service>, <http://mu.semte.ch/graphs/shared>))
|
||||
FILTER (?h IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service> ))
|
||||
|
||||
}
|
||||
`;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user