connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlToXUtils.java
public static void validateSparqlQuery(String query, String[] requiredCols) throws IOException {
		
		for (String i : requiredCols){
			if (!query.contains('?'+i)){
				// throw an exception
				throw new IOException("Incoming query missing required field " + i);
			}
		}
	}
// check that the passed Sparql query references the appropriate manadate columns in the return.
check that the passed Sparql query references the appropriate manadate columns in the return.
check that the passed Sparql query references the appropriate manadate columns in the return .
public static void validateSparqlQuery(String query, String[] requiredCols) throws IOException {
		for (String i : requiredCols){
			if (!query.contains('?'+i)){
				throw new IOException("Incoming query missing required field " + i);
			}
		}
	}
public static void validateSparqlQuery ( String query , String [ ] requiredCols ) throws IOException { for ( String i : requiredCols ) { if ( ! query . contains ( '?' + i ) ) { throw new IOException ( "Incoming query missing required field " + i ) ; } } }
check that the passed Sparql query references the appropriate manadate columns in the return.
check that the passed Sparql query references the appropriate manadate columns in the return .
// throw an exception