|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.lang.Thread
info.ephyra.search.searchers.Searcher
info.ephyra.search.searchers.KnowledgeMiner
info.ephyra.search.searchers.BingKM
public class BingKM
A KnowledgeMiner that deploys the Bing search engine to
search the Web.
It runs as a separate thread, so several queries can be performed in parallel.
This class extends the class KnowledgeMiner.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.lang.Thread |
|---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
| Field Summary | |
|---|---|
private static java.lang.String |
BING_APP_ID
Bing Application ID. |
private static int |
MAX_RESULTS_PERQUERY
Maximum number of search results per query. |
private static int |
MAX_RESULTS_TOTAL
Maximum total number of search results. |
| Fields inherited from class info.ephyra.search.searchers.KnowledgeMiner |
|---|
firstResult, maxResults |
| Fields inherited from class info.ephyra.search.searchers.Searcher |
|---|
query, results |
| Fields inherited from class java.lang.Thread |
|---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
| Constructor Summary | |
|---|---|
BingKM()
|
|
| Method Summary | |
|---|---|
protected Result[] |
doSearch()
Searches an unstructured or (semi)structured knowledge source and returns an array of search results. |
KnowledgeMiner |
getCopy()
Returns a new instance of BingKM. |
protected int |
getMaxResultsPerQuery()
Returns the maximum number of search results per query. |
protected int |
getMaxResultsTotal()
Returns the maximum total number of search results. |
| Methods inherited from class info.ephyra.search.searchers.KnowledgeMiner |
|---|
getResults, getResults, start, start |
| Methods inherited from class info.ephyra.search.searchers.Searcher |
|---|
run |
| Methods inherited from class java.lang.Thread |
|---|
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private static final java.lang.String BING_APP_ID
private static final int MAX_RESULTS_TOTAL
private static final int MAX_RESULTS_PERQUERY
| Constructor Detail |
|---|
public BingKM()
| Method Detail |
|---|
protected int getMaxResultsTotal()
KnowledgeMiner
getMaxResultsTotal in class KnowledgeMinerprotected int getMaxResultsPerQuery()
KnowledgeMiner
getMaxResultsPerQuery in class KnowledgeMinerpublic KnowledgeMiner getCopy()
BingKM. A new instance is created
for each query.
getCopy in class KnowledgeMinerBingKMprotected Result[] doSearch()
Searcher
doSearch in class Searcher
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||