Skip to content

Commit

Permalink
[Upd] Update documentation of the example to match actual script
Browse files Browse the repository at this point in the history
  • Loading branch information
rodionnv committed Jul 20, 2023
1 parent 2221300 commit 7866ad3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions doc/examples/rdf4j-update/rdf4j-update.md
Expand Up @@ -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: <http://example.org/people/>
DELETE {
<http://example.org/people/john> <http://example.org/people/age> ?oldAge .
ex-people:john ex-people:age ?oldAge .
}
INSERT {
<http://example.org/people/john> <http://example.org/people/age> ?newAge .
ex-people:john ex-people:age ?newAge .
} WHERE {
OPTIONAL {
<http://example.org/people/john> <http://example.org/people/age> ?oldAge .
ex-people:john ex-people:age ?oldAge .
}
BIND(COALESCE(?oldAge+1, 1) as ?newAge)
}
Expand Down

0 comments on commit 7866ad3

Please sign in to comment.