diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162924-flush-eredienst-mandatarissen-consumer-containers.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162924-flush-eredienst-mandatarissen-consumer-containers.sparql new file mode 100644 index 0000000..7ad2301 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162924-flush-eredienst-mandatarissen-consumer-containers.sparql @@ -0,0 +1,36 @@ +PREFIX mu: +PREFIX task: +PREFIX dct: +PREFIX prov: +PREFIX nie: +PREFIX ext: +PREFIX oslc: +PREFIX cogs: +PREFIX adms: +PREFIX nfo: +PREFIX dbpedia: + + +DELETE { + GRAPH ?g { + ?container ?containerP ?containerO. + } +} WHERE { + # Please note, if you ever copy/paste this migration the next time, there should be 4 + # operation URI's in total. Since two consumers + VALUES ?operation { + + + } + + GRAPH ?g { + ?job a ; + task:operation ?operation. + + ?task dct:isPartOf ?job; + task:resultsContainer ?container. + + ?container a nfo:DataContainer; + ?containerP ?containerO. + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162925-flush-eredienst-mandatarissen-consumer-tasks.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162925-flush-eredienst-mandatarissen-consumer-tasks.sparql new file mode 100644 index 0000000..b474ae7 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162925-flush-eredienst-mandatarissen-consumer-tasks.sparql @@ -0,0 +1,33 @@ +PREFIX mu: +PREFIX task: +PREFIX dct: +PREFIX prov: +PREFIX nie: +PREFIX ext: +PREFIX oslc: +PREFIX cogs: +PREFIX adms: +PREFIX nfo: +PREFIX dbpedia: + + +DELETE { + GRAPH ?g { + ?task ?taskP ?taskO. + } +} WHERE { + # Please note, if you ever copy/paste this migration the next time, there should be 4 + # operation URI's in total. Since two consumers + VALUES ?operation { + + + } + + GRAPH ?g { + ?job a ; + task:operation ?operation. + + ?task dct:isPartOf ?job; + ?taskP ?taskO. + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162926-flush-eredienst-mandatarissen-consumer-jobs.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162926-flush-eredienst-mandatarissen-consumer-jobs.sparql new file mode 100644 index 0000000..76a13b2 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162926-flush-eredienst-mandatarissen-consumer-jobs.sparql @@ -0,0 +1,31 @@ + PREFIX mu: +PREFIX task: +PREFIX dct: +PREFIX prov: +PREFIX nie: +PREFIX ext: +PREFIX oslc: +PREFIX cogs: +PREFIX adms: +PREFIX nfo: +PREFIX dbpedia: + + +DELETE { + GRAPH ?g { + ?job ?jobP ?jobO. + } +} WHERE { + # Please note, if you ever copy/paste this migration the next time, there should be 4 + # operation URI's in total. Since two consumers + VALUES ?operation { + + + } + + GRAPH ?g { + ?job a ; + task:operation ?operation; + ?jobP ?jobO. + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162927-remove-loket-persons-birthdates.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162927-remove-loket-persons-birthdates.sparql new file mode 100644 index 0000000..aa04c3a --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162927-remove-loket-persons-birthdates.sparql @@ -0,0 +1,17 @@ +DELETE { + GRAPH ?g { + ?s ?p ?o + } +} +WHERE { + VALUES ?g { + + + } + GRAPH ?g { + ?s ?p ?o. + FILTER NOT EXISTS { + ?s a ?type. + } + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162928-remove-loket-persons-birthdates.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162928-remove-loket-persons-birthdates.sparql new file mode 100644 index 0000000..0353903 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162928-remove-loket-persons-birthdates.sparql @@ -0,0 +1,33 @@ +PREFIX ch: +PREFIX mandaat: +PREFIX org: +PREFIX person: +PREFIX persoon: + +# Delete birthdates +DELETE { + GRAPH { + ?birthDate ?p ?o . + } +} WHERE { + VALUES ?g { + + + } + + GRAPH ?g { + ?person a person:Person . + } + + FILTER EXISTS { + GRAPH { + ?agent a ch:AgentInPositie ; + mandaat:isBestuurlijkeAliasVan|org:heldBy ?person . + } + } + + GRAPH { + ?person persoon:heeftGeboorte ?birthDate . + ?birthDate ?p ?o . + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql new file mode 100644 index 0000000..1a2c892 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162929-remove-loket-persons-identifiers.sparql @@ -0,0 +1,39 @@ +PREFIX ch: +PREFIX generiek: +PREFIX mandaat: +PREFIX org: +PREFIX person: +PREFIX persoon: + +# Delete identifiers +DELETE { + GRAPH { + ?identifier ?pidentifier ?oidentifier . + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +} WHERE { + VALUES ?g { + + + } + + GRAPH ?g { + ?person a person:Person . + } + + FILTER EXISTS { + GRAPH { + ?agent a ch:AgentInPositie ; + mandaat:isBestuurlijkeAliasVan|org:heldBy ?person . + } + } + + GRAPH { + ?person persoon:registratie ?identifier . + + ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier ; + ?pidentifier ?oidentifier . + + ?structuredIdentifier ?pstructuredIdentifier ?ostructuredIdentifier . + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql new file mode 100644 index 0000000..668e85c --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162930-remove-loket-persons.sparql @@ -0,0 +1,36 @@ +PREFIX ch: +PREFIX mandaat: +PREFIX org: +PREFIX person: + +# Delete persons +DELETE { + GRAPH ?g { + ?person ?p ?o . + } + + GRAPH { + ?person ?pprivate ?oprivate . + } +} WHERE { + VALUES ?g { + + + } + + GRAPH ?g { + ?person a person:Person ; + ?p ?o . + } + + FILTER EXISTS { + GRAPH { + ?agent a ch:AgentInPositie ; + mandaat:isBestuurlijkeAliasVan|org:heldBy ?person . + } + } + + GRAPH { + ?person ?pprivate ?oprivate . + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162931-contact-points.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162931-contact-points.sparql new file mode 100644 index 0000000..83d8a6f --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162931-contact-points.sparql @@ -0,0 +1,22 @@ +DELETE { + GRAPH { + ?contactPoint ?pcontactPoint ?ocontactPoint . + ?address ?paddress ?oaddress . + } +} WHERE { + GRAPH { + ?agent a . + + OPTIONAL { + ?agent ?contactPoint . + + ?contactPoint ?pcontactPoint ?ocontactPoint . + + OPTIONAL { + ?contactPoint ?address . + + ?address ?paddress ?oaddress . + } + } + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162932-remove-agents-in-position.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162932-remove-agents-in-position.sparql new file mode 100644 index 0000000..31d2d87 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162932-remove-agents-in-position.sparql @@ -0,0 +1,10 @@ +DELETE { + GRAPH { + ?agent ?pagent ?oagent . + } +} WHERE { + GRAPH { + ?agent a ; + ?pagent ?oagent . + } +} diff --git a/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql new file mode 100644 index 0000000..b99b2d7 --- /dev/null +++ b/config/migrations/2025/20250213162849-update-worship-consumer-again/20250213162933-flush-landing-zone.sparql @@ -0,0 +1 @@ +CLEAR GRAPH \ No newline at end of file