Traqula docs
    Preparing search index...

    Utility for canonicalizing SPARQL Algebra operations by replacing blank node and variable names with deterministic generated names, and by sorting the variables of projections, since those form a set. Useful for comparing algebra representations in tests.

    Index

    Constructors

    • Returns Canonicalizer

    Properties

    blankId: number

    Methods

    • Replaces values of BlankNodes in a query with newly generated names. This includes the blank nodes of CONSTRUCT templates: they get a new name but remain blank nodes.

      Parameters

      Returns Algebra.Operation

    • Returns string

    • Parameters

      • term: Term
      • nameMapping: Record<string, string>
      • replaceVars: boolean
      • factory: AlgebraFactory

      Returns Term