Enable local involvements for central worship services

I had to deactivate parts of the cache, causing the frontend to have
very weird behaviours when the data was correct
This commit is contained in:
Claire Lovisa
2023-01-19 17:50:21 +01:00
committed by Nordine Bittich
parent 76cb2ef547
commit d52f121a0b
6 changed files with 3101 additions and 12 deletions

View File

@@ -18,6 +18,7 @@ defmodule Acl.UserGroups.Config do
"https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit",
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
"http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
"http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
"http://data.lblod.info/vocabularies/erediensten/VoorwaardenBedienaar",

View File

@@ -97,7 +97,7 @@ defmodule Dispatcher do
end
match "/central-worship-services/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/central-worship-services/"
Proxy.forward conn, path, "http://resource/central-worship-services/"
end
match "/representative-bodies/*path", %{ accept: [:json], layer: :api} do
@@ -113,7 +113,7 @@ defmodule Dispatcher do
end
match "/local-involvements/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/local-involvements/"
Proxy.forward conn, path, "http://resource/local-involvements/"
end
match "/identifiers/*path", %{ accept: [:json], layer: :api} do

View File

@@ -0,0 +1,19 @@
# We already had betrokken lokale besturen entered for some CB.
# Too keep data aligned with the other applications (Loket, CVP etc), we first flush them
# before re-adding only the necessary ones
DELETE {
GRAPH ?g {
?localInvolvement ?plocalInvolvement ?olocalInvolvement .
?bestuur <http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur> ?localInvolvement .
}
} WHERE {
GRAPH ?g {
?centraalBestuur a <http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst> .
?localInvolvement <http://www.w3.org/ns/org#organization> ?centraalBestuur ;
?plocalInvolvement ?olocalInvolvement .
?bestuur <http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur> ?localInvolvement .
}
}

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/organisatieportaal

File diff suppressed because it is too large Load Diff

View File

@@ -492,6 +492,12 @@
"predicate": "ere:wordtBediendDoor",
"target": "minister-positions",
"cardinality": "many"
},
"involvements": {
"predicate": "org:organization",
"target": "local-involvements",
"cardinality": "many",
"inverse": true
}
},
"new-resource-base": "http://data.lblod.info/id/eredienstBestuurseenheden/"
@@ -510,14 +516,6 @@
"predicate": "ere:grensoverschrijdend"
}
},
"relationships": {
"involvements": {
"predicate": "org:organization",
"target": "local-involvements",
"cardinality": "many",
"inverse": true
}
},
"new-resource-base": "http://data.lblod.info/id/besturenVanDeEredienst/"
},
"recognized-worship-types": {
@@ -631,9 +629,9 @@
"target": "involvement-types",
"cardinality": "one"
},
"worship-service": {
"worship-administrative-unit": {
"predicate": "org:organization",
"target": "worship-services",
"target": "worship-administrative-units",
"cardinality": "one"
},
"administrative-unit": {