sparql-view-unfold
    Preparing search index...

    Function prefixVarsInOperation

    • Prefixes all variable names in an operation, so that patterns combined later cannot collide.

      Type Parameters

      • T extends object

      Parameters

      • context: Pick<TransformationContext, "astTransformer" | "DF">

        Object containing astTransformer and DF

      • obj: T

        The object to transform

      • prefix: string

        The prefix to add to all variable names

      Returns T

      the object with all variables prefixed