Factored out sparql query service, so that other query services can be plugged in