sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
private boolean pathHasInstance(OntologyPath path, SparqlConnection conn) throws Exception {
		LocalLogger.logToStdOut(path.asString());

		LocalLogger.logToStdOut("==> " + "Path");
		// path doesn't connect, check it alone
		NodeGroup pathNg = new NodeGroup();
		pathNg.setSparqlConnection(conn);
		Node anchor = pathNg.addNode(path.getEndClassName(), this);
		Node nodeAdded = pathNg.addPath(path, anchor, this);
		return this.ngHasInstance(pathNg, nodeAdded, conn);
		
	}
/** 
	 * Does a path have any instance data in conn.
	 * Runs directly without any other services.
	 * TODO potential time-out issue?
	 * @param ng - potentially linked to end of path.  
	 * @param anchorNode
	 * @param oInfo
	 * @param path
	 * @param conn
	 * @return
	 * @throws Exception
	 */
Does a path have any instance data in conn.
Runs directly without any other services.
TODO potential time-out issue.
@param ng - potentially linked to end of path.
Does a path have any instance data in conn . Runs directly without any other services . TODO potential time - out issue . @param ng - potentially linked to end of path .
private boolean pathHasInstance(OntologyPath path, SparqlConnection conn) throws Exception {
		LocalLogger.logToStdOut(path.asString());
		LocalLogger.logToStdOut("==> " + "Path");
		NodeGroup pathNg = new NodeGroup();
		pathNg.setSparqlConnection(conn);
		Node anchor = pathNg.addNode(path.getEndClassName(), this);
		Node nodeAdded = pathNg.addPath(path, anchor, this);
		return this.ngHasInstance(pathNg, nodeAdded, conn);
	}
private boolean pathHasInstance ( OntologyPath path , SparqlConnection conn ) throws Exception { LocalLogger . logToStdOut ( path . asString ( ) ) ; LocalLogger . logToStdOut ( "==> " + "Path" ) ; NodeGroup pathNg = new NodeGroup ( ) ; pathNg . setSparqlConnection ( conn ) ; Node anchor = pathNg . addNode ( path . getEndClassName ( ) , this ) ; Node nodeAdded = pathNg . addPath ( path , anchor , this ) ; return this . ngHasInstance ( pathNg , nodeAdded , conn ) ; }
Does a path have any instance data in conn.
Does a path have any instance data in conn .
// path doesn't connect, check it alone