lib/sparql/algebra/operator/and.rb in sparql-3.2.4 vs lib/sparql/algebra/operator/and.rb in sparql-3.2.5
- old
+ new
@@ -50,16 +50,16 @@
# options passed from query
# @return [RDF::Literal::Boolean] `true` or `false`
# @raise [TypeError] if the operands could not be coerced to boolean literals
def evaluate(bindings, **options)
begin
- left = boolean(operand(0).evaluate(bindings, depth: options[:depth].to_i + 1, **options)).true?
+ left = boolean(operand(0).evaluate(bindings, **options.merge(depth: options[:depth].to_i + 1))).true?
rescue TypeError
left = nil
end
begin
- right = boolean(operand(1).evaluate(bindings, depth: options[:depth].to_i + 1, **options)).true?
+ right = boolean(operand(1).evaluate(bindings, **options.merge(depth: options[:depth].to_i + 1))).true?
rescue TypeError
right = nil
end
# From https://www.w3.org/TR/sparql11-query/#evaluation