Metreeca Wire
    Preparing search index...
    • Generates a SPARQL OPTIONAL group pattern.

      Wraps the clauses in an optional group. 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 matching pattern is required.

      Parameters

      • ...clauses: Mixed<string>

        The graph pattern clauses to wrap

      Returns string

      The SPARQL OPTIONAL group pattern, or the empty fragment for no clauses