Hi,
Congratulation on the library, it's amazingly useful.
I'm not sure if this is the right place to report my issue, since it concerns the JSON ouput. Specifically, the bindings of the requested variables in the JSON.
Here's the example:
server.rb
require 'sinatra'
require 'sinatra/sparql'
require 'linkeddata'
dataset = RDF::Graph.new do |graph|
graph << [RDF::Node.new, RDF::DC.title, "Hello, world!"]
graph << [RDF::Node.new, RDF::DC.title, "Foo bar"]
end
get '/sparql' do
SPARQL.execute( request[:query], dataset )
end
$ ruby server.rb
Hi, Congratulation on the library, it's amazingly useful.
I'm not sure if this is the right place to report my issue, since it concerns the JSON ouput. Specifically, the bindings of the requested variables in the JSON.
Here's the example:
server.rb
Now when I query it,
I get:
So this results in 6 different solutions with each one bound variable, instead of 2 solutions with 3 bound variables.
There is no problem when requesting sparql-results+xml.