diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151927-flush-existing-leidinggevenden-data.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151927-flush-existing-leidinggevenden-data.sparql new file mode 100644 index 0000000..301b53e --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151927-flush-existing-leidinggevenden-data.sparql @@ -0,0 +1,132 @@ +PREFIX foaf: + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } +} WHERE { + + VALUES ?p { + + + foaf:givenName + foaf:familyName + + } + + ?functionaris a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + ?contactpoint a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?bestuursfunctie ?contactpoint. + } + +} WHERE { + GRAPH { + ?bestuursfunctie a ; + ?contactpoint. + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151928-flush-existing-leidinggevenden-data.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151928-flush-existing-leidinggevenden-data.sparql new file mode 100644 index 0000000..301b53e --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151928-flush-existing-leidinggevenden-data.sparql @@ -0,0 +1,132 @@ +PREFIX foaf: + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } +} WHERE { + + VALUES ?p { + + + foaf:givenName + foaf:familyName + + } + + ?functionaris a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + ?contactpoint a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?bestuursfunctie ?contactpoint. + } + +} WHERE { + GRAPH { + ?bestuursfunctie a ; + ?contactpoint. + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151929-flush-existing-leidinggevenden-data.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151929-flush-existing-leidinggevenden-data.sparql new file mode 100644 index 0000000..301b53e --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151929-flush-existing-leidinggevenden-data.sparql @@ -0,0 +1,132 @@ +PREFIX foaf: + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } +} WHERE { + + VALUES ?p { + + + foaf:givenName + foaf:familyName + + } + + ?functionaris a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + ?contactpoint a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?bestuursfunctie ?contactpoint. + } + +} WHERE { + GRAPH { + ?bestuursfunctie a ; + ?contactpoint. + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151930-flush-existing-leidinggevenden-data.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151930-flush-existing-leidinggevenden-data.sparql new file mode 100644 index 0000000..301b53e --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151930-flush-existing-leidinggevenden-data.sparql @@ -0,0 +1,132 @@ +PREFIX foaf: + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } +} WHERE { + + VALUES ?p { + + + foaf:givenName + foaf:familyName + + } + + ?functionaris a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + ?contactpoint a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?bestuursfunctie ?contactpoint. + } + +} WHERE { + GRAPH { + ?bestuursfunctie a ; + ?contactpoint. + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151931-flush-existing-leidinggevenden-data.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151931-flush-existing-leidinggevenden-data.sparql new file mode 100644 index 0000000..301b53e --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151931-flush-existing-leidinggevenden-data.sparql @@ -0,0 +1,132 @@ +PREFIX foaf: + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } +} WHERE { + + VALUES ?p { + + + foaf:givenName + foaf:familyName + + } + + ?functionaris a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + ?contactpoint a ; + ?s. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?s a ; + ?p ?o. + } + +} WHERE { + + VALUES ?p { + + + + + + + + } + + ?bestuursfunctie a ; + ?contactpoint. + + GRAPH { + ?s a ; + ?p ?o. + } +} + +; + +DELETE { + GRAPH { + ?bestuursfunctie ?contactpoint. + } + +} WHERE { + GRAPH { + ?bestuursfunctie a ; + ?contactpoint. + } +} \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151947-flush-landing-graph.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151947-flush-landing-graph.sparql new file mode 100644 index 0000000..2848ff2 --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113151947-flush-landing-graph.sparql @@ -0,0 +1 @@ +CLEAR GRAPH \ No newline at end of file diff --git a/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113152654-flush-old-jobs.sparql b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113152654-flush-old-jobs.sparql new file mode 100644 index 0000000..d98649a --- /dev/null +++ b/config/migrations/2025/20250113-update-leidinggevenden-consumer/20250113152654-flush-old-jobs.sparql @@ -0,0 +1,50 @@ +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. + ?task ?taskP ?taskO. + ?container ?containerP ?containerO. + } +} +WHERE { + VALUES ?operation { + + + } + + GRAPH ?g { + { + ?job a ; + task:operation ?operation; + ?jobP ?jobO. + + ?task dct:isPartOf ?job; + task:resultsContainer ?container; + ?taskP ?taskO. + + ?container a nfo:DataContainer; + ?containerP ?containerO. + } + UNION + { + ?job a ; + task:operation ?operation; + ?jobP ?jobO. + + ?task dct:isPartOf ?job; + ?taskP ?taskO. + } + } +} \ No newline at end of file