public class SimpleRDFImport extends AbstractImportTool implements WandoraTool
SimpleRDFImport is used to import and convert RDF files (including RDFS and OWL files) to topic maps.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
anonSIPrefix |
static java.lang.String |
objectTypeSI |
static java.lang.String |
occurrenceScopeSI |
static java.lang.String |
predicateTypeSI |
static java.lang.String |
RDF_LIST_ORDER |
static java.lang.String |
subjectTypeSI |
ASK_SOURCE, askSource, CLOSE_LOGS, closeLogs, CUSTOM_IMPORTER, directMerge, FILE_DIALOG_TITLE_TEXT, FILE_IMPORTER, forceFiles, newLayer, RAW_IMPORTER, resetWandoraFirst, TOPICMAP_DIRECT_MERGE, TOPICMAP_MAKE_NEW_LAYER, TOPICMAP_RESET_FIRST, URL_DIALOG_MESSAGE_TEXT, URL_IMPORTER, WEB_IMPORT, webImport| Constructor and Description |
|---|
SimpleRDFImport()
Creates a new instance of SimpleRDFLocalImport
|
SimpleRDFImport(int options) |
| Modifier and Type | Method and Description |
|---|---|
void |
configure(Wandora admin,
Options options,
java.lang.String prefix)
If the tool is configurable, shows an user interface to configure the tool.
|
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) |
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.
|
Topic |
getOrCreateTopic(TopicMap map,
com.hp.hpl.jena.rdf.model.Resource res) |
Topic |
getOrCreateTopic(TopicMap map,
java.lang.String si) |
void |
handleStatement(com.hp.hpl.jena.rdf.model.Statement stmt,
TopicMap map,
Topic subjectType,
Topic predicateType,
Topic objectType) |
void |
importRDF(java.io.InputStream in,
TopicMap map) |
void |
importStream(Wandora wandora,
java.lang.String streamName,
java.io.InputStream inputStream) |
void |
initialize(Wandora admin,
Options options,
java.lang.String prefix)
Initializes a tool with options saved in the options.
|
boolean |
isConfigurable()
Whether this tool is configurable.
|
void |
RDF2TopicMap(com.hp.hpl.jena.rdf.model.Model model,
TopicMap map) |
void |
writeOptions(Wandora admin,
Options options,
java.lang.String prefix)
If the tool is configurable, saves all current tool options.
|
createNewLayer, execute, finalizeImport, getLayerNameFor, getOptions, getType, importFile, importFiles, importUrl, initializeImport, requestImports, setOptionsaddUndoMarker, addUndoMarker, allowMultipleInvocations, clearAllThreads, clearThreads, clearThreads, clearToolLock, clearToolLock, clearToolLocks, execute, execute, forceStop, forceStop, getContext, getCurrentLogger, getDefaultLogger, getHistory, getLastLogger, getState, getThreads, getThreads, getToolMenuItem, getToolMenuItem, getTopicName, hlog, interruptAllThreads, interruptThreads, interruptThreads, isRunning, isRunning, lockLog, log, log, log, log, requiresRefresh, run, runInOwnThread, setContext, setDefaultLogger, setLogTitle, setProgress, setProgressMax, setState, setToolLogger, singleLog, singleLog, singleLog, solveContextTopicMap, solveNameForTopicMapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecute, execute, execute, getContext, getToolMenuItem, getType, hlog, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLoggerforceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setStatepublic static final java.lang.String anonSIPrefix
public static final java.lang.String occurrenceScopeSI
public static final java.lang.String subjectTypeSI
public static final java.lang.String objectTypeSI
public static final java.lang.String predicateTypeSI
public static final java.lang.String RDF_LIST_ORDER
public SimpleRDFImport()
public SimpleRDFImport(int options)
public void initialize(Wandora admin, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraToolinitialize in interface WandoraToolinitialize in class AbstractWandoraToolTopicMapExceptionpublic boolean isConfigurable()
AbstractWandoraToolisConfigurable in interface WandoraToolisConfigurable in class AbstractWandoraToolpublic void configure(Wandora admin, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraToolconfigure in interface WandoraToolconfigure in class AbstractWandoraToolTopicMapExceptionpublic void writeOptions(Wandora admin, Options options, java.lang.String prefix)
AbstractWandoraToolwriteOptions in interface WandoraToolwriteOptions in class AbstractWandoraToolpublic java.lang.String getName()
AbstractWandoraToolgetName in interface WandoraToolgetName in class AbstractWandoraToolpublic java.lang.String getDescription()
AbstractWandoraToolgetDescription in interface WandoraToolgetDescription in class AbstractWandoraToolpublic javax.swing.Icon getIcon()
AbstractWandoraToolgetIcon should return Icon object of
the tool.getIcon in interface WandoraToolgetIcon in class AbstractImportToolpublic void importStream(Wandora wandora, java.lang.String streamName, java.io.InputStream inputStream)
importStream in class AbstractImportToolpublic void importRDF(java.io.InputStream in,
TopicMap map)
public void handleStatement(com.hp.hpl.jena.rdf.model.Statement stmt,
TopicMap map,
Topic subjectType,
Topic predicateType,
Topic objectType)
throws TopicMapException
TopicMapExceptionpublic void RDF2TopicMap(com.hp.hpl.jena.rdf.model.Model model,
TopicMap map)
public Topic getOrCreateTopic(TopicMap map, com.hp.hpl.jena.rdf.model.Resource res)
public java.lang.String getGUIText(int textType)
getGUIText in class AbstractImportToolCopyright 2004-2015 Wandora Team