Added proper handling of a select query vs a construct query in the SPARQL controller.