sparql-view-unfold
    Preparing search index...

    Function renameVariables

    • Renames variables in an operation subtree according to the given map. Handles both variable terms and the string keys used in VALUES bindings.

      Type Parameters

      • T extends object

      Parameters

      • c: TransformationContext

        The transformation context

      • obj: T

        The operation to rewrite

      • renames: Record<string, RDF.Variable>

        Map from original variable name to its replacement variable

      Returns T

      The rewritten operation