sparqlGraphLibrary/src/main/java/com/ge/research/semtk/edc/client/OntologyInfoClient.java
public PredicateStats execGetCachedPredicateStats(SparqlConnection conn) throws ConnectException, EndpointNotFoundException, Exception {
		this.parametersJSON.put("conn", conn.toJson().toJSONString());
		conf.setServiceEndpoint("ontologyinfo/getCachedPredicateStats");
		
		try {
			SimpleResultSet res = this.executeWithSimpleResultReturn();
			res.throwExceptionIfUnsuccessful();
			if (res.getResult("cached").equals("none")) {
				return null;
			} else {
				JSONObject statsJson = res.getResultJSON("predicateStats");
				return new PredicateStats(statsJson);
			}
		} finally {
			// reset conf and parametersJSON
			this.parametersJSON.remove("conn");
			conf.setServiceEndpoint(null);
		}
	}
/**
	 * Gets predicate stats only if they are cached, else null
	 * @throws Exception
	 */
Gets predicate stats only if they are cached, else null
@throws Exception
Gets predicate stats only if they are cached else null @throws Exception
public PredicateStats execGetCachedPredicateStats(SparqlConnection conn) throws ConnectException, EndpointNotFoundException, Exception {
		this.parametersJSON.put("conn", conn.toJson().toJSONString());
		conf.setServiceEndpoint("ontologyinfo/getCachedPredicateStats");
		try {
			SimpleResultSet res = this.executeWithSimpleResultReturn();
			res.throwExceptionIfUnsuccessful();
			if (res.getResult("cached").equals("none")) {
				return null;
			} else {
				JSONObject statsJson = res.getResultJSON("predicateStats");
				return new PredicateStats(statsJson);
			}
		} finally {
			this.parametersJSON.remove("conn");
			conf.setServiceEndpoint(null);
		}
	}
public PredicateStats execGetCachedPredicateStats ( SparqlConnection conn ) throws ConnectException , EndpointNotFoundException , Exception { this . parametersJSON . put ( "conn" , conn . toJson ( ) . toJSONString ( ) ) ; conf . setServiceEndpoint ( "ontologyinfo/getCachedPredicateStats" ) ; try { SimpleResultSet res = this . executeWithSimpleResultReturn ( ) ; res . throwExceptionIfUnsuccessful ( ) ; if ( res . getResult ( "cached" ) . equals ( "none" ) ) { return null ; } else { JSONObject statsJson = res . getResultJSON ( "predicateStats" ) ; return new PredicateStats ( statsJson ) ; } } finally { this . parametersJSON . remove ( "conn" ) ; conf . setServiceEndpoint ( null ) ; } }
Gets predicate stats only if they are cached, else null
 @throws Exception
Gets predicate stats only if they are cached else null @throws Exception
// reset conf and parametersJSON