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:
committed by
Nordine Bittich
parent
76cb2ef547
commit
d52f121a0b
@@ -18,6 +18,7 @@ defmodule Acl.UserGroups.Config do
|
|||||||
"https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit",
|
"https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit",
|
||||||
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
|
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
|
||||||
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
|
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
|
||||||
|
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
|
||||||
"http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
|
"http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
|
||||||
"http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
|
"http://data.lblod.info/vocabularies/erediensten/RolBedienaar",
|
||||||
"http://data.lblod.info/vocabularies/erediensten/VoorwaardenBedienaar",
|
"http://data.lblod.info/vocabularies/erediensten/VoorwaardenBedienaar",
|
||||||
|
|||||||
@@ -97,7 +97,7 @@ defmodule Dispatcher do
|
|||||||
end
|
end
|
||||||
|
|
||||||
match "/central-worship-services/*path", %{ accept: [:json], layer: :api} do
|
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
|
end
|
||||||
|
|
||||||
match "/representative-bodies/*path", %{ accept: [:json], layer: :api} do
|
match "/representative-bodies/*path", %{ accept: [:json], layer: :api} do
|
||||||
@@ -113,7 +113,7 @@ defmodule Dispatcher do
|
|||||||
end
|
end
|
||||||
|
|
||||||
match "/local-involvements/*path", %{ accept: [:json], layer: :api} do
|
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
|
end
|
||||||
|
|
||||||
match "/identifiers/*path", %{ accept: [:json], layer: :api} do
|
match "/identifiers/*path", %{ accept: [:json], layer: :api} do
|
||||||
|
|||||||
@@ -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 .
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1 @@
|
|||||||
|
http://mu.semte.ch/graphs/organisatieportaal
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -492,6 +492,12 @@
|
|||||||
"predicate": "ere:wordtBediendDoor",
|
"predicate": "ere:wordtBediendDoor",
|
||||||
"target": "minister-positions",
|
"target": "minister-positions",
|
||||||
"cardinality": "many"
|
"cardinality": "many"
|
||||||
|
},
|
||||||
|
"involvements": {
|
||||||
|
"predicate": "org:organization",
|
||||||
|
"target": "local-involvements",
|
||||||
|
"cardinality": "many",
|
||||||
|
"inverse": true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"new-resource-base": "http://data.lblod.info/id/eredienstBestuurseenheden/"
|
"new-resource-base": "http://data.lblod.info/id/eredienstBestuurseenheden/"
|
||||||
@@ -510,14 +516,6 @@
|
|||||||
"predicate": "ere:grensoverschrijdend"
|
"predicate": "ere:grensoverschrijdend"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"relationships": {
|
|
||||||
"involvements": {
|
|
||||||
"predicate": "org:organization",
|
|
||||||
"target": "local-involvements",
|
|
||||||
"cardinality": "many",
|
|
||||||
"inverse": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"new-resource-base": "http://data.lblod.info/id/besturenVanDeEredienst/"
|
"new-resource-base": "http://data.lblod.info/id/besturenVanDeEredienst/"
|
||||||
},
|
},
|
||||||
"recognized-worship-types": {
|
"recognized-worship-types": {
|
||||||
@@ -631,9 +629,9 @@
|
|||||||
"target": "involvement-types",
|
"target": "involvement-types",
|
||||||
"cardinality": "one"
|
"cardinality": "one"
|
||||||
},
|
},
|
||||||
"worship-service": {
|
"worship-administrative-unit": {
|
||||||
"predicate": "org:organization",
|
"predicate": "org:organization",
|
||||||
"target": "worship-services",
|
"target": "worship-administrative-units",
|
||||||
"cardinality": "one"
|
"cardinality": "one"
|
||||||
},
|
},
|
||||||
"administrative-unit": {
|
"administrative-unit": {
|
||||||
|
|||||||
Reference in New Issue
Block a user