From 7fb39574a997c407563653f8c69d19bae1642853 Mon Sep 17 00:00:00 2001 From: Claire Lovisa Date: Tue, 8 Mar 2022 11:32:48 +0100 Subject: [PATCH] Remove werkingsgebieden from the config and db --- config/authorization/config.ex | 1 - .../administrative-units/export.json | 11 -------- .../delta-producer/organizations/export.json | 11 -------- config/dispatcher/dispatcher.ex | 4 --- ...20308092436-delete-werkingsgebieden.sparql | 10 +++++++ config/resources/domain.json | 27 ------------------- 6 files changed, 10 insertions(+), 54 deletions(-) create mode 100644 config/migrations/2022/20220308092436-delete-werkingsgebieden.sparql diff --git a/config/authorization/config.ex b/config/authorization/config.ex index 2befca8..d1784cb 100644 --- a/config/authorization/config.ex +++ b/config/authorization/config.ex @@ -23,7 +23,6 @@ defmodule Acl.UserGroups.Config do "http://www.w3.org/ns/org#ChangeEvent", "http://data.lblod.info/vocabularies/erediensten/BetrokkenLokaleBesturen", "http://data.lblod.info/vocabularies/erediensten/VerbondenJuridischeStructuren", - "http://www.w3.org/ns/prov#Location", "http://www.w3.org/ns/org#Site", "http://www.w3.org/ns/locn#Address", "http://www.w3.org/ns/person#Person", diff --git a/config/delta-producer/administrative-units/export.json b/config/delta-producer/administrative-units/export.json index d6dc195..d38b7b0 100644 --- a/config/delta-producer/administrative-units/export.json +++ b/config/delta-producer/administrative-units/export.json @@ -49,17 +49,6 @@ "http://www.w3.org/2004/02/skos/core#prefLabel", "http://www.w3.org/2004/02/skos/core#scopeNote" ] - }, - { - "type": "http://www.w3.org/ns/prov#Location", - "graphsFilter": [ - "http://mu.semte.ch/graphs/organisatieportaal" - ], - "properties": [ - "http://mu.semte.ch/vocabularies/core/uuid", - "http://www.w3.org/2000/01/rdf-schema#label", - "http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau" - ] } ] } diff --git a/config/delta-producer/organizations/export.json b/config/delta-producer/organizations/export.json index 0d5a470..bb86cfb 100644 --- a/config/delta-producer/organizations/export.json +++ b/config/delta-producer/organizations/export.json @@ -306,17 +306,6 @@ "http://www.w3.org/2004/02/skos/core#prefLabel" ] }, - { - "type": "http://www.w3.org/ns/prov#Location", - "graphsFilter": [ - "http://mu.semte.ch/graphs/organisatieportaal" - ], - "properties": [ - "http://www.w3.org/2000/01/rdf-schema#label", - "http://mu.semte.ch/vocabularies/ext/werkingsgebiedNiveau", - "http://data.vlaanderen.be/ns/besluit#werkingsgebied" - ] - }, { "type": "http://lblod.data.gift/vocabularies/organisatie/TypeBetrokkenheid", "graphsFilter": [ diff --git a/config/dispatcher/dispatcher.ex b/config/dispatcher/dispatcher.ex index 9854ec6..b155a18 100644 --- a/config/dispatcher/dispatcher.ex +++ b/config/dispatcher/dispatcher.ex @@ -136,10 +136,6 @@ defmodule Dispatcher do Proxy.forward conn, path, "http://cache/organization-status-codes/" end - match "/locations/*path", %{ accept: [:json], layer: :api} do - Proxy.forward conn, path, "http://cache/locations/" - end - match "/involvement-types/*path", %{ accept: [:json], layer: :api} do Proxy.forward conn, path, "http://cache/involvement-types/" end diff --git a/config/migrations/2022/20220308092436-delete-werkingsgebieden.sparql b/config/migrations/2022/20220308092436-delete-werkingsgebieden.sparql new file mode 100644 index 0000000..84d672d --- /dev/null +++ b/config/migrations/2022/20220308092436-delete-werkingsgebieden.sparql @@ -0,0 +1,10 @@ +DELETE { + GRAPH ?g { + ?s ?p ?o . + } +} WHERE { + GRAPH ?g { + ?s a ; + ?p ?o . + } +} diff --git a/config/resources/domain.json b/config/resources/domain.json index 44a0268..f1bd579 100644 --- a/config/resources/domain.json +++ b/config/resources/domain.json @@ -370,11 +370,6 @@ "predicate": "ere:betrokkenBestuur", "target": "local-involvements", "cardinality": "many" - }, - "scope": { - "predicate": "besluit:werkingsgebied", - "target": "locations", - "cardinality": "one" } }, "new-resource-base": "http://data.lblod.info/id/bestuurseenheden/" @@ -666,28 +661,6 @@ "features": ["include-uri"], "new-resource-base": "http://lblod.data.gift/concepts/" }, - "locations": { - "class": "prov:Location", - "attributes": { - "label": { - "type": "string", - "predicate": "rdfs:label" - }, - "level": { - "type": "string", - "predicate": "ext:werkingsgebiedNiveau" - } - }, - "relationships": { - "administrative-units": { - "predicate": "besluit:werkingsgebied", - "target": "administrative-units", - "cardinality": "many", - "inverse": true - } - }, - "new-resource-base": "http://data.lblod.info/id/werkingsgebieden/" - }, "involvement-types": { "class": "code:TypeBetrokkenheid", "attributes": {