connectionUtils/src/main/java/com/ge/research/semtk/sparqlX/SparqlToXUtils.java
public static void validateSparqlInsertQuery(String query, String[] blockedWords) throws IOException{
		for (String i : blockedWords){
			if (query.contains(i)){
				// throw an exception
				throw new IOException("Incoming query contains blocked word " + i);
			}
		}
	}
// check that the passed SPARQL query does not contain blocked words (e.g. to disallow freeform DELETE queries)
check that the passed SPARQL query does not contain blocked words
check that the passed SPARQL query does not contain blocked words
public static void validateSparqlInsertQuery(String query, String[] blockedWords) throws IOException{
		for (String i : blockedWords){
			if (query.contains(i)){
				throw new IOException("Incoming query contains blocked word " + i);
			}
		}
	}
public static void validateSparqlInsertQuery ( String query , String [ ] blockedWords ) throws IOException { for ( String i : blockedWords ) { if ( query . contains ( i ) ) { throw new IOException ( "Incoming query contains blocked word " + i ) ; } } }
check that the passed SPARQL query does not contain blocked words (e.g.
check that the passed SPARQL query does not contain blocked words ( e . g .
// throw an exception