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),
            op.predicate,
            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),

sparqlalgebrajs

Convert SPARQL to SPARQL algebra

MIT
Latest version published 6 months ago

Package Health Score

62 / 100
Full package analysis

Similar packages