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

- old
+ new

@@ -33,19 +33,19 @@ # @yieldreturn [void] ignored # @return [RDF::Query::Solutions] # the resulting solution sequence # @see http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#defn_algMinus # @see http://www.w3.org/TR/2013/REC-sparql11-query-20130321/#negation - def execute(queryable, options = {}, &block) + def execute(queryable, **options, &block) # Let Ω1 and Ω2 be multisets of solution mappings. We define: # # Minus(Ω1, Ω2) = { μ | μ in Ω1 . ∀ μ' in Ω2, either μ and μ' are not compatible or dom(μ) and dom(μ') are disjoint } # # card[Minus(Ω1, Ω2)](μ) = card[Ω1](μ) debug(options) {"Minus"} - left = queryable.query(operand(0), options.merge(depth: options[:depth].to_i + 1)) + left = queryable.query(operand(0), depth: options[:depth].to_i + 1, **options) debug(options) {"(minus left) #{left.inspect}"} - right = queryable.query(operand(1), options.merge(depth: options[:depth].to_i + 1)) + right = queryable.query(operand(1), depth: options[:depth].to_i + 1, **options) debug(options) {"(minus right) #{right.inspect}"} @solutions = left.minus(right) @solutions.each(&block) if block_given? @solutions end