public class ExtractKiasmaKeywords extends AbstractExtractor implements WandoraTool
Class implements an extraction tool for Kiasma artmuseum's iconclass keyword file. File contains artworks and linked iconclass keywords. File is originally created and updated with Microsoft Excel and later exported as tab limited text file. Thus all records in file are separated with tabulator on new line character.
First column of keyword file contains artwork's identifier (inventory code). Second column of file contains artist's name. Third column contains artwork's name Remaining one to four columns contains iconclass keywords linked to the artwork. First remaining column contains iconclass code of the keyword and latter code's English, Finnish and Swedish representation. Below is an example of single artwork in file. In order to make example more readable all tab characters have been changed to sets of spaces.
N-1992-225 Trockel, Rosemarie Nimetön 41B2 liesi, hella, uuni yms.
49D452 hexahedron, cube
22C4(WHITE) värit, pigmentit ja maalit: valkoinen
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 |
|---|
ExtractKiasmaKeywords()
Creates a new instance of ExtractKiasmaKeywords
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
_extractTopicsFrom(java.io.BufferedReader breader,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.io.File keywordFile,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.lang.String str,
TopicMap topicMap) |
boolean |
_extractTopicsFrom(java.net.URL url,
TopicMap topicMap) |
void |
createIconclassSubSuperRelation(java.lang.String sub,
java.lang.String sup,
TopicMap topicMap) |
java.lang.String |
getDescription()
AdminToolManager views tool descriptions while user browses available
tools and build user customizable GUI elements such as Tools menu.
|
java.lang.String |
getGUIText(int textType) |
Locator |
getLocatorForIconclass(java.lang.String iconclassCode) |
java.lang.String |
getName()
Tools name represent the tool in UI unless the tool has been given
explicitly another GUI name.
|
Topic |
getOrCreateIconclassTopic(TopicMap topicmap,
Locator si) |
Topic |
getOrCreateIconclassTopic(TopicMap topicmap,
java.lang.String si) |
Topic |
getOrCreateTopic(TopicMap tm,
Locator si) |
Topic |
getOrCreateTopic(TopicMap tm,
java.lang.String si) |
boolean |
useTempTopicMap() |
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, getContentTypes, getCrawlerMode, getExtractorType, getForceContent, getForceFiles, getForceUrls, getGUIText, getIcon, 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, useURLCrawleraddUndoMarker, 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, execute, getContext, getIcon, getToolMenuItem, getType, hlog, initialize, isConfigurable, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger, writeOptionsforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStatepublic ExtractKiasmaKeywords()
public java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractExtractorpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractExtractorpublic java.lang.String getGUIText(int textType)
getGUIText in class AbstractExtractorpublic boolean _extractTopicsFrom(java.lang.String str,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.net.URL url,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.io.File keywordFile,
TopicMap topicMap)
throws java.lang.Exception
_extractTopicsFrom in class AbstractExtractorjava.lang.Exceptionpublic boolean _extractTopicsFrom(java.io.BufferedReader breader,
TopicMap topicMap)
throws java.lang.Exception
java.lang.Exceptionpublic void createIconclassSubSuperRelation(java.lang.String sub,
java.lang.String sup,
TopicMap topicMap)
public Topic getOrCreateIconclassTopic(TopicMap topicmap, java.lang.String si)
public Locator getLocatorForIconclass(java.lang.String iconclassCode)
public boolean useTempTopicMap()
useTempTopicMap in class AbstractExtractorCopyright 2004-2015 Wandora Team