Metreeca Wire
    Preparing search index...
    • Generates a SPARQL WITH update scoping an operation to a named graph.

      Prefixes the space-joined clauses with with <graph>, serialising graph via reference and setting it as the default graph for both the template and the where pattern of the enclosed deleet or insert operation, the way graph scopes a query pattern. Empty clauses, such as those produced by nil, are dropped first; when none survives, the result is the empty fragment via nil, which callers must guard against where an operation is required.

      Note

      Named witt because with is a reserved word.

      Important

      WITH applies only to the template forms of deleet and insert, those carrying a where clause. It has no effect on the ground delete data and insert data forms, whose triples name their target graphs inline, so pass only template operations as clauses.

      Parameters

      • graph: string

        The IRI reference of the target graph

      • ...clauses: Mixed<string>

        The update operation clauses to scope, typically a deleet or insert template followed by its where clause

      Returns string

      The SPARQL WITH update, or the empty fragment for no clauses