lib/sparql/algebra/operator/slice.rb in sparql-3.0.2 vs lib/sparql/algebra/operator/slice.rb in sparql-3.1.0

- old
+ new

@@ -41,13 +41,13 @@ # @yieldparam [RDF::Query::Solution] solution # @yieldreturn [void] ignored # @return [RDF::Query::Solutions] # the resulting solution sequence # @see http://www.w3.org/TR/sparql11-query/#sparqlAlgebra - def execute(queryable, options = {}, &block) + def execute(queryable, **options, &block) offset = operands[0] == :_ ? 0 : operands[0].to_i limit = operands[1] == :_ ? -1 : operands[1].to_i - @solutions = operands.last. execute(queryable, options.merge(depth: options[:depth].to_i + 1)) + @solutions = operands.last. execute(queryable, depth: options[:depth].to_i + 1, **options) @solutions.offset(operands[0]) unless operands[0] == :_ @solutions.limit(operands[1]) unless operands[1] == :_ @solutions.each(&block) if block_given? @solutions end