sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
private void loadOwlImports(SparqlEndpointInterface sei, String [] imports) throws Exception {
		// for each import
		if (imports != null) {
			for (int i=0; i < imports.length; i++) {
				
				if (! this.importedGraphs.contains(imports[i])) {
					// create an sei
					SparqlEndpointInterface importSei = SparqlEndpointInterface.getInstance(
															sei.getServerType(),
															sei.getServerAndPort(),
															imports[i],
															sei.getUserName(),
															sei.getPassword()
															);
					
					// save state
					int numClasses = this.getNumberOfClasses();
					int numEnums = this.getNumberOfEnum();
					int numProperties = this.getNumberOfProperties();
					
					// load
					this.load(importSei, true);
					this.importedGraphs.add(imports[i]);
					
					// check for changes
					if (numClasses == this.getNumberOfClasses() &&
					    numEnums == this.getNumberOfEnum() &&
					    numProperties == this.getNumberOfProperties()) {
						this.loadWarnings.add(imports[i] + " - nothing to import");
					}
				}
			}
		}
	}
/**
	 * Load owl imports if they aren't already loaded
	 * and add loadWarning if the graph is empty
	 * @param sei
	 * @param imports
	 * @throws Exception
	 */
Load owl imports if they aren't already loaded
and add loadWarning if the graph is empty
@param sei
@param imports
@throws Exception
Load owl imports if they aren ' t already loaded and add loadWarning if the graph is empty @param sei @param imports @throws Exception
private void loadOwlImports(SparqlEndpointInterface sei, String [] imports) throws Exception {
		if (imports != null) {
			for (int i=0; i < imports.length; i++) {
				if (! this.importedGraphs.contains(imports[i])) {
					SparqlEndpointInterface importSei = SparqlEndpointInterface.getInstance(
															sei.getServerType(),
															sei.getServerAndPort(),
															imports[i],
															sei.getUserName(),
															sei.getPassword()
															);
					int numClasses = this.getNumberOfClasses();
					int numEnums = this.getNumberOfEnum();
					int numProperties = this.getNumberOfProperties();
					this.load(importSei, true);
					this.importedGraphs.add(imports[i]);
					if (numClasses == this.getNumberOfClasses() &&
					    numEnums == this.getNumberOfEnum() &&
					    numProperties == this.getNumberOfProperties()) {
						this.loadWarnings.add(imports[i] + " - nothing to import");
					}
				}
			}
		}
	}
private void loadOwlImports ( SparqlEndpointInterface sei , String [ ] imports ) throws Exception { if ( imports != null ) { for ( int i = 0 ; i < imports . length ; i ++ ) { if ( ! this . importedGraphs . contains ( imports [ i ] ) ) { SparqlEndpointInterface importSei = SparqlEndpointInterface . getInstance ( sei . getServerType ( ) , sei . getServerAndPort ( ) , imports [ i ] , sei . getUserName ( ) , sei . getPassword ( ) ) ; int numClasses = this . getNumberOfClasses ( ) ; int numEnums = this . getNumberOfEnum ( ) ; int numProperties = this . getNumberOfProperties ( ) ; this . load ( importSei , true ) ; this . importedGraphs . add ( imports [ i ] ) ; if ( numClasses == this . getNumberOfClasses ( ) && numEnums == this . getNumberOfEnum ( ) && numProperties == this . getNumberOfProperties ( ) ) { this . loadWarnings . add ( imports [ i ] + " - nothing to import" ) ; } } } } }
Load owl imports if they aren't already loaded
 and add loadWarning if the graph is empty
 @param sei
 @param imports
 @throws Exception
Load owl imports if they aren ' t already loaded and add loadWarning if the graph is empty @param sei @param imports @throws Exception
// for each import // create an sei // save state // load // check for changes