From f36e2ba706ee353733931b64c3877f4b46c2e33c Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Tue, 1 Feb 2022 18:04:19 +0100 Subject: [PATCH 1/5] bump frontend --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 5c5e602..0468789 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -158,7 +158,7 @@ services: restart: always logging: *default-logging frontend: - image: lblod/frontend-contact-hub:1.5.2 + image: lblod/frontend-contact-hub:1.5.3 volumes: - ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf environment: From 5a318a99fed2946e1d820edf7531e6d9c4bfe7c1 Mon Sep 17 00:00:00 2001 From: Boris De Vloed Date: Wed, 2 Feb 2022 14:59:02 +0100 Subject: [PATCH 2/5] add contact types (#88) * add contact types * move migration to 2022 directory Co-authored-by: Nordine Bittich --- .../20220202120000-primary-contacts.sparql | 22 +++++++++++++++++ .../20220203100000-secondary-contacts.sparql | 24 +++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 config/migrations/2022/20220202120000-primary-contacts.sparql create mode 100644 config/migrations/2022/20220203100000-secondary-contacts.sparql diff --git a/config/migrations/2022/20220202120000-primary-contacts.sparql b/config/migrations/2022/20220202120000-primary-contacts.sparql new file mode 100644 index 0000000..89c771d --- /dev/null +++ b/config/migrations/2022/20220202120000-primary-contacts.sparql @@ -0,0 +1,22 @@ +# cf 20220110100000-secondary-contacts.sparql for context. +# In case it's not a secondary contactpoint (a contactpoint without an address if multiple contact points exist for one entity/mandataris) +PREFIX locn: +PREFIX schema: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?contactPoint + schema:contactType "Primary" + } +} +WHERE { + GRAPH { + ?contactPoint + a schema:ContactPoint. + FILTER NOT EXISTS { + ?contactPoint + schema:contactType "Secondary" + } + } +} \ No newline at end of file diff --git a/config/migrations/2022/20220203100000-secondary-contacts.sparql b/config/migrations/2022/20220203100000-secondary-contacts.sparql new file mode 100644 index 0000000..d6db186 --- /dev/null +++ b/config/migrations/2022/20220203100000-secondary-contacts.sparql @@ -0,0 +1,24 @@ +PREFIX locn: +PREFIX schema: +PREFIX rdf: +PREFIX rdfs: +INSERT { + GRAPH { + ?secondary + schema:contactType "Secondary" + } +} +WHERE { + GRAPH { + ?primary + a schema:ContactPoint; + locn:address ?a1; + schema:telephone ?t1. + ?mandataris schema:contactPoint ?primary, ?secondary. + ?secondary + schema:telephone ?t2. + FILTER NOT EXISTS { + ?secondary locn:address ?a2. + } + } +} \ No newline at end of file From cdf4417ca5f3edc8eb9fc05408a314eb9ae034e9 Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Thu, 10 Feb 2022 14:09:17 +0100 Subject: [PATCH 3/5] bump frontend --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 0468789..2179822 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -158,7 +158,7 @@ services: restart: always logging: *default-logging frontend: - image: lblod/frontend-contact-hub:1.5.3 + image: lblod/frontend-contact-hub:1.5.4 volumes: - ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf environment: From f8a59350044aa99299e8b2265f3f719608184835 Mon Sep 17 00:00:00 2001 From: Sam Van Campenhout Date: Tue, 1 Feb 2022 15:23:01 +0100 Subject: [PATCH 4/5] Add a type attribute to the contact-points model (#95) --- config/resources/domain.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/resources/domain.json b/config/resources/domain.json index 596699c..2a90c1d 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -210,6 +210,10 @@ "website": { "type": "uri", "predicate": "foaf:page" + }, + "type": { + "type": "string", + "predicate": "schema:contactType" } }, "relationships": { From 88226a90387d353a92fb36042e50d5bb177848fd Mon Sep 17 00:00:00 2001 From: Nordine Bittich Date: Thu, 10 Feb 2022 16:01:33 +0100 Subject: [PATCH 5/5] bump frontend --- docker-compose.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-compose.yml b/docker-compose.yml index 2179822..fa457ae 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -158,7 +158,7 @@ services: restart: always logging: *default-logging frontend: - image: lblod/frontend-contact-hub:1.5.4 + image: lblod/frontend-contact-hub:1.6.0 volumes: - ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf environment: