connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlEndpointInterface.java
private JSONObject executeQueryAuthGet(String queryAndUrl, SparqlResultTypes resultType) throws Exception{
		AuthorizationManager.authorizeQuery(this, queryAndUrl);
		
		// buid resultsFormat
		String resultsFormat = null;
		if(resultType == null){
			resultsFormat = this.getContentType(getDefaultResultType());
		} else {
			resultsFormat = this.getContentType(resultType);
		}
		
		HttpHost targetHost = this.buildHttpHost();
		HttpClient httpclient = this.buildHttpClient(targetHost.getSchemeName());
		BasicHttpContext localcontext = this.buildHttpContext(targetHost);

		LocalLogger.logToStdErr(queryAndUrl);
		
		HttpGet httpget = new HttpGet(queryAndUrl);
		httpget.addHeader("Accept", resultsFormat);
		
		LocalLogger.logToStdOut("executing request" + httpget.getRequestLine());

		//        String responseTxt = httpclient.execute(httpget, responseHandler);
		HttpResponse response_http = httpclient.execute(targetHost, httpget, localcontext);
		
		HttpEntity entity = response_http.getEntity();
		String responseTxt = EntityUtils.toString(entity, "UTF-8");

		// parse the response
		try {
			return this.parseResponse(resultType, responseTxt);
		} finally {
			EntityUtils.consume(entity);
		}
	}
/**
	 * Execute an auth query using GET (use should be rare - in cases where POST is not supported)
	 * See "internal use" note
	 * @return a JSONObject wrapping the results. in the event the results were tabular, they can be obtained in the JsonArray "@Table". if the results were a graph, use "@Graph" for json-ld
	 * @throws Exception
	 */
Execute an auth query using GET (use should be rare - in cases where POST is not supported)
See "internal use" note
@return a JSONObject wrapping the results. in the event the results were tabular, they can be obtained in the JsonArray "@Table". if the results were a graph, use "@Graph" for json-ld
@throws Exception
Execute an auth query using GET ( use should be rare - in cases where POST is not supported ) See " internal use " note @return a JSONObject wrapping the results . in the event the results were tabular they can be obtained in the JsonArray " @Table " . if the results were a graph use " @Graph " for json - ld @throws Exception
private JSONObject executeQueryAuthGet(String queryAndUrl, SparqlResultTypes resultType) throws Exception{
		AuthorizationManager.authorizeQuery(this, queryAndUrl);
		String resultsFormat = null;
		if(resultType == null){
			resultsFormat = this.getContentType(getDefaultResultType());
		} else {
			resultsFormat = this.getContentType(resultType);
		}
		HttpHost targetHost = this.buildHttpHost();
		HttpClient httpclient = this.buildHttpClient(targetHost.getSchemeName());
		BasicHttpContext localcontext = this.buildHttpContext(targetHost);
		LocalLogger.logToStdErr(queryAndUrl);
		HttpGet httpget = new HttpGet(queryAndUrl);
		httpget.addHeader("Accept", resultsFormat);
		LocalLogger.logToStdOut("executing request" + httpget.getRequestLine());
		HttpResponse response_http = httpclient.execute(targetHost, httpget, localcontext);
		HttpEntity entity = response_http.getEntity();
		String responseTxt = EntityUtils.toString(entity, "UTF-8");
		try {
			return this.parseResponse(resultType, responseTxt);
		} finally {
			EntityUtils.consume(entity);
		}
	}
private JSONObject executeQueryAuthGet ( String queryAndUrl , SparqlResultTypes resultType ) throws Exception { AuthorizationManager . authorizeQuery ( this , queryAndUrl ) ; String resultsFormat = null ; if ( resultType == null ) { resultsFormat = this . getContentType ( getDefaultResultType ( ) ) ; } else { resultsFormat = this . getContentType ( resultType ) ; } HttpHost targetHost = this . buildHttpHost ( ) ; HttpClient httpclient = this . buildHttpClient ( targetHost . getSchemeName ( ) ) ; BasicHttpContext localcontext = this . buildHttpContext ( targetHost ) ; LocalLogger . logToStdErr ( queryAndUrl ) ; HttpGet httpget = new HttpGet ( queryAndUrl ) ; httpget . addHeader ( "Accept" , resultsFormat ) ; LocalLogger . logToStdOut ( "executing request" + httpget . getRequestLine ( ) ) ; HttpResponse response_http = httpclient . execute ( targetHost , httpget , localcontext ) ; HttpEntity entity = response_http . getEntity ( ) ; String responseTxt = EntityUtils . toString ( entity , "UTF-8" ) ; try { return this . parseResponse ( resultType , responseTxt ) ; } finally { EntityUtils . consume ( entity ) ; } }
Execute an auth query using GET (use should be rare - in cases where POST is not supported)
 See "internal use" note
 @return a JSONObject wrapping the results.
Execute an auth query using GET ( use should be rare - in cases where POST is not supported ) See " internal use " note @return a JSONObject wrapping the results .
// buid resultsFormat //        String responseTxt = httpclient.execute(httpget, responseHandler); // parse the response