connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/FusekiSparqlEndpointInterface.java
@Override
	protected void addParams(HttpPost httppost, String query, SparqlResultTypes resultType) throws Exception {
		// add params
		List<NameValuePair> params = new ArrayList<NameValuePair>(3);
		
		// if (this.password == null) {
		if (resultType == SparqlResultTypes.TABLE || resultType == SparqlResultTypes.GRAPH_JSONLD || resultType == SparqlResultTypes.RDF) { 
			params.add(new BasicNameValuePair("query", query));
		} else {
			params.add(new BasicNameValuePair("update", query));
		}
		params.add(new BasicNameValuePair("format", this.getContentType(resultType)));
		

		// timeout 
		if (this.getTimeoutPostParamName() != null && this.getTimeoutPostParamValue() != null) {
			LocalLogger.logToStdErr("timeout header: " + this.getTimeoutPostParamName() + "=" + this.getTimeoutPostParamValue());
			params.add(new BasicNameValuePair(this.getTimeoutPostParamName(), this.getTimeoutPostParamValue()));
		}
		
		// set entity
		httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
	}
/**
	 * Fuseki uses different param names for "auth" queries, which Fuseki calls "update"
	 */
Fuseki uses different param names for "auth" queries, which Fuseki calls "update"
Fuseki uses different param names for " auth " queries which Fuseki calls " update "
@Override
	protected void addParams(HttpPost httppost, String query, SparqlResultTypes resultType) throws Exception {
		List<NameValuePair> params = new ArrayList<NameValuePair>(3);
		if (resultType == SparqlResultTypes.TABLE || resultType == SparqlResultTypes.GRAPH_JSONLD || resultType == SparqlResultTypes.RDF) { 
			params.add(new BasicNameValuePair("query", query));
		} else {
			params.add(new BasicNameValuePair("update", query));
		}
		params.add(new BasicNameValuePair("format", this.getContentType(resultType)));
		if (this.getTimeoutPostParamName() != null && this.getTimeoutPostParamValue() != null) {
			LocalLogger.logToStdErr("timeout header: " + this.getTimeoutPostParamName() + "=" + this.getTimeoutPostParamValue());
			params.add(new BasicNameValuePair(this.getTimeoutPostParamName(), this.getTimeoutPostParamValue()));
		}
		httppost.setEntity(new UrlEncodedFormEntity(params, "UTF-8"));
	}
@ Override protected void addParams ( HttpPost httppost , String query , SparqlResultTypes resultType ) throws Exception { List < NameValuePair > params = new ArrayList < NameValuePair > ( 3 ) ; if ( resultType == SparqlResultTypes . TABLE || resultType == SparqlResultTypes . GRAPH_JSONLD || resultType == SparqlResultTypes . RDF ) { params . add ( new BasicNameValuePair ( "query" , query ) ) ; } else { params . add ( new BasicNameValuePair ( "update" , query ) ) ; } params . add ( new BasicNameValuePair ( "format" , this . getContentType ( resultType ) ) ) ; if ( this . getTimeoutPostParamName ( ) != null && this . getTimeoutPostParamValue ( ) != null ) { LocalLogger . logToStdErr ( "timeout header: " + this . getTimeoutPostParamName ( ) + "=" + this . getTimeoutPostParamValue ( ) ) ; params . add ( new BasicNameValuePair ( this . getTimeoutPostParamName ( ) , this . getTimeoutPostParamValue ( ) ) ) ; } httppost . setEntity ( new UrlEncodedFormEntity ( params , "UTF-8" ) ) ; }
Fuseki uses different param names for "auth" queries, which Fuseki calls "update"
Fuseki uses different param names for " auth " queries which Fuseki calls " update "
// add params // if (this.password == null) { // timeout  // set entity