Merge pull request #620 from lblod/fix/OP-3867-fix-mandaten-consumer-flow
OP-3867: fix to mandataris mapping query + backfil migration for stuc…
This commit is contained in:
@@ -26,6 +26,7 @@
|
||||
- Restrict available imam roles based on worship organisation status [DL-7485]
|
||||
- IMPORTANT NOTE: Make sure first the [DL-7485] loket migration has completed + data has flown from loket to OP
|
||||
- Frontend [v1.41.1](https://github.com/lblod/frontend-organization-portal/blob/v1.41.1/CHANGELOG.md) [DL-7438]
|
||||
- Fix broken lmb mandataris mappin query [OP-3867]
|
||||
|
||||
### Deploy notes
|
||||
```
|
||||
@@ -68,6 +69,9 @@ drc restart cache resource
|
||||
drc restart migrations resource delta-producer-publication-graph-maintainer
|
||||
```
|
||||
|
||||
```
|
||||
drc restart migrations mandatarissen-consumer
|
||||
```
|
||||
## v1.41.0
|
||||
- added explicit healtchecks [DL-7466]
|
||||
|
||||
|
||||
@@ -8,10 +8,10 @@ CONSTRUCT {
|
||||
?p ?o.
|
||||
|
||||
?orgaanInTime <http://www.w3.org/ns/org#hasPost> ?mandate ;
|
||||
<http://data.vlaanderen.be/ns/mandaat#isTijdspecialisatieVan> ?orgaan .
|
||||
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
|
||||
|
||||
?orgaan <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur .
|
||||
?bestuur <http://data.vlaanderen.be/ns/besluit#classificatie> ?classification .
|
||||
?bestuur <http://www.w3.org/ns/org#classification> ?classification .
|
||||
|
||||
|
||||
FILTER(?classification IN (
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
|
||||
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
|
||||
PREFIX org: <http://www.w3.org/ns/org#>
|
||||
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
|
||||
|
||||
INSERT {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
|
||||
?s ?p ?o.
|
||||
}
|
||||
}
|
||||
WHERE {
|
||||
GRAPH <http://mu.semte.ch/graphs/landing-zone/mandatarissen> {
|
||||
?s a mandaat:Mandataris;
|
||||
org:holds ?mandate;
|
||||
?p ?o.
|
||||
}
|
||||
|
||||
?orgaanInTime org:hasPost ?mandate ;
|
||||
generiek:isTijdspecialisatieVan ?orgaan .
|
||||
|
||||
?orgaan besluit:bestuurt ?bestuur .
|
||||
?bestuur org:classification ?classification .
|
||||
|
||||
FILTER(?classification IN (
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000>,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000003>
|
||||
))
|
||||
|
||||
FILTER (?p NOT IN (mandaat:start, mandaat:einde))
|
||||
|
||||
FILTER NOT EXISTS {
|
||||
?s ?p "" .
|
||||
}
|
||||
|
||||
FILTER NOT EXISTS {
|
||||
GRAPH <http://mu.semte.ch/graphs/administrative-unit> { ?s org:holds ?mandate }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user