lib/ld/patch/algebra/index.rb in ld-patch-0.2.0 vs lib/ld/patch/algebra/index.rb in ld-patch-0.3.0.beta1
- old
+ new
@@ -22,10 +22,10 @@
debug(options) {"Index"}
terms = Array(options.fetch(:terms))
index = operand(0)
results = terms.map do |term|
- list = RDF::List.new(term, queryable)
+ list = RDF::List.new(subject: term, graph: queryable)
list.at(index.to_i)
end.flatten
RDF::Query::Solutions.new(results.map {|t| RDF::Query::Solution.new(path: t)})
end
\ No newline at end of file