sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/ImportSpec.java
public void deleteInvalidColumns(NodeGroup ng) throws Exception {
		JSONArray newCols = new JSONArray();
		for (int i=0; i < this.getNumColumns(); i++) {
			String colName = this.getColName(i);
			if (ng.getItemByBindingOrSparqlID(ImportSpec.colnameToSparqlID(colName)) != null) {
				newCols.add(this.getCol(i));
			}
		}
		this.json.put(JKEY_IS_COLUMNS, newCols);
	}
/**
	 * Delete import spec columns which are not nodegroup sparqlIds
	 * @param ng
	 * @throws Exception
	 */
Delete import spec columns which are not nodegroup sparqlIds
@param ng
@throws Exception
Delete import spec columns which are not nodegroup sparqlIds @param ng @throws Exception
public void deleteInvalidColumns(NodeGroup ng) throws Exception {
		JSONArray newCols = new JSONArray();
		for (int i=0; i < this.getNumColumns(); i++) {
			String colName = this.getColName(i);
			if (ng.getItemByBindingOrSparqlID(ImportSpec.colnameToSparqlID(colName)) != null) {
				newCols.add(this.getCol(i));
			}
		}
		this.json.put(JKEY_IS_COLUMNS, newCols);
	}
public void deleteInvalidColumns ( NodeGroup ng ) throws Exception { JSONArray newCols = new JSONArray ( ) ; for ( int i = 0 ; i < this . getNumColumns ( ) ; i ++ ) { String colName = this . getColName ( i ) ; if ( ng . getItemByBindingOrSparqlID ( ImportSpec . colnameToSparqlID ( colName ) ) != null ) { newCols . add ( this . getCol ( i ) ) ; } } this . json . put ( JKEY_IS_COLUMNS , newCols ) ; }
Delete import spec columns which are not nodegroup sparqlIds
 @param ng
 @throws Exception
Delete import spec columns which are not nodegroup sparqlIds @param ng @throws Exception