sparqlGraphLibrary/src/main/java/com/ge/research/semtk/ontologyTools/OntologyInfo.java
public static boolean uploadOwlModelIfNeeded(SparqlEndpointInterface sei, InputStream owlInputStream) throws Exception {
		
		OntologyInfo oInfo = new OntologyInfo(new SparqlConnection("name", sei));

		byte [] owl = IOUtils.toByteArray(owlInputStream);

		if (! oInfo.containsClassWithBase(new ByteArrayInputStream(owl))) {
			JSONObject retJson = sei.executeAuthUploadOwl(owl);
			SimpleResultSet res = SimpleResultSet.fromJson(retJson);
			res.throwExceptionIfUnsuccessful();
			return true;
		}
		return false;
	}
/**
	 * Checks an sei to see if any version of the owl in owlInputStream is loaded
	 * (any class with the base specified in the owl)
	 * If owl is not loaded to the sei, then load it
	 * See "internal use" note
	 * @param sei
	 * @param owlInputStream
	 * @return True if load occurred, False if it wasn't needed
	 * @throws Exception otherwise
	 */
Checks an sei to see if any version of the owl in owlInputStream is loaded
(any class with the base specified in the owl)
If owl is not loaded to the sei, then load it
See "internal use" note
@param sei
@param owlInputStream
@return True if load occurred, False if it wasn't needed
@throws Exception otherwise
Checks an sei to see if any version of the owl in owlInputStream is loaded ( any class with the base specified in the owl ) If owl is not loaded to the sei then load it See " internal use " note @param sei @param owlInputStream @return True if load occurred False if it wasn ' t needed @throws Exception otherwise
public static boolean uploadOwlModelIfNeeded(SparqlEndpointInterface sei, InputStream owlInputStream) throws Exception {
		OntologyInfo oInfo = new OntologyInfo(new SparqlConnection("name", sei));
		byte [] owl = IOUtils.toByteArray(owlInputStream);
		if (! oInfo.containsClassWithBase(new ByteArrayInputStream(owl))) {
			JSONObject retJson = sei.executeAuthUploadOwl(owl);
			SimpleResultSet res = SimpleResultSet.fromJson(retJson);
			res.throwExceptionIfUnsuccessful();
			return true;
		}
		return false;
	}
public static boolean uploadOwlModelIfNeeded ( SparqlEndpointInterface sei , InputStream owlInputStream ) throws Exception { OntologyInfo oInfo = new OntologyInfo ( new SparqlConnection ( "name" , sei ) ) ; byte [ ] owl = IOUtils . toByteArray ( owlInputStream ) ; if ( ! oInfo . containsClassWithBase ( new ByteArrayInputStream ( owl ) ) ) { JSONObject retJson = sei . executeAuthUploadOwl ( owl ) ; SimpleResultSet res = SimpleResultSet . fromJson ( retJson ) ; res . throwExceptionIfUnsuccessful ( ) ; return true ; } return false ; }
Checks an sei to see if any version of the owl in owlInputStream is loaded
 (any class with the base specified in the owl)
 If owl is not loaded to the sei, then load it
 See "internal use" note
 @param sei
 @param owlInputStream
 @return True if load occurred, False if it wasn't needed
 @throws Exception otherwise
Checks an sei to see if any version of the owl in owlInputStream is loaded ( any class with the base specified in the owl ) If owl is not loaded to the sei then load it See " internal use " note @param sei @param owlInputStream @return True if load occurred False if it wasn ' t needed @throws Exception otherwise