A Ruby Micro Gem for creating a Sinatra endpoint using the Ruby SPARQL gem.
Defines a Sinatra class used for responding to SPARQL requests with an empty in-memory repository.
Create a Gemfile containing the following:
gem micro-sparql, :git => "http://github.com/gkellogg/xxx.gist
Create a config.ru containing the following, along with environment-specific
#!/usr/bin/env rackup
$:unshift(File.expand_path("..", __FILE__))
require 'ruby gems' || Gem.clear_paths
require 'bundler'
Bundler.setup
require 'micro-sparql'
run MicroSparql
- Sinatra (>= 1.3.2)
- SPARQL (>= 0.3.5)
- Linked Data (>= 0.3.5)
- Soft dependency on Nokogiri (>= 1.3.3) Falls back to REXML for XML parsing Builder for XML serializing. Nokogiri is much more efficient
- Soft dependency on Equivalent XML (>= 0.2.9) Equivalent XML performs more efficient comparisons of XML Literals when Nokogiri is included
This is free and unencumbered public domain software. For more information, see http://unlicense.org/ or the accompanying {file:UNLICENSE} file.