From 8e311c6bab95113f3a266fda173cdcc8d436295c Mon Sep 17 00:00:00 2001 From: Boris De Vloed Date: Fri, 24 Jan 2025 11:28:41 +0100 Subject: [PATCH] remove province and commune classifications from admin graph --- ...0000-delete-duplicate-classifications.sparql | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 config/migrations/2025/20250124100000-delete-duplicate-classifications.sparql diff --git a/config/migrations/2025/20250124100000-delete-duplicate-classifications.sparql b/config/migrations/2025/20250124100000-delete-duplicate-classifications.sparql new file mode 100644 index 0000000..5d0bf50 --- /dev/null +++ b/config/migrations/2025/20250124100000-delete-duplicate-classifications.sparql @@ -0,0 +1,17 @@ +PREFIX besluit: +PREFIX org: +PREFIX skos: + +DELETE { + GRAPH { + ?adminUnit org:classification ?c + } +} + +WHERE { + GRAPH { + ?adminUnit org:classification ?c + } + ?c skos:prefLabel ?l . + FILTER (?l IN ("Gemeente", "Provincie")) +} \ No newline at end of file