Package ubic.gemma.core.ontology
Class OntologyUtils
- java.lang.Object
-
- ubic.gemma.core.ontology.OntologyUtils
-
public class OntologyUtils extends Object
Utilities for working with ontologies.- Author:
- poirigui
-
-
Constructor Summary
Constructors Constructor Description OntologyUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
ensureInitialized(OntologyService service)
Ensure that a given ontology is initialized, force-loading it viaOntologyService.initialize(boolean, boolean)
if necessary.
-
-
-
Method Detail
-
ensureInitialized
public static void ensureInitialized(OntologyService service) throws InterruptedException
Ensure that a given ontology is initialized, force-loading it viaOntologyService.initialize(boolean, boolean)
if necessary.If the ontology was started via
OntologyService.startInitializationThread(boolean, boolean)
, this method will patiently wait until it completes.- Throws:
InterruptedException
- in case the ontology initialization thread is started, we will wait which implies a possible interrupt
-
-