|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object uk.ac.ebi.microarray.zooma.retrieval.EFOOntocatRetriever
public class EFOOntocatRetriever
An ontology term retriever that utilises the ontocat API to retrieve terms from EFO. EFO is loaded by using the "efo" URI supplied in the zooma-uris.properties file. This class utilises ontocat search algorithms to match values to terms.
Constructor Summary | |
---|---|
EFOOntocatRetriever()
|
Method Summary | |
---|---|
java.util.Collection<OntologyMappingContext> |
fetchMappingContexts(Value value,
uk.ac.ebi.ontocat.OntologyTerm term)
Fetch the contexts in which the given description is mapped to the given term, if any. |
java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> |
fetchTerms(Value value)
Fetch a collection of terms using the given description as a search parameter. |
protected java.util.Set<uk.ac.ebi.ontocat.OntologyTerm> |
getFetchedTerms()
A cached set of all terms previously fetched using this retriever |
protected uk.ac.ebi.ontocat.OntologyService |
getService()
A ontocat OntologyService that can be used to
retrieve EFO terms. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EFOOntocatRetriever()
Method Detail |
---|
protected uk.ac.ebi.ontocat.OntologyService getService()
OntologyService
that can be used to
retrieve EFO terms.
protected java.util.Set<uk.ac.ebi.ontocat.OntologyTerm> getFetchedTerms()
public java.util.Collection<uk.ac.ebi.ontocat.OntologyTerm> fetchTerms(Value value) throws java.io.IOException
OntologyTermRetriever
fetchTerms
in interface OntologyTermRetriever
value
- the text description to search for
OntologyTerm
s retrieved from the
repository
java.io.IOException
- if terms could not be fetched from the
underlying source.public java.util.Collection<OntologyMappingContext> fetchMappingContexts(Value value, uk.ac.ebi.ontocat.OntologyTerm term) throws java.io.IOException
OntologyTermRetriever
fetchMappingContexts
in interface OntologyTermRetriever
value
- the original description used to retrieve the supplied termterm
- the term that is mapped to this description - usually,
retrieved by OntologyTermRetriever.fetchTerms(uk.ac.ebi.microarray.zooma.lang.Value)
first
java.io.IOException
- if context could not be fetched from the underlying
source
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |