public class FreebaseMQLExtractor extends AbstractFreebaseExtractor
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
currentURL |
private int |
extractCount |
java.util.ArrayList<java.lang.String> |
extractedIDs |
private int |
maxExtractCount |
private int |
progress |
private boolean |
toggleLimit |
FREEBASE_BASE_SI, FREEBASE_WANDORA_SI, LANG_SI, LINK_SI, NAME_SI, OBJECT_SI, SOURCE_SI, TARGET_SI, TYPE_SICUSTOM_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 |
|---|
FreebaseMQLExtractor() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
_extractTopicsFrom(java.io.File f,
TopicMap tm) |
boolean |
_extractTopicsFrom(java.lang.String str,
TopicMap tm) |
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap tm) |
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap tm,
int depth,
java.lang.String id) |
boolean |
_extractTopicsFrom(java.net.URL u,
TopicMap tm,
java.lang.String id) |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
private java.lang.String |
getIdFromUrl(java.net.URL u) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
java.util.ArrayList<java.lang.String> |
parse(org.json.JSONObject json,
TopicMap tm) |
java.util.ArrayList<java.lang.String> |
parseProperty(org.json.JSONArray properties,
Topic objectTopic,
Topic typeTopic,
TopicMap tm) |
java.util.ArrayList<java.lang.String> |
parseResult(org.json.JSONObject result,
TopicMap tm) |
java.util.ArrayList<java.lang.String> |
parseTypes(org.json.JSONArray types,
Topic objectTopic,
TopicMap tm) |
createFreebaseTopic, createLinkType, createType, getContentTypes, getFreebaseType, getIcon, getLangTopic, getLinkType, getNameType, getObjectType, getOrCreateTopic, getOrCreateTopic, getQuery, getSourceType, getTargetType, getTypeType, getWandoraClassTopic, makeSubclassOf, runInOwnThread, useURLCrawleracceptBrowserExtractRequest, 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 static java.lang.String currentURL
private int extractCount
private int maxExtractCount
private boolean toggleLimit
private int progress
public java.util.ArrayList<java.lang.String> extractedIDs
public java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractFreebaseExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractFreebaseExtractorpublic boolean _extractTopicsFrom(java.io.File f,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.lang.String str,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm,
java.lang.String id)
throws java.lang.Exception
java.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL u,
TopicMap tm,
int depth,
java.lang.String id)
throws java.lang.Exception
java.lang.Exceptionpublic java.util.ArrayList<java.lang.String> parse(org.json.JSONObject json,
TopicMap tm)
throws TopicMapException,
org.json.JSONException
TopicMapExceptionorg.json.JSONExceptionpublic java.util.ArrayList<java.lang.String> parseResult(org.json.JSONObject result,
TopicMap tm)
throws org.json.JSONException,
TopicMapException
org.json.JSONExceptionTopicMapExceptionpublic java.util.ArrayList<java.lang.String> parseTypes(org.json.JSONArray types,
Topic objectTopic,
TopicMap tm)
throws org.json.JSONException,
TopicMapException
org.json.JSONExceptionTopicMapExceptionpublic java.util.ArrayList<java.lang.String> parseProperty(org.json.JSONArray properties,
Topic objectTopic,
Topic typeTopic,
TopicMap tm)
throws org.json.JSONException,
TopicMapException
org.json.JSONExceptionTopicMapExceptionprivate java.lang.String getIdFromUrl(java.net.URL u)
Copyright 2004-2015 Wandora Team