ruby-rdf / sparql

Ruby SPARQL library
http://rubygems.org/gems/sparql
The Unlicense
88 stars 14 forks source link

Add a fully featured SPARQL 1.1 Protocol server w/ binary #22

Closed no-reply closed 8 years ago

no-reply commented 8 years ago

Where something like sparql-server -p 8080 myfile.ttl and sparql-server -p 8081 http://example.org/myfile.ttl work to start a SPARQL server with named graph support, POST/direct-POST queries, etc...

artob commented 8 years ago

:+1:

gkellogg commented 8 years ago

This could be added as a --server option to bin/sparql easily enough; There is a test application in spec/sinatra_spec.rb, which could easily serve as the basis of this.

artob commented 8 years ago

@gkellogg That would work, although conceptually it might be somewhat clearer if the sparql binary were to operate in a subcommand manner, such as:

This would make it an indispensable Swiss army knife of sorts for all SPARQL users. What do you think?

gkellogg commented 8 years ago

That would be fine. I'm a bit tied up for now, so feel free to tackle this if you have the time.

gkellogg commented 8 years ago

@bendiken: I got a start on it. The Rack/Sinatra stuff is commented out, as I need to figure more about provisioning from a ruby file. I also added (but didn't test) querying a remote endoint with sparql-client.

artob commented 8 years ago

@gkellogg Looks good, will give you some feedback tomorrow once I sort out my currently-broken Ruby install...