Skip to main content

Module update

Module update 

Source
Expand description

SPARQL 1.1 Update parser.

Parses INSERT DATA, DELETE DATA, DELETE … INSERT … WHERE, CLEAR, CREATE, DROP, and LOAD into the UpdateOperation the existing UpdateExecutor runs. Parsing is non-destructive; the caller decides whether and how to apply the operation (the mutation path is governed — signed WAL, scope-respecting — see the daemon’s update handler).

INSERT DATA/DELETE DATA carry concrete ground triples (no variables), packed into the operation’s fixed [NQuin; 64] array. DELETE/INSERT WHERE carry PatternIds built via the group-pattern parser.

Functions§

is_update
Detect whether a query string is a SPARQL Update request (vs a read query).
parse_update
Parse a single SPARQL Update operation. (Multi-operation requests separated by ; are not handled here — the caller may split on top-level ;.)