Sends the sparql query to the endpoint and format the results. Sends the sparql query to the endpoint and format the results. (Usually an internal function.)