Metreeca Wire
    Preparing search index...
    • Generates a SPARQL GRAPH block scoping patterns to a named graph.

      Wraps the clauses in a graph block matched against the graph named by name, a Variable ranging over the dataset's graph names or a fixed IRI reference. 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 a pattern is required.

      Parameters

      • name: string

        The serialised graph name: a variable or an IRI reference

      • ...clauses: Mixed<string>

        The graph pattern clauses to scope

      Returns string

      The SPARQL GRAPH block, or the empty fragment for no clauses