From 7866ad310a2ec582da2a34b58aee820e58a91123 Mon Sep 17 00:00:00 2001 From: "Nazarov, Rodion" Date: Thu, 20 Jul 2023 20:44:08 +0200 Subject: [PATCH] [Upd] Update documentation of the example to match actual script --- doc/examples/rdf4j-update/rdf4j-update.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/examples/rdf4j-update/rdf4j-update.md b/doc/examples/rdf4j-update/rdf4j-update.md index 60457757..ceef3025 100644 --- a/doc/examples/rdf4j-update/rdf4j-update.md +++ b/doc/examples/rdf4j-update/rdf4j-update.md @@ -30,14 +30,15 @@ in case if it is set to be "true", module will not do anything if repository wit sml:updateQuery [ a sp:Update ; sp:text """ + PREFIX ex-people: DELETE { - ?oldAge . + ex-people:john ex-people:age ?oldAge . } INSERT { - ?newAge . + ex-people:john ex-people:age ?newAge . } WHERE { OPTIONAL { - ?oldAge . + ex-people:john ex-people:age ?oldAge . } BIND(COALESCE(?oldAge+1, 1) as ?newAge) }