lib/togostanza/stanza/querying.rb in togostanza-2.1.0 vs lib/togostanza/stanza/querying.rb in togostanza-2.1.1
- old
+ new
@@ -13,10 +13,10 @@
if File.exist?(path)
data = OpenStruct.new params
text_or_filename = Tilt.new(path).render(data)
end
- client = SPARQL::Client.new(MAPPINGS[endpoint] || endpoint)
+ client = SPARQL::Client.new(MAPPINGS[endpoint] || endpoint, :method => "get")
#Rails.logger.debug "SPARQL QUERY: \n#{sparql}"
client.query(text_or_filename).map {|binding|
binding.each_with_object({}) {|(name, term), hash|