sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/LoadTracker.java
public void undoLoad(String fileKey) throws Exception {
		Table tab = this.query(fileKey, null, null, null, null);
		if (tab.getNumRows() != 1) {
			throw new Exception("found " + String.valueOf(tab.getNumRows()) + " loads associated with key: " + fileKey);
		}
		SparqlEndpointInterface sei = SparqlEndpointInterface.getInstance(
				tab.getCell(0, "serverType"), 
				tab.getCell(0, "seiServerAndPort"), 
				tab.getCell(0, "graphName"),
				this.dbUser, 
				this.dbPassword);
		
		sei.clearPrefix(buildBaseURI(fileKey));
		
		// track this
		int rows = DataLoader.loadFromCsvString(
				this.sgjson.toJson(), 
				this.buildCsvString("undo",fileKey, "", sei), 
				this.dbUser, 
				this.dbPassword, 
				true);
		
		if (rows != 1) {
			throw new Exception("LoadTracker ingest internal error: rows ingested != 1: " + String.valueOf(rows));
		}
	}
/**
	 * Delete any data from a load, provided it was loaded with overrideBaseURI "$TRACK_KEY"
	 * Also track this event.
	 * @param fileKey
	 * @throws Exception
	 */
Delete any data from a load, provided it was loaded with overrideBaseURI "$TRACK_KEY"
Also track this event.
@param fileKey
@throws Exception
Delete any data from a load provided it was loaded with overrideBaseURI " $TRACK_KEY " Also track this event . @param fileKey @throws Exception
public void undoLoad(String fileKey) throws Exception {
		Table tab = this.query(fileKey, null, null, null, null);
		if (tab.getNumRows() != 1) {
			throw new Exception("found " + String.valueOf(tab.getNumRows()) + " loads associated with key: " + fileKey);
		}
		SparqlEndpointInterface sei = SparqlEndpointInterface.getInstance(
				tab.getCell(0, "serverType"), 
				tab.getCell(0, "seiServerAndPort"), 
				tab.getCell(0, "graphName"),
				this.dbUser, 
				this.dbPassword);
		sei.clearPrefix(buildBaseURI(fileKey));
		int rows = DataLoader.loadFromCsvString(
				this.sgjson.toJson(), 
				this.buildCsvString("undo",fileKey, "", sei), 
				this.dbUser, 
				this.dbPassword, 
				true);
		if (rows != 1) {
			throw new Exception("LoadTracker ingest internal error: rows ingested != 1: " + String.valueOf(rows));
		}
	}
public void undoLoad ( String fileKey ) throws Exception { Table tab = this . query ( fileKey , null , null , null , null ) ; if ( tab . getNumRows ( ) != 1 ) { throw new Exception ( "found " + String . valueOf ( tab . getNumRows ( ) ) + " loads associated with key: " + fileKey ) ; } SparqlEndpointInterface sei = SparqlEndpointInterface . getInstance ( tab . getCell ( 0 , "serverType" ) , tab . getCell ( 0 , "seiServerAndPort" ) , tab . getCell ( 0 , "graphName" ) , this . dbUser , this . dbPassword ) ; sei . clearPrefix ( buildBaseURI ( fileKey ) ) ; int rows = DataLoader . loadFromCsvString ( this . sgjson . toJson ( ) , this . buildCsvString ( "undo" , fileKey , "" , sei ) , this . dbUser , this . dbPassword , true ) ; if ( rows != 1 ) { throw new Exception ( "LoadTracker ingest internal error: rows ingested != 1: " + String . valueOf ( rows ) ) ; } }
Delete any data from a load, provided it was loaded with overrideBaseURI "$TRACK_KEY"
 Also track this event.
Delete any data from a load provided it was loaded with overrideBaseURI " $TRACK_KEY " Also track this event .
// track this