sparqlGraphLibrary/src/main/java/com/ge/research/semtk/load/utility/SparqlGraphJson.java
public static Table executeSelectToTable(JSONObject sgJsonJson, SparqlConnection conn, OntologyInfoClient oInfoClient, String filterSparqlId, String filterOp, String filterVal) throws Exception {
		SparqlGraphJson sgjson = new SparqlGraphJson(sgJsonJson);
		sgjson.setSparqlConn(conn);
		
		// add filter clause
		NodeGroup ng = sgjson.getNodeGroupNoInflateNorValidate(oInfoClient);
		Returnable item = ng.getItemBySparqlID(filterSparqlId);
		if (item == null) {
			throw new Exception("Nodegroup does not contain item with SparqlID: " + filterSparqlId);
		}
		ValueConstraint vc = new ValueConstraint(ValueConstraint.buildFilterConstraint(item, filterOp, filterVal));
		item.setValueConstraint(vc);
	
		// run query
		String query = ng.generateSparqlSelect();
		return conn.getDefaultQueryInterface().executeQueryToTable(query);
	}
/**
	 * Execute a select query from a JSON representation of SparqlGraphJson and an override connection
	 * @param sgJsonJson
	 * @param conn - override and default query sei
	 * @return Table
	 * @throws Exception
	 */
Execute a select query from a JSON representation of SparqlGraphJson and an override connection
@param sgJsonJson
@param conn - override and default query sei
@return Table
@throws Exception
Execute a select query from a JSON representation of SparqlGraphJson and an override connection @param sgJsonJson @param conn - override and default query sei @return Table @throws Exception
public static Table executeSelectToTable(JSONObject sgJsonJson, SparqlConnection conn, OntologyInfoClient oInfoClient, String filterSparqlId, String filterOp, String filterVal) throws Exception {
		SparqlGraphJson sgjson = new SparqlGraphJson(sgJsonJson);
		sgjson.setSparqlConn(conn);
		NodeGroup ng = sgjson.getNodeGroupNoInflateNorValidate(oInfoClient);
		Returnable item = ng.getItemBySparqlID(filterSparqlId);
		if (item == null) {
			throw new Exception("Nodegroup does not contain item with SparqlID: " + filterSparqlId);
		}
		ValueConstraint vc = new ValueConstraint(ValueConstraint.buildFilterConstraint(item, filterOp, filterVal));
		item.setValueConstraint(vc);
		String query = ng.generateSparqlSelect();
		return conn.getDefaultQueryInterface().executeQueryToTable(query);
	}
public static Table executeSelectToTable ( JSONObject sgJsonJson , SparqlConnection conn , OntologyInfoClient oInfoClient , String filterSparqlId , String filterOp , String filterVal ) throws Exception { SparqlGraphJson sgjson = new SparqlGraphJson ( sgJsonJson ) ; sgjson . setSparqlConn ( conn ) ; NodeGroup ng = sgjson . getNodeGroupNoInflateNorValidate ( oInfoClient ) ; Returnable item = ng . getItemBySparqlID ( filterSparqlId ) ; if ( item == null ) { throw new Exception ( "Nodegroup does not contain item with SparqlID: " + filterSparqlId ) ; } ValueConstraint vc = new ValueConstraint ( ValueConstraint . buildFilterConstraint ( item , filterOp , filterVal ) ) ; item . setValueConstraint ( vc ) ; String query = ng . generateSparqlSelect ( ) ; return conn . getDefaultQueryInterface ( ) . executeQueryToTable ( query ) ; }
Execute a select query from a JSON representation of SparqlGraphJson and an override connection
 @param sgJsonJson
 @param conn - override and default query sei
 @return Table
 @throws Exception
Execute a select query from a JSON representation of SparqlGraphJson and an override connection @param sgJsonJson @param conn - override and default query sei @return Table @throws Exception
// add filter clause // run query