Compare commits

...

15 Commits

Author SHA1 Message Date
mirdono
4602842e99 fix: combine merger change events
- add the missing original organisation and matching change event result to one
  merger change event
- remove the superfluous merger change event, except for its reused change event
  result
2024-07-18 13:48:35 +00:00
mirdono
bbcc6928e7 chore: bump frontend 2024-06-24 17:20:13 +02:00
mirdono
399387e301 chore: bump frontend 2024-06-21 18:22:40 +02:00
mirdono
07687f5e35 Merge branch 'master' into development 2024-06-21 18:06:39 +02:00
mirdono
11508cf310 fix: added migration to import the participating municipalities
The original migration to import the participants for public OCMW associations
contained a bug causing it to not match municipalities. More specifically:
- the type triple for municipalities is located in the `shared` graph;
- consequently the `FILTER EXISTS` statements to limit matches to administrative
  units could not succeed for municipalities as the queries are limited to the
  `administrative-unit` graph.

This new migration fixes this problem by changing the `FILTER EXISTS` into a
`FILTER NOT EXISTS` to exclude resourses of type `ext:KboOrganisatie`.
2024-06-21 09:40:50 +00:00
mirdono
43cf1fd323 chore: removed unneeded migration
With the addition of the migration removing relations with `ext:KboOrganisatie`
resources this migration becomes unnecessary.
2024-06-21 09:40:50 +00:00
mirdono
a6b7321cf0 fix: remove org:memberOf triples with KBO organizations as object
The migration importing related organizations for public OCMW associations was
incorrect in that it did not exclude resources of type `ext:KboOrganisatie`
being matched. This migration removes all incorrectly inserted triples.
2024-06-19 13:41:03 +00:00
mirdono
d88adeee15 chore: bump construct-organization-relationship-service 2024-06-14 13:18:58 +00:00
mirdono
155162eb45 feat: added classification code for associations and corporations 2024-06-14 13:18:58 +00:00
mirdono
592b728611 Merge branch 'master' into development 2024-06-12 11:13:20 +02:00
Laurent Deketelaere
9db9d86609 Merge pull request #433 from lblod/fix/disable-kbo-organizations-cache
Disable cache on `/kbo-organizations/*`
2024-06-07 12:23:55 +02:00
Laurent Deketelaere
826a9cdf08 fix: Disable cache on /kbo-organizations/* 2024-06-07 11:39:55 +02:00
Laurent Deketelaere
d57eb0c20c Merge pull request #432 from lblod/fix/cache-organizations-route
Fix cache organizations route
2024-06-07 10:08:51 +02:00
Laurent Deketelaere
e6111fffff feat: Enable cache on domaine doutes 2024-06-06 15:40:20 +02:00
Laurent Deketelaere
cdb9bdb803 chore: Bump mu-cl-resources to 1.24.0 2024-06-06 15:31:51 +02:00
7 changed files with 1929 additions and 26 deletions

View File

@@ -1,16 +0,0 @@
PREFIX org: <http://www.w3.org/ns/org#>
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?participant org:memberOf ?association .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?participant org:memberOf ?association .
?association org:classification ?class
}
VALUES ?class {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/e8294b73-87c9-4fa2-9441-1937350763c9> # Welzijnsvereniging
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/34b5af85-dc9f-468f-9e03-ef89b174c267> # Autonome verzorgingsinstelling
}
}

View File

@@ -73,15 +73,15 @@ defmodule Dispatcher do
end
match "/organizations/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/organizations/"
Proxy.forward conn, path, "http://cache/organizations/"
end
match "/registered-organizations/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/registered-organizations/"
Proxy.forward conn, path, "http://cache/registered-organizations/"
end
match "/administrative-units/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/administrative-units/"
Proxy.forward conn, path, "http://cache/administrative-units/"
end
match "/administrative-unit-classification-codes/*path", %{ accept: [:json], layer: :api} do
@@ -97,11 +97,11 @@ defmodule Dispatcher do
end
match "/worship-administrative-units/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/worship-administrative-units/"
Proxy.forward conn, path, "http://cache/worship-administrative-units/"
end
match "/worship-services/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/worship-services/" # DISABLE CACHING FOR NOW (BUG OP-1404)
Proxy.forward conn, path, "http://cache/worship-services/"
end
match "/recognized-worship-types/*path", %{ accept: [:json], layer: :api} do
@@ -109,7 +109,7 @@ defmodule Dispatcher do
end
match "/central-worship-services/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/central-worship-services/"
Proxy.forward conn, path, "http://cache/central-worship-services/"
end
match "/representative-bodies/*path", %{ accept: [:json], layer: :api} do
@@ -125,7 +125,7 @@ defmodule Dispatcher do
end
match "/local-involvements/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/local-involvements/"
Proxy.forward conn, path, "http://cache/local-involvements/"
end
match "/identifiers/*path", %{ accept: [:json], layer: :api} do
@@ -227,6 +227,7 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/decision-activities/"
end
# There is currently no logic to invalidate the kboOrganization cache when wegwijse updates the content
match "/kbo-organizations/*path", %{ accept: [:any], layer: :api} do
Proxy.forward conn, path, "http://resource/kbo-organizations/"
end

View File

@@ -0,0 +1,22 @@
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX concept: <http://data.vlaanderen.be/id/concept/GeregistreerdeOrganisatieClassificatieCode/>
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
concept:3e5c8e30-95a7-47b0-b0a4-210d5bd440a7 a ext:GeregistreerdeOrganisatieClassificatieCode ;
a ext:OrganizationClassificationCode ;
mu:uuid "3e5c8e30-95a7-47b0-b0a4-210d5bd440a7" ;
skos:prefLabel "Vereniging" .
}
}
;
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
concept:b9ed22af-3661-4c3e-b07f-b641d80ebf61 a ext:GeregistreerdeOrganisatieClassificatieCode ;
a ext:OrganizationClassificationCode ;
mu:uuid "b9ed22af-3661-4c3e-b07f-b641d80ebf61" ;
skos:prefLabel "Vennootschap" .
}
}

View File

@@ -0,0 +1,13 @@
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?participant org:memberOf ?association .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?participant org:memberOf ?association .
?association a ext:KboOrganisatie .
}
}

View File

@@ -0,0 +1,36 @@
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
# Add the necessary additional information to one of the merger change events
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?changeEvent org:originalOrganization <http://data.lblod.info/id/besturenVanDeEredienst/4b7bbaf182fe7eb6dd81a38aa575c1a4> ;
code:veranderingsgebeurtenisResultaat <http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/667D078B77E30E85E60D0DAE> .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?changeEvent a org:ChangeEvent ;
mu:uuid "667D083A77E30E85E60D0DB1" .
}
}
;
# Delete the other merger change event
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?event a org:ChangeEvent ;
mu:uuid "667D078877E30E85E60D0DAC" ;
code:veranderingsgebeurtenisResultaat ?result ;
euro:hasFormalFramework ?decision ;
?ep ?eo .
# Note: delete only this change event result as the other one was added to the change event above
<http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/667D078B77E30E85E60D0DAD> a code:VeranderingsgebeurtenisResultaat ;
?rp ?ro .
?decision a besluit:Besluit ;
?de ?do .
}
}

View File

@@ -72,7 +72,7 @@ services:
restart: always
logging: *default-logging
resource:
image: semtech/mu-cl-resources:1.23.0
image: semtech/mu-cl-resources:1.24.0
environment:
CACHE_CLEAR_PATH: "http://cache/.mu/clear-keys"
links:
@@ -181,7 +181,7 @@ services:
restart: always
logging: *default-logging
frontend:
image: lblod/frontend-organization-portal:1.25.0
image: lblod/frontend-organization-portal:1.26.0
volumes:
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
environment:
@@ -258,7 +258,7 @@ services:
restart: always
logging: *default-logging
construct-organization-relationships:
image: lblod/construct-organization-relationships-service:1.0.0
image: lblod/construct-organization-relationships-service:1.0.1
environment:
START_DATE_WORSHIP_GOVERNING_BODY: "2023-04-01T00:00:00"
END_DATE_WORSHIP_GOVERNING_BODY: "2026-03-31T00:00:00"