diff --git a/config/migrations/2022/20221206100001-delete-duplicate-persons-st-franciscus-glabbeek.sparql b/config/migrations/2022/20221206100001-delete-duplicate-persons-st-franciscus-glabbeek.sparql new file mode 100644 index 0000000..c72862a --- /dev/null +++ b/config/migrations/2022/20221206100001-delete-duplicate-persons-st-franciscus-glabbeek.sparql @@ -0,0 +1,83 @@ +# OP-1928 : Remove worship members in "Kerkfabriek St.-Franciscus van Glabbeek" + +# Delete duplicate persons +DELETE { + GRAPH { + ?pm ?om . + ?pj ?oj . + ?pd ?od . + ?pt ?ot . + } +} +WHERE { + GRAPH { + ?pm ?om . + ?pj ?oj . + ?pd ?od . + ?pt ?ot . + } +} +; +DELETE { + GRAPH { + ?pm ?om . + ?pj ?oj . + } +} +WHERE { + GRAPH { + ?pm ?om . + ?pj ?oj . + } +} +; +# Change Start Date +DELETE { + GRAPH ?g { + "2022-05-04"^^xsd:date . + } +} INSERT { + GRAPH ?g { + "2022-01-28"^^xsd:date . + } +} WHERE { + GRAPH ?g { + "2022-05-04"^^xsd:date . + } +} +; +DELETE { + GRAPH ?g { + "2022-05-04"^^xsd:date . + } +} INSERT { + GRAPH ?g { + "2022-01-28"^^xsd:date . + } +} WHERE { + GRAPH ?g { + "2022-05-04"^^xsd:date . + } +} + +# The associated call to trigger a reindex is : + +# curl --location --request POST '172.19.0.23/update' \ +# --header 'Content-Type: application/vnd.api+json' \ +# --data-raw ' [ +# { +# "deletes": [ +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/personen/635BD6EC8DE5818A7C9F4310" }, +# "predicate": { "type": "uri", "value": "http://mu.semte.ch/vocabularies/core/uuid" }, +# "object": { "type": "string", "value": "635BD6EC8DE5818A7C9F4310" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/personen/635BD7518DE5818A7C9F4313" }, +# "predicate": { "type": "uri", "value": "http://mu.semte.ch/vocabularies/core/uuid" }, +# "object": { "type": "string", "value": "635BD7518DE5818A7C9F4313" } +# } +# ], +# "inserts": [] +# } +# ]' \ No newline at end of file diff --git a/config/migrations/2022/20221208100000-delete-duplicate-person.sparql b/config/migrations/2022/20221208100000-delete-duplicate-person.sparql new file mode 100644 index 0000000..9e5fa96 --- /dev/null +++ b/config/migrations/2022/20221208100000-delete-duplicate-person.sparql @@ -0,0 +1,79 @@ +# OP-1929 : Delete duplicated members from worship service + +# Delete wrong peson and mandatarissen +DELETE { + GRAPH { ?s ?p ?o . } +} +WHERE { + GRAPH { + VALUES ?s { + + + + + + + + } + ?s ?p ?o . + } +} +; +# Delete sensitive data +DELETE { + GRAPH { + ?pp ?op . + } +} +WHERE { + GRAPH { + ?pp ?op . + } +} + +# The associated call to trigger a reindex is : + +# curl --location --request POST '172.20.0.26/update' \ +# --header 'Content-Type: application/vnd.api+json' \ +# --data-raw ' [ +# { +# "deletes": [ +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/personen/74c5800e8489c825f318acc9dcb031d0" }, +# "predicate": { "type": "uri", "value": "http://mu.semte.ch/vocabularies/core/uuid" }, +# "object": { "type": "string", "value": "74c5800e8489c825f318acc9dcb031d0" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/6380A02F4B5FEAF28DEDE975" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/6380BBB04B5FEAF28DEDE97E" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/63809FC24B5FEAF28DEDE974" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/63809F414B5FEAF28DEDE972" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/63809F804B5FEAF28DEDE973" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# }, +# { +# "subject": { "type": "uri", "value": "http://data.lblod.info/id/mandatarissen/6380D0854B5FEAF28DEDE97F" }, +# "predicate": { "type": "uri", "value": "http://www.w3.org/1999/02/22-rdf-syntax-ns#type" }, +# "object": { "type": "uri", "value": "http://data.lblod.info/vocabularies/erediensten/EredienstMandataris" } +# } +# ], +# "inserts": [] +# } +# ]' \ No newline at end of file diff --git a/config/migrations/2022/20221209164001-modify-bedienaar-role.sparql b/config/migrations/2022/20221209164001-modify-bedienaar-role.sparql new file mode 100644 index 0000000..be586f9 --- /dev/null +++ b/config/migrations/2022/20221209164001-modify-bedienaar-role.sparql @@ -0,0 +1,17 @@ +PREFIX org: +PREFIX ere: + +DELETE { + GRAPH ?g { + ?role ere:functie . # Priester + } +} INSERT { + GRAPH ?g { + ?role ere:functie . # Rector + } +} WHERE { + GRAPH ?g { + org:holds ?role . + ?role ere:functie . + } +}