public abstract class AbstractFreebaseExtractor extends AbstractExtractor
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String[] |
contentTypes |
static java.lang.String |
FREEBASE_BASE_SI |
static java.lang.String |
FREEBASE_WANDORA_SI |
static java.lang.String |
LANG_SI |
static java.lang.String |
LINK_SI |
static java.lang.String |
NAME_SI |
static java.lang.String |
OBJECT_SI |
static java.lang.String |
SOURCE_SI |
static java.lang.String |
TARGET_SI |
static java.lang.String |
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_EXTRACTORCLOSE, EXECUTE, INVISIBLE, VISIBLE, WAITRETURN_ERROR, RETURN_INFO| Constructor and Description |
|---|
AbstractFreebaseExtractor() |
| Modifier and Type | Method and Description |
|---|---|
Topic |
createFreebaseTopic(TopicMap tm,
org.json.JSONObject mqlObject) |
Topic |
createLinkType(TopicMap tm,
org.json.JSONObject mqlObject) |
Topic |
createType(TopicMap tm,
org.json.JSONObject mqlObject) |
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.
|
static Topic |
getFreebaseType(TopicMap tm) |
javax.swing.Icon |
getIcon()
All tools may have identifying graphic icon used within tool GUI elements.
|
protected static Topic |
getLangTopic(TopicMap tm) |
static Topic |
getLinkType(TopicMap tm) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
static Topic |
getNameType(TopicMap tm) |
static Topic |
getObjectType(TopicMap tm) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
protected static Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si,
java.lang.String bn) |
protected static java.lang.String |
getQuery(java.lang.String id) |
static Topic |
getSourceType(TopicMap tm) |
static Topic |
getTargetType(TopicMap tm) |
static Topic |
getTypeType(TopicMap tm) |
protected static Topic |
getWandoraClassTopic(TopicMap tm) |
protected static void |
makeSubclassOf(TopicMap tm,
Topic t,
Topic superclass) |
boolean |
runInOwnThread()
Whether or not this tool should fork own thread.
|
boolean |
useURLCrawler() |
_extractTopicsFrom, _extractTopicsFrom, _extractTopicsFrom, 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, setData, setDisplayName, setForceContent, setForceFiles, setForceUrls, setMasterSubject, setMasterSubject, setTopicMap, setupCrawler, setWandora, takeNap, urlEncode, useTempTopicMapaddUndoMarker, 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, writeOptionsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitconfigure, execute, execute, getContext, getToolMenuItem, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptionsforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStateprivate final java.lang.String[] contentTypes
public static final java.lang.String FREEBASE_WANDORA_SI
public static final java.lang.String FREEBASE_BASE_SI
public static final java.lang.String OBJECT_SI
public static final java.lang.String TYPE_SI
public static final java.lang.String NAME_SI
public static final java.lang.String TARGET_SI
public static final java.lang.String SOURCE_SI
public static final java.lang.String LINK_SI
public static final java.lang.String LANG_SI
public java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractExtractorpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractExtractorpublic java.lang.String[] getContentTypes()
HandlerContentHandler can process.getContentTypes in interface HandlergetContentTypes in class AbstractExtractorpublic boolean useURLCrawler()
useURLCrawler in class AbstractExtractorpublic boolean runInOwnThread()
AbstractWandoraToolrunInOwnThread in class AbstractExtractorprotected static Topic getWandoraClassTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getNameType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getObjectType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getTypeType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getTargetType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getSourceType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic static Topic getLinkType(TopicMap tm) throws TopicMapException
TopicMapExceptionpublic Topic createFreebaseTopic(TopicMap tm, org.json.JSONObject mqlObject) throws TopicMapException, org.json.JSONException
TopicMapExceptionorg.json.JSONExceptionpublic Topic createType(TopicMap tm, org.json.JSONObject mqlObject) throws TopicMapException, org.json.JSONException
TopicMapExceptionorg.json.JSONExceptionpublic Topic createLinkType(TopicMap tm, org.json.JSONObject mqlObject) throws TopicMapException, org.json.JSONException
TopicMapExceptionorg.json.JSONExceptionpublic static Topic getFreebaseType(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getLangTopic(TopicMap tm) throws TopicMapException
TopicMapExceptionprotected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si) throws TopicMapException
TopicMapExceptionprotected static Topic getOrCreateTopic(TopicMap tm, java.lang.String si, java.lang.String bn) throws TopicMapException
TopicMapExceptionprotected static void makeSubclassOf(TopicMap tm, Topic t, Topic superclass) throws TopicMapException
TopicMapExceptionprotected static java.lang.String getQuery(java.lang.String id)
Copyright 2004-2015 Wandora Team