diff --git a/config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql b/config/migrations/2023/20230227114600-remove-worship-not-actif.sparql similarity index 100% rename from config/migrations-triggering-indexing/2023/20230227114600-remove-worship-not-actif.sparql rename to config/migrations/2023/20230227114600-remove-worship-not-actif.sparql diff --git a/config/migrations/2023/20230307091456-fix-wrong-resulting-org-after-merge.sparql b/config/migrations/2023/20230307091456-fix-wrong-resulting-org-after-merge.sparql new file mode 100644 index 0000000..dfb815b --- /dev/null +++ b/config/migrations/2023/20230307091456-fix-wrong-resulting-org-after-merge.sparql @@ -0,0 +1,47 @@ +# Update status of the bestuurseenheden as well as the resulting status of the change event + +PREFIX regorg: +PREFIX lblodOrg: + +DELETE { + GRAPH ?g { + + regorg:orgStatus . # Actief + + lblodOrg:resulterendeStatus . # Actief + + + regorg:orgStatus . # Niet Actief + + lblodOrg:resulterendeStatus . # Niet Actief + . + } +} INSERT { + GRAPH ?g { + + regorg:orgStatus . # Niet Actief + + lblodOrg:resulterendeStatus . # Niet Actief + + + regorg:orgStatus . # Actief + + lblodOrg:resulterendeStatus . # Actief + . + + } +} WHERE { + GRAPH ?g { + + regorg:orgStatus . # Actief + + lblodOrg:resulterendeStatus . # Actief + + + regorg:orgStatus . # Niet Actief + + lblodOrg:resulterendeStatus . # Niet Actief + . + + } +} diff --git a/config/search-migrations/2023/20230307100012-change-event-move.json b/config/search-migrations/2023/20230307100012-change-event-move.json new file mode 100644 index 0000000..fb10102 --- /dev/null +++ b/config/search-migrations/2023/20230307100012-change-event-move.json @@ -0,0 +1,64 @@ +[ + { + "deletes": [ + { + "subject": { + "type": "uri", + "value": "http://data.lblod.info/id/besturenVanDeEredienst/e158c6378d3751b88df4a8c0c2b2f99a" + }, + "predicate": { + "type": "uri", + "value": "http://www.w3.org/ns/regorg#orgStatus" + }, + "object": { + "type": "uri", + "value": "http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6" + } + }, + { + "subject": { + "type": "uri", + "value": "http://data.lblod.info/id/besturenVanDeEredienst/8a90a8de8b1f6bb0a6ab29cf81428754" + }, + "predicate": { + "type": "uri", + "value": "http://www.w3.org/ns/regorg#orgStatus" + }, + "object": { + "type": "uri", + "value": "http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311" + } + } + ], + "inserts": [ + { + "subject": { + "type": "uri", + "value": "http://data.lblod.info/id/besturenVanDeEredienst/e158c6378d3751b88df4a8c0c2b2f99a" + }, + "predicate": { + "type": "uri", + "value": "http://www.w3.org/ns/regorg#orgStatus" + }, + "object": { + "type": "uri", + "value": "http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311" + } + }, + { + "subject": { + "type": "uri", + "value": "http://data.lblod.info/id/besturenVanDeEredienst/8a90a8de8b1f6bb0a6ab29cf81428754" + }, + "predicate": { + "type": "uri", + "value": "http://www.w3.org/ns/regorg#orgStatus" + }, + "object": { + "type": "uri", + "value": "http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6" + } + } + ] + } +]