connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlConnection.java
public void confirmSingleServerURL() throws Exception {
		String url = "";
		
		// check data interfaces
		for (int i=0; i < this.dataInterfaces.size(); i++) {
			String e =  this.dataInterfaces.get(i).getServerAndPort();
			if (url.equals("")) {
				url = e;
			} else if (! e.equals(url)) {
				throw new Exception("Connection has two different SPARQL endpoints: " + url + " and " + e);
			}
		}
		// check model interfaces
		for (int i=0; i < this.modelInterfaces.size(); i++) {
			String e =  this.modelInterfaces.get(i).getServerAndPort();
			if (url.equals("")) {
				url = e;
			} else if (! e.equals(url)) {
				throw new Exception("Connection has two different SPARQL endpoints: " + url + " and " + e);
			}
		}
		
		// if there are no serverURLs then false
		if (url.equals("")) {
			throw new Exception("Connection has no SPARQL endpoints: " + this.toString());
		} 
	}
/**
	 * Throw exception if connection contains multiple ServerURLs
	 * @return
	 */
Throw exception if connection contains multiple ServerURLs
@return
Throw exception if connection contains multiple ServerURLs @return
public void confirmSingleServerURL() throws Exception {
		String url = "";
		for (int i=0; i < this.dataInterfaces.size(); i++) {
			String e =  this.dataInterfaces.get(i).getServerAndPort();
			if (url.equals("")) {
				url = e;
			} else if (! e.equals(url)) {
				throw new Exception("Connection has two different SPARQL endpoints: " + url + " and " + e);
			}
		}
		for (int i=0; i < this.modelInterfaces.size(); i++) {
			String e =  this.modelInterfaces.get(i).getServerAndPort();
			if (url.equals("")) {
				url = e;
			} else if (! e.equals(url)) {
				throw new Exception("Connection has two different SPARQL endpoints: " + url + " and " + e);
			}
		}
		if (url.equals("")) {
			throw new Exception("Connection has no SPARQL endpoints: " + this.toString());
		} 
	}
public void confirmSingleServerURL ( ) throws Exception { String url = "" ; for ( int i = 0 ; i < this . dataInterfaces . size ( ) ; i ++ ) { String e = this . dataInterfaces . get ( i ) . getServerAndPort ( ) ; if ( url . equals ( "" ) ) { url = e ; } else if ( ! e . equals ( url ) ) { throw new Exception ( "Connection has two different SPARQL endpoints: " + url + " and " + e ) ; } } for ( int i = 0 ; i < this . modelInterfaces . size ( ) ; i ++ ) { String e = this . modelInterfaces . get ( i ) . getServerAndPort ( ) ; if ( url . equals ( "" ) ) { url = e ; } else if ( ! e . equals ( url ) ) { throw new Exception ( "Connection has two different SPARQL endpoints: " + url + " and " + e ) ; } } if ( url . equals ( "" ) ) { throw new Exception ( "Connection has no SPARQL endpoints: " + this . toString ( ) ) ; } }
Throw exception if connection contains multiple ServerURLs
 @return
Throw exception if connection contains multiple ServerURLs @return
// check data interfaces // check model interfaces // if there are no serverURLs then false