sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
public HashSet<String> inferSubPropertyNames(String superPropertyName, String domainClassURI) {
		HashSet<String> ret = new HashSet<String>();
		
		// get list of domainURI class and all it's super classes
		ArrayList<OntologyClass> domainClasses = new ArrayList<OntologyClass>();
		domainClasses.add(this.classHash.get(domainClassURI));
		for (String domainSuperName : this.getSuperclassNames(domainClassURI)) {
			domainClasses.add(this.classHash.get(domainSuperName));
		}
		for (String domainSubName : this.getSubclassNames(domainClassURI)) {
			domainClasses.add(this.classHash.get(domainSubName));
		}
		
		this.addSubPropNames(superPropertyName, domainClasses, ret);
		return ret;
	}
/**
	 * Get sub properties given valid for all super and sub properties of the domain class URI.
	 * @param superPropertyName
	 * @param domainClassURI
	 * @return
	 */
Get sub properties given valid for all super and sub properties of the domain class URI.
Get sub properties given valid for all super and sub properties of the domain class URI .
public HashSet<String> inferSubPropertyNames(String superPropertyName, String domainClassURI) {
		HashSet<String> ret = new HashSet<String>();
		ArrayList<OntologyClass> domainClasses = new ArrayList<OntologyClass>();
		domainClasses.add(this.classHash.get(domainClassURI));
		for (String domainSuperName : this.getSuperclassNames(domainClassURI)) {
			domainClasses.add(this.classHash.get(domainSuperName));
		}
		for (String domainSubName : this.getSubclassNames(domainClassURI)) {
			domainClasses.add(this.classHash.get(domainSubName));
		}
		this.addSubPropNames(superPropertyName, domainClasses, ret);
		return ret;
	}
public HashSet < String > inferSubPropertyNames ( String superPropertyName , String domainClassURI ) { HashSet < String > ret = new HashSet < String > ( ) ; ArrayList < OntologyClass > domainClasses = new ArrayList < OntologyClass > ( ) ; domainClasses . add ( this . classHash . get ( domainClassURI ) ) ; for ( String domainSuperName : this . getSuperclassNames ( domainClassURI ) ) { domainClasses . add ( this . classHash . get ( domainSuperName ) ) ; } for ( String domainSubName : this . getSubclassNames ( domainClassURI ) ) { domainClasses . add ( this . classHash . get ( domainSubName ) ) ; } this . addSubPropNames ( superPropertyName , domainClasses , ret ) ; return ret ; }
Get sub properties given valid for all super and sub properties of the domain class URI.
Get sub properties given valid for all super and sub properties of the domain class URI .
// get list of domainURI class and all it's super classes