public class XMLBigHugeThesaurusExtractor extends AbstractExtractor
Modifier and Type | Class and Description |
---|---|
private class |
XMLBigHugeThesaurusExtractor.BigHugeThesaurusResultParser |
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ANTONYM_TYPE_SI |
private java.lang.String[] |
contentTypes |
private java.lang.String |
defaultEncoding |
static boolean |
INCLUDE_PART_OF_SPEECH |
protected java.lang.String |
PARTOFSPEECH_SI |
private java.lang.String |
queryTerm |
protected java.lang.String |
RELATED_TYPE_SI |
protected java.lang.String |
RELATEDTERM_SI |
static boolean |
RELATIONSHIP_AS_ASSOCIATION_TYPE |
protected java.lang.String |
RELATIONSHIP_SI |
protected java.lang.String |
SI_BASE |
protected java.lang.String |
SIMILAR_TYPE_SI |
protected java.lang.String |
SOURCE_SI |
protected java.lang.String |
SYNONYM_TYPE_SI |
protected java.lang.String |
TERM_SI |
protected java.lang.String |
USERSUGGESTION_TYPE_SI |
CUSTOM_EXTRACTOR, DONE_FAILED, DONE_MANY, DONE_ONE, EXACTLY_GIVEN_URLS, FILE_EXTRACTOR, FILE_PATTERN, GIVEN_URLS_AND_ALL_CRAWLED_DOCUMENTS, GIVEN_URLS_AND_CRAWLED_DOCUMENTS_IN_URL_DOMAIN, GIVEN_URLS_AND_LINKED_DOCUMENTS, GIVEN_URLS_AND_URL_BELOW, INFO_WAIT_WHILE_WORKING, LOG_TITLE, POINT_START_URL_TEXT, RAW_EXTRACTOR, SELECT_DIALOG_TITLE, STRING_EXTRACTOR_NOT_SUPPORTED_MESSAGE, URL_EXTRACTOR
CLOSE, EXECUTE, INVISIBLE, VISIBLE, WAIT
RETURN_ERROR, RETURN_INFO
Constructor and Description |
---|
XMLBigHugeThesaurusExtractor()
Creates a new instance of XMLBigHugeThesaurusExtractor
|
Modifier and Type | Method and Description |
---|---|
boolean |
_extractTopicsFrom(java.io.File file,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.io.InputStream in,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.lang.String in,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.net.URL url,
TopicMap topicMap) |
Topic |
getAntonymType(TopicMap tm) |
Topic |
getBigHugeClass(TopicMap tm) |
java.lang.String[] |
getContentTypes()
Returns an array of String containing the content-types this
ContentHandler can process. |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
protected Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
Topic |
getPartOfSpeechTopic(java.lang.String p,
TopicMap tm) |
Topic |
getPartOfSpeechType(TopicMap tm) |
Topic |
getRelatedTermType(TopicMap tm) |
Topic |
getRelatedType(TopicMap tm) |
Topic |
getRelationshipType(TopicMap tm) |
Topic |
getSimilarType(TopicMap tm) |
Topic |
getSourceType(TopicMap tm) |
Topic |
getSynonymType(TopicMap tm) |
Topic |
getTermTopic(java.lang.String term,
TopicMap tm) |
Topic |
getTermType(TopicMap tm) |
Topic |
getUserSuggestionsType(TopicMap tm) |
Topic |
getWandoraClass(TopicMap tm) |
protected void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
boolean |
useURLCrawler() |
acceptBrowserExtractRequest, addCrawlerUrl, browserExtractorConsumesPlainText, buildSI, buildSL, clearMasterSubject, createAssociation, createAssociation, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, createTopic, croppedFilename, croppedFilename, croppedUrlString, croppedUrlString, doBrowserExtract, dropExtract, dropExtract, dropExtract, execute, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFrom, extractTopicsFromText, getBrowserExtractorName, getCrawlerMode, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getGUIText, getInterruptsHandled, getMasterSubject, getType, getWandora, handle, handleContent, handleCustomType, handleFiles, handleForcedContent, handleInterrupt, handleStringContent, handleUrls, initializeCustomType, instantDropHandle, makeSubclassOfWandoraClass, runInOwnThread, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMap
addUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, configure, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, initialize, interruptAllThreads, interruptThreads, interruptThreads, isConfigurable, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMap, writeOptions
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
configure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptions
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public static final boolean INCLUDE_PART_OF_SPEECH
public static final boolean RELATIONSHIP_AS_ASSOCIATION_TYPE
private java.lang.String queryTerm
protected java.lang.String SI_BASE
protected java.lang.String PARTOFSPEECH_SI
protected java.lang.String TERM_SI
protected java.lang.String RELATEDTERM_SI
protected java.lang.String RELATIONSHIP_SI
protected java.lang.String SYNONYM_TYPE_SI
protected java.lang.String ANTONYM_TYPE_SI
protected java.lang.String RELATED_TYPE_SI
protected java.lang.String SIMILAR_TYPE_SI
protected java.lang.String USERSUGGESTION_TYPE_SI
protected java.lang.String SOURCE_SI
private java.lang.String defaultEncoding
private final java.lang.String[] contentTypes
public XMLBigHugeThesaurusExtractor()
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractExtractor
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractExtractor
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractExtractor
public java.lang.String[] getContentTypes()
Handler
ContentHandler
can process.getContentTypes
in interface Handler
getContentTypes
in class AbstractExtractor
public boolean useURLCrawler()
useURLCrawler
in class AbstractExtractor
public boolean _extractTopicsFrom(java.net.URL url, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.io.File file, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public boolean _extractTopicsFrom(java.io.InputStream in, TopicMap topicMap) throws java.lang.Exception
java.lang.Exception
public boolean _extractTopicsFrom(java.lang.String in, TopicMap topicMap) throws java.lang.Exception
_extractTopicsFrom
in class AbstractExtractor
java.lang.Exception
public Topic getRelationshipType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getPartOfSpeechTopic(java.lang.String p, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getPartOfSpeechType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTermTopic(java.lang.String term, TopicMap tm) throws TopicMapException
TopicMapException
public Topic getTermType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getRelatedTermType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getSynonymType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getAntonymType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getRelatedType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getSimilarType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getUserSuggestionsType(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getBigHugeClass(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getWandoraClass(TopicMap tm) throws TopicMapException
TopicMapException
public Topic getSourceType(TopicMap tm) throws TopicMapException
TopicMapException
protected Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapException
protected Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapException
protected void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapException
Copyright 2004-2015 Wandora Team