sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
private void addSubPropNames(String superPropertyName, ArrayList<OntologyClass> domainClasses, HashSet<String> set){
		
		// get list of candidate sub properties
		HashSet<String> subpropNames = this.subPropHash.get(superPropertyName);
		if (subpropNames != null) {
			for (String subName : subpropNames) {
				
				// if sub-property has domain in domainClasses, add it and it's sub props too
				for (OntologyClass domain : domainClasses) {
					if (domain.getProperty(subName) != null) {
						set.add(subName);
						this.addSubPropNames(subName, domainClasses, set);
						break;
					}
				}
			}
		}
	}
/**
	 * return a list of subclass names for a given class.
	 * if there are no known subclasses, an empty list is returned.
	 **/
return a list of subclass names for a given class.
if there are no known subclasses, an empty list is returned.
return a list of subclass names for a given class . if there are no known subclasses an empty list is returned .
private void addSubPropNames(String superPropertyName, ArrayList<OntologyClass> domainClasses, HashSet<String> set){
		HashSet<String> subpropNames = this.subPropHash.get(superPropertyName);
		if (subpropNames != null) {
			for (String subName : subpropNames) {
				for (OntologyClass domain : domainClasses) {
					if (domain.getProperty(subName) != null) {
						set.add(subName);
						this.addSubPropNames(subName, domainClasses, set);
						break;
					}
				}
			}
		}
	}
private void addSubPropNames ( String superPropertyName , ArrayList < OntologyClass > domainClasses , HashSet < String > set ) { HashSet < String > subpropNames = this . subPropHash . get ( superPropertyName ) ; if ( subpropNames != null ) { for ( String subName : subpropNames ) { for ( OntologyClass domain : domainClasses ) { if ( domain . getProperty ( subName ) != null ) { set . add ( subName ) ; this . addSubPropNames ( subName , domainClasses , set ) ; break ; } } } } }
return a list of subclass names for a given class.
return a list of subclass names for a given class .
// get list of candidate sub properties // if sub-property has domain in domainClasses, add it and it's sub props too