sparqlGraphLibrary/src/main/java/com/ge/research/semtk/test/TestGraph.java
public static void syncOwlToItsGraph(String owlFilename) throws Exception {
		
		String base = Utility.getXmlBaseFromOwlRdf(new FileInputStream(owlFilename));
		
		SparqlEndpointInterface sei = getSei();
		
		sei.setGraph(base);
		sei.clearGraph();
		
		Path path = Paths.get(owlFilename);
		byte[] owl = Files.readAllBytes(path);
		SimpleResultSet resultSet = SimpleResultSet.fromJson(sei.executeAuthUploadOwl(owl));
		if (!resultSet.getSuccess()) {
			throw new Exception(resultSet.getRationaleAsString(" "));
		}
	}
/**
	 * Find graph from inside the owl/rdf
	 * Clear the graph and load the owl
	 * @param owlFilename
	 * @throws Exception
	 */
Find graph from inside the owl/rdf
Clear the graph and load the owl
@param owlFilename
@throws Exception
Find graph from inside the owl / rdf Clear the graph and load the owl @param owlFilename @throws Exception
public static void syncOwlToItsGraph(String owlFilename) throws Exception {
		String base = Utility.getXmlBaseFromOwlRdf(new FileInputStream(owlFilename));
		SparqlEndpointInterface sei = getSei();
		sei.setGraph(base);
		sei.clearGraph();
		Path path = Paths.get(owlFilename);
		byte[] owl = Files.readAllBytes(path);
		SimpleResultSet resultSet = SimpleResultSet.fromJson(sei.executeAuthUploadOwl(owl));
		if (!resultSet.getSuccess()) {
			throw new Exception(resultSet.getRationaleAsString(" "));
		}
	}
public static void syncOwlToItsGraph ( String owlFilename ) throws Exception { String base = Utility . getXmlBaseFromOwlRdf ( new FileInputStream ( owlFilename ) ) ; SparqlEndpointInterface sei = getSei ( ) ; sei . setGraph ( base ) ; sei . clearGraph ( ) ; Path path = Paths . get ( owlFilename ) ; byte [ ] owl = Files . readAllBytes ( path ) ; SimpleResultSet resultSet = SimpleResultSet . fromJson ( sei . executeAuthUploadOwl ( owl ) ) ; if ( ! resultSet . getSuccess ( ) ) { throw new Exception ( resultSet . getRationaleAsString ( " " ) ) ; } }
Find graph from inside the owl/rdf
 Clear the graph and load the owl
 @param owlFilename
 @throws Exception
Find graph from inside the owl / rdf Clear the graph and load the owl @param owlFilename @throws Exception