SPARQL-server is a project mainly written in Ruby, it's free.
Naïve implementation of SPARQL server for RDFMapper