How to use the sparqlalgebrajs.Util.mapOperation function in sparqlalgebrajs

To help you get started, we’ve selected a few sparqlalgebrajs examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github comunica / comunica / packages / actor-query-operation-filter-sparqlee / lib / ActorQueryOperationFilterSparqlee.ts View on Github external
private substitute(operation: Algebra.Operation, bindings: Bindings): Algebra.Operation {
    return Util.mapOperation(operation, {
      path: (op: Algebra.Path, factory: Factory) => {
        return {
          recurse: false,
          result: factory.createPath(
            this.substituteSingle(op.subject, bindings),
            this.substituteSingle(op.object, bindings),
            this.substituteSingle(op.graph, bindings),
      pattern: (op: Algebra.Pattern, factory: Factory) => {
        return {
          recurse: false,
          result: factory.createPattern(
            this.substituteSingle(op.subject, bindings),


Convert SPARQL to SPARQL algebra

Latest version published 3 months ago

Package Health Score

67 / 100
Full package analysis

Similar packages