Updated to run sparql queries using executeSparqlQuery rather than accessing the sparql endpoint over the network.