lib/sparql/algebra/operator/graph.rb in sparql-2.0.0 vs lib/sparql/algebra/operator/graph.rb in sparql-2.1.0
- old
+ new
@@ -38,14 +38,14 @@
# @return [RDF::Query]
def self.new(name, patterns, &block)
case patterns
when RDF::Query
# Record that the argument as a (bgp) for re-serialization back to SSE
- RDF::Query.new(*(patterns.patterns + [{graph_name: name,}]), &block)
+ RDF::Query.new(*patterns.patterns, graph_name: name, &block)
when Operator
super
else
- RDF::Query.new(*(patterns + [{graph_name: name, as_container: true}]), &block)
+ RDF::Query.new(*patterns, graph_name: name, as_container: true, &block)
end
end
##
# If the second operand is a Query operator: