|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectphenote.dataadapter.OntologyDataAdapter2
public class OntologyDataAdapter2
is this really a data adapter? - OntologyLoader? this isnt a data adapter it doesnt load & commit character data - just loads ontologies. rename OntologyLoader for now can stay in dataadapter package this is specifically a OboFileLoader - other kinds of ontology loading may com along i'm working on refactoring this to work with the new terminology definitions
| Method Summary | |
|---|---|
boolean |
checkForLocalFileExists(phenote.config.xml.OntologyFileDocument.OntologyFile ontology)
|
boolean |
checkForLocalFileExists(java.lang.String filename)
|
boolean |
checkForUpdate(phenote.config.xml.OntologyFileDocument.OntologyFile ontologyFile)
|
boolean |
copyOntologyToDotPhenote(java.net.URL localUrl,
java.lang.String filename)
|
void |
downloadUpdate(java.lang.String ontology)
|
static OntologyDataAdapter2 |
getInstance()
synchronized so cant reload an ontology while ontologies are being initialized getInstance calls initOntologies - in other words you have to call getInstance to initialize the ontologies |
java.net.URL |
getLocalFile(java.lang.String handle)
|
long |
getOboDate(java.net.URL oboUrl)
|
static void |
initialize()
just calls getInstance - but more intuitive for initialization |
void |
initOntologies()
|
void |
initOntologies(boolean updateAll)
|
void |
reloadOntologies()
The ontology has been determined to be out of date (by quartz) and thus directed to reload itself from its file - in other words there is a new obo file to load in place of old one |
static void |
reset()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static OntologyDataAdapter2 getInstance()
public static void reset()
public static void initialize()
public void initOntologies()
public void initOntologies(boolean updateAll)
public long getOboDate(java.net.URL oboUrl)
throws OntologyException
OntologyException
public void reloadOntologies()
throws OntologyException
OntologyException
public boolean checkForUpdate(phenote.config.xml.OntologyFileDocument.OntologyFile ontologyFile)
throws OntologyException
OntologyException
public void downloadUpdate(java.lang.String ontology)
throws OntologyException
OntologyException
public java.net.URL getLocalFile(java.lang.String handle)
throws OntologyException
OntologyExceptionpublic boolean checkForLocalFileExists(phenote.config.xml.OntologyFileDocument.OntologyFile ontology)
public boolean checkForLocalFileExists(java.lang.String filename)
public boolean copyOntologyToDotPhenote(java.net.URL localUrl,
java.lang.String filename)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||