chore: move status for municipalities and provinces in shared graph

For new frontend functionality concerning local involvements a worship user
should be able to read the status for municipalities and provinces. This
migrations moves these triples to the shared graph such worship users have read
access. The status for municipalities and provinces cannot be changed by users
so no write access is needed.
This commit is contained in:
mirdono
2025-02-20 18:20:51 +01:00
parent b45480d594
commit 920f78e51d

View File

@@ -0,0 +1,28 @@
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX org: <http://www.w3.org/ns/org#>
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?organisation regorg:orgStatus ?status.
}
} INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?organisation regorg:orgStatus ?status.
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?organisation a besluit:Bestuurseenheid;
org:classification ?class.
FILTER (?class IN
(
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>, # Municipality
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> # Province
)
)
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?organisation regorg:orgStatus ?status.
}
}