Class HpoTextMining.HpoTextMiningBuilder
java.lang.Object
org.monarchinitiative.hpotextmining.gui.controller.HpoTextMining.HpoTextMiningBuilder
- Enclosing class:
- HpoTextMining
-
Method Summary
Modifier and TypeMethodDescriptionbuild()withBiolarkUrl(URL biolarkServerUrl)withExecutorService(ExecutorService executorService)withOntology(org.monarchinitiative.phenol.ontology.data.Ontology ontology)withPhenotypeTerms(Set<Main.PhenotypeTerm> terms)withSciGraphUrl(URL sciGraphServerUrl)withTermMiner(TermMiner miner)
-
Method Details
-
withOntology
public HpoTextMining.HpoTextMiningBuilder withOntology(org.monarchinitiative.phenol.ontology.data.Ontology ontology)- Parameters:
ontology-Ontologyto work with (mandatory)- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
withBiolarkUrl
- Parameters:
biolarkServerUrl-URLpointing to Biolark server instance where the text mining should be performed. SciGraph URL has precedence- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
withSciGraphUrl
- Parameters:
sciGraphServerUrl-URLpointing to SciGraph server instance where the text mining should be performed. SciGraph URL has precedence over Biolark URL- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
withTermMiner
- Parameters:
miner-TermMinerto use for the text mining analysis. The miner has precedence over any URL (SciGraph, Biolark, etc..)- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
withExecutorService
- Parameters:
executorService-ExecutorServiceto be used for asynchronous tasks (optional)- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
withPhenotypeTerms
- Parameters:
terms-Setof terms to display in the widget from the beginning- Returns:
- this
HpoTextMining.HpoTextMiningBuilderinstance
-
build
- Returns:
- a new
HpoTextMininginstance - Throws:
IOException- in case if the building fails
-