Metreeca Wire
    Preparing search index...

    Marks a string or a template literal as SPARQL text.

    • Marks a string as SPARQL text.

      Marks the string as SPARQL, recording at the definition site that its content is query, update, or fragment source, so that editors and other tools handle it accordingly.

      The text is realigned as dedent does, so SPARQL laid out to match the indentation of the surrounding code reads as if written flush left.

      Parameters

      • text: string

        The SPARQL text

      Returns string

      A copy of text, with the shared leading whitespace removed from every line

    • Tags a template literal as SPARQL text.

      Marks the literal as SPARQL, recording at the definition site that its content is query, update, or fragment source, so that editors and other tools handle it accordingly.

      The literal is realigned as dedent does, so SPARQL laid out to match the indentation of the surrounding code reads as if written flush left.

      Parameters

      • template: TemplateStringsArray

        The literal sections of the SPARQL text

      • ...values: unknown[]

        The values interpolated between the literal sections

      Returns string

      The assembled template, with the shared leading whitespace removed from every line