From 4dc4bf84fa2d3e2ab836501070f3df3cf81492c7 Mon Sep 17 00:00:00 2001 From: Laurent Deketelaere Date: Wed, 28 Feb 2024 12:16:35 +0100 Subject: [PATCH] Add `remove-type-in-producer-graph.sparql-template` --- config/migrations-sample/README.md | 1 + .../remove-type-in-producer-graph.sparql-template | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 config/migrations-sample/remove-type-in-producer-graph.sparql-template diff --git a/config/migrations-sample/README.md b/config/migrations-sample/README.md index d2e79fa..e506f8b 100644 --- a/config/migrations-sample/README.md +++ b/config/migrations-sample/README.md @@ -11,3 +11,4 @@ In addition, these files can function as templates or provide inspiration for fu ## Template files - `pseudonimyze-data.sparql-template` - the file that contains the sparql for pseudonymizing data in the triplestore. It should run every time the db is "refreshed" with a copy from PROD. +- `remove-type-in-producer-graph.sparql-template` - the migration to handle the occasional sync issue between OP and Loket. diff --git a/config/migrations-sample/remove-type-in-producer-graph.sparql-template b/config/migrations-sample/remove-type-in-producer-graph.sparql-template new file mode 100644 index 0000000..3f16e82 --- /dev/null +++ b/config/migrations-sample/remove-type-in-producer-graph.sparql-template @@ -0,0 +1,9 @@ +DELETE WHERE { + GRAPH { + a ?firsttype. + a ?secondtype. + a ?thirdtype. + a ?fourthtype. + a ?fifthtype. + } +} \ No newline at end of file