public void run() {

	HttpClient client = new HttpClient();
	client.getHostConfiguration().setHost(endpoint.getHost());

	for (int index = 0; index < sparql_queries.size(); index++) {

	    LOGGER.info("Posting " + sparql_queries.get(index).getName());

	    FileInputStream fis;
	    try {
		fis = new FileInputStream(sparql_queries.get(index));

		String query = IOUtils.toString(fis, "UTF-8");

		String params = "?query=" + URLEncoder.encode(query, "UTF-8");
		params += "&format="
			+ URLEncoder.encode("application/sparql-results+json",
				"UTF-8");

		String uri = endpoint.toString() + params;

		LOGGER.debug("MethodGet :" + uri);

		GetMethod method = new GetMethod(uri);
		client.executeMethod(method);

		BufferedReader br = new BufferedReader(new InputStreamReader(
			method.getResponseBodyAsStream()));
		String readLine;
		LOGGER.info("Response status:  " + method.getStatusCode());
		while (((readLine = br.readLine()) != null)) {
		    LOGGER.debug("  " + readLine);
		}
		method.releaseConnection();

	    } catch (FileNotFoundException e) {
		LOGGER.equals(e.getMessage());
	    } catch (HttpException e) {
		LOGGER.equals(e.getMessage());
	    } catch (IOException e) {
		LOGGER.equals(e.getMessage());
	    }

	}
    }