sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
public void loadSuperSubClasses(String xList[], String yList[]) throws Exception{

		HashMap<String, OntologyClass> tempClasses = new HashMap<String, OntologyClass>();
				
		for (int i=0; i < xList.length; i++) {
			// check for the existence of the current class. 
			if(!tempClasses.containsKey(xList[i])){
				OntologyClass c = new OntologyClass(xList[i], null);
				tempClasses.put(xList[i], c);
			}
			// get the current class and add the parent.
			OntologyClass c = tempClasses.get(xList[i]);
			c.addParentName(yList[i]);
		}

		// call addClass() on the temp list.
		for(String keyName : tempClasses.keySet()){
			OntologyClass oClass = tempClasses.get(keyName);
			this.addClass(oClass);
		}
		
	}
/**
	 * process the results of the query to get all of the sub- and super-class query and loads
	 * them into the OntologyInfo object.
	 **/
process the results of the query to get all of the sub- and super-class query and loads
them into the OntologyInfo object.
process the results of the query to get all of the sub - and super - class query and loads them into the OntologyInfo object .
public void loadSuperSubClasses(String xList[], String yList[]) throws Exception{
		HashMap<String, OntologyClass> tempClasses = new HashMap<String, OntologyClass>();
		for (int i=0; i < xList.length; i++) {
			if(!tempClasses.containsKey(xList[i])){
				OntologyClass c = new OntologyClass(xList[i], null);
				tempClasses.put(xList[i], c);
			}
			OntologyClass c = tempClasses.get(xList[i]);
			c.addParentName(yList[i]);
		}
		for(String keyName : tempClasses.keySet()){
			OntologyClass oClass = tempClasses.get(keyName);
			this.addClass(oClass);
		}
	}
public void loadSuperSubClasses ( String xList [ ] , String yList [ ] ) throws Exception { HashMap < String , OntologyClass > tempClasses = new HashMap < String , OntologyClass > ( ) ; for ( int i = 0 ; i < xList . length ; i ++ ) { if ( ! tempClasses . containsKey ( xList [ i ] ) ) { OntologyClass c = new OntologyClass ( xList [ i ] , null ) ; tempClasses . put ( xList [ i ] , c ) ; } OntologyClass c = tempClasses . get ( xList [ i ] ) ; c . addParentName ( yList [ i ] ) ; } for ( String keyName : tempClasses . keySet ( ) ) { OntologyClass oClass = tempClasses . get ( keyName ) ; this . addClass ( oClass ) ; } }
process the results of the query to get all of the sub- and super-class query and loads
 them into the OntologyInfo object.
process the results of the query to get all of the sub - and super - class query and loads them into the OntologyInfo object .
// check for the existence of the current class.  // get the current class and add the parent. // call addClass() on the temp list.