sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
public void validate() throws Exception {
		
		// Superclass names must be valid
		for (String className : this.classHash.keySet()) {
			OntologyClass c = this.classHash.get(className);
			for (String superClassName : c.getParentNameStrings(false)) {
				if (! this.classHash.containsKey(superClassName)) {
					throw new Exception("Can't find class" + superClassName + " (superclass of " + className + ") in the ontology");
				}
			}
		}
		
		// check for orphaned properties not resolved by subProp query
		for (String orphan : this.orphanProps.keySet()) {
			this.loadWarnings.add("Property has no domain: " + orphan);
		}
		
		// Note: Range names don't necessarily need to be valid.  As long as they aren't used.
	}
/**
	 * Check validity of the OntologyInfo
	 * @throws Exception
	 */
Check validity of the OntologyInfo
@throws Exception
Check validity of the OntologyInfo @throws Exception
public void validate() throws Exception {
		for (String className : this.classHash.keySet()) {
			OntologyClass c = this.classHash.get(className);
			for (String superClassName : c.getParentNameStrings(false)) {
				if (! this.classHash.containsKey(superClassName)) {
					throw new Exception("Can't find class" + superClassName + " (superclass of " + className + ") in the ontology");
				}
			}
		}
		for (String orphan : this.orphanProps.keySet()) {
			this.loadWarnings.add("Property has no domain: " + orphan);
		}
	}
public void validate ( ) throws Exception { for ( String className : this . classHash . keySet ( ) ) { OntologyClass c = this . classHash . get ( className ) ; for ( String superClassName : c . getParentNameStrings ( false ) ) { if ( ! this . classHash . containsKey ( superClassName ) ) { throw new Exception ( "Can't find class" + superClassName + " (superclass of " + className + ") in the ontology" ) ; } } } for ( String orphan : this . orphanProps . keySet ( ) ) { this . loadWarnings . add ( "Property has no domain: " + orphan ) ; } }
Check validity of the OntologyInfo
 @throws Exception
Check validity of the OntologyInfo @throws Exception
// Superclass names must be valid // check for orphaned properties not resolved by subProp query // Note: Range names don't necessarily need to be valid.  As long as they aren't used.