sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
private void loadOwlImports(SparqlQueryClient client, String [] imports) throws Exception {
		if (imports != null) {
			// for each import
			for (int i=0; i < imports.length; i++) {
				
				if (! this.importedGraphs.contains(imports[i])) {
					// create a client
					SparqlQueryAuthClientConfig importClientConfig = new SparqlQueryAuthClientConfig(client.getConfig());
					importClientConfig.setGraph(imports[i]);
					SparqlQueryClient importClient = new SparqlQueryClient(importClientConfig);
					
					// save current state
					int numClasses = this.getNumberOfClasses();
					int numEnums = this.getNumberOfEnum();
					int numProperties = this.getNumberOfProperties();
					
					// load
					this.load(importClient, imports[i]);
					this.importedGraphs.add(imports[i]);
					
					// check for changes
					if (numClasses == this.getNumberOfClasses() &&
					    numEnums == this.getNumberOfEnum() &&
					    numProperties == this.getNumberOfProperties()) {
						this.loadWarnings.add("Import graph has no ontology data or doesn't exist: " + imports[i]);
					}
				}
			}
		}
	}
/**
	 * Load owl imports if they aren't already loaded
	 * and add loadWarning if the graph is empty
	 * @param client
	 * @param imports
	 * @throws Exception
	 */
Load owl imports if they aren't already loaded
and add loadWarning if the graph is empty
@param client
@param imports
@throws Exception
Load owl imports if they aren ' t already loaded and add loadWarning if the graph is empty @param client @param imports @throws Exception
private void loadOwlImports(SparqlQueryClient client, String [] imports) throws Exception {
		if (imports != null) {
			for (int i=0; i < imports.length; i++) {
				if (! this.importedGraphs.contains(imports[i])) {
					SparqlQueryAuthClientConfig importClientConfig = new SparqlQueryAuthClientConfig(client.getConfig());
					importClientConfig.setGraph(imports[i]);
					SparqlQueryClient importClient = new SparqlQueryClient(importClientConfig);
					int numClasses = this.getNumberOfClasses();
					int numEnums = this.getNumberOfEnum();
					int numProperties = this.getNumberOfProperties();
					this.load(importClient, imports[i]);
					this.importedGraphs.add(imports[i]);
					if (numClasses == this.getNumberOfClasses() &&
					    numEnums == this.getNumberOfEnum() &&
					    numProperties == this.getNumberOfProperties()) {
						this.loadWarnings.add("Import graph has no ontology data or doesn't exist: " + imports[i]);
					}
				}
			}
		}
	}
private void loadOwlImports ( SparqlQueryClient client , String [ ] imports ) throws Exception { if ( imports != null ) { for ( int i = 0 ; i < imports . length ; i ++ ) { if ( ! this . importedGraphs . contains ( imports [ i ] ) ) { SparqlQueryAuthClientConfig importClientConfig = new SparqlQueryAuthClientConfig ( client . getConfig ( ) ) ; importClientConfig . setGraph ( imports [ i ] ) ; SparqlQueryClient importClient = new SparqlQueryClient ( importClientConfig ) ; int numClasses = this . getNumberOfClasses ( ) ; int numEnums = this . getNumberOfEnum ( ) ; int numProperties = this . getNumberOfProperties ( ) ; this . load ( importClient , imports [ i ] ) ; this . importedGraphs . add ( imports [ i ] ) ; if ( numClasses == this . getNumberOfClasses ( ) && numEnums == this . getNumberOfEnum ( ) && numProperties == this . getNumberOfProperties ( ) ) { this . loadWarnings . add ( "Import graph has no ontology data or doesn't exist: " + imports [ i ] ) ; } } } } }
Load owl imports if they aren't already loaded
 and add loadWarning if the graph is empty
 @param client
 @param imports
 @throws Exception
Load owl imports if they aren ' t already loaded and add loadWarning if the graph is empty @param client @param imports @throws Exception
// for each import // create a client // save current state // load // check for changes