From 337e3fec87f8b59d7049dc2926ac28d14611cca8 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Wed, 12 Jul 2023 15:47:24 +0200 Subject: [PATCH] Add IGS positions to the sync --- ...k-positions-to-unit-classifications.sparql | 12 ++++ config/reasoner/dl2op/main/query.n3q | 57 ++++++++++++++++++- docker-compose.yml | 2 +- 3 files changed, 69 insertions(+), 2 deletions(-) create mode 100644 config/migrations/2023/20230712152618-igs-link-positions-to-unit-classifications.sparql diff --git a/config/migrations/2023/20230712152618-igs-link-positions-to-unit-classifications.sparql b/config/migrations/2023/20230712152618-igs-link-positions-to-unit-classifications.sparql new file mode 100644 index 0000000..1ae496b --- /dev/null +++ b/config/migrations/2023/20230712152618-igs-link-positions-to-unit-classifications.sparql @@ -0,0 +1,12 @@ +PREFIX ext: + +INSERT DATA { + GRAPH { + + ext:appliesWithin + , + , + , + . + } +} diff --git a/config/reasoner/dl2op/main/query.n3q b/config/reasoner/dl2op/main/query.n3q index 4c47844..b72ce01 100644 --- a/config/reasoner/dl2op/main/query.n3q +++ b/config/reasoner/dl2op/main/query.n3q @@ -26,7 +26,7 @@ ?p ?o . }. -# Functionarissen should be linked to a agb, apb, gemeente, district, provincie or ocmw only (FOR NOW) +# Functionarissen should be linked to an igs, agb, apb, gemeente, district, provincie or ocmw only (FOR NOW) { ?s a ; @@ -111,6 +111,61 @@ ?p ?o . }. +{ + ?s a ; + ?bestuursfunctie ; + ?p ?o . + + ?orgaanInTime ?bestuursfunctie ; + ?orgaan . + ?orgaan ?bestuur . + ?bestuur . + } => { + ?s a ; + ?p ?o . +}. + +{ + ?s a ; + ?bestuursfunctie ; + ?p ?o . + + ?orgaanInTime ?bestuursfunctie ; + ?orgaan . + ?orgaan ?bestuur . + ?bestuur . + } => { + ?s a ; + ?p ?o . +}. + +{ + ?s a ; + ?bestuursfunctie ; + ?p ?o . + + ?orgaanInTime ?bestuursfunctie ; + ?orgaan . + ?orgaan ?bestuur . + ?bestuur . + } => { + ?s a ; + ?p ?o . +}. + +{ + ?s a ; + ?bestuursfunctie ; + ?p ?o . + + ?orgaanInTime ?bestuursfunctie ; + ?orgaan . + ?orgaan ?bestuur . + ?bestuur . + } => { + ?s a ; + ?p ?o . +}. # Mandatarissen should be linked to a gemeente, district, provincie or ocmw only (FOR NOW) diff --git a/docker-compose.yml b/docker-compose.yml index 0674ccc..d3016e1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -219,7 +219,7 @@ services: volumes: - ./config/jobs-controller/:/config/ construct-administrative-unit-relationships: - image: lblod/construct-administrative-unit-relationships-service:0.1.3 + image: lblod/construct-administrative-unit-relationships-service:0.1.4 environment: START_DATE_WORSHIP_GOVERNING_BODY: "2023-04-01T00:00:00" END_DATE_WORSHIP_GOVERNING_BODY: "2026-03-31T00:00:00"