From c62c0aa4a94cfed5101c8cd9e5147c0b8af3587c Mon Sep 17 00:00:00 2001 From: Elena Poelman Date: Mon, 8 May 2023 11:44:19 +0200 Subject: [PATCH] add migration to add org:Organization type to all existing organizations --- ...0230508093745-add-organization-type.sparql | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 config/migrations/2023/20230508093745-add-organization-type.sparql diff --git a/config/migrations/2023/20230508093745-add-organization-type.sparql b/config/migrations/2023/20230508093745-add-organization-type.sparql new file mode 100644 index 0000000..a4e5dee --- /dev/null +++ b/config/migrations/2023/20230508093745-add-organization-type.sparql @@ -0,0 +1,24 @@ +PREFIX org: +PREFIX besluit: +PREFIX ere: +INSERT { + GRAPH ?g { + ?org a org:Organization . + } +} WHERE { + VALUES ?g { + + + + } + GRAPH ?g { + VALUES ?type { + besluit:Bestuurseenheid + ere:RepresentatiefOrgaan + ere:EredienstBestuurseenheid + ere:BestuurVanDeEredienst + ere:CentraalBestuurVanDeEredienst + } + ?org a ?type . + } +} \ No newline at end of file