Class BiolarkTermMiner
java.lang.Object
org.monarchinitiative.hpotextmining.core.miners.biolark.BiolarkTermMiner
- All Implemented Interfaces:
TermMiner
This
TermMiner uses Biolark web API to discover positions of HPO terms within provided query.
WarningThis Miner might not be working properly at the moment since the Biolark API is not running. Use
SciGraphTermMiner instead
- Since:
- 0.2
- Version:
- 0.2.1
- Author:
- Daniel Danis
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
BiolarkTermMiner
-
BiolarkTermMiner
- Throws:
IOException
-
-
Method Details
-
doMining
Performs mining of the provided text using Biolark service;queryString is sent to the Biolark API and the Thread is blocked until a JSON response is received. The response is then decoded intoMinedTerms.- Specified by:
doMiningin interfaceTermMiner- Parameters:
query- String with text to be mined for HPO terms- Returns:
SetofMinedTerms representing identified HPO terms. The set is empty, if I/O error occurs or if URL/query are invalid- Throws:
TermMinerException- if there is any problem with HPO mining
-