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, setOptions
addUndoMarker, 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, solveNameForTopicMap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, execute, getContext, getToolMenuItem, getType, hlog, isRunning, log, log, log, log, requiresRefresh, setContext, setToolLogger
forceStop, getHistory, getState, lockLog, setLogTitle, setProgress, setProgressMax, setState
public 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
AbstractWandoraTool
initialize
in interface WandoraTool
initialize
in class AbstractWandoraTool
TopicMapException
public boolean isConfigurable()
AbstractWandoraTool
isConfigurable
in interface WandoraTool
isConfigurable
in class AbstractWandoraTool
public void configure(Wandora admin, Options options, java.lang.String prefix) throws TopicMapException
AbstractWandoraTool
configure
in interface WandoraTool
configure
in class AbstractWandoraTool
TopicMapException
public void writeOptions(Wandora admin, Options options, java.lang.String prefix)
AbstractWandoraTool
writeOptions
in interface WandoraTool
writeOptions
in class AbstractWandoraTool
public java.lang.String getName()
AbstractWandoraTool
getName
in interface WandoraTool
getName
in class AbstractWandoraTool
public java.lang.String getDescription()
AbstractWandoraTool
getDescription
in interface WandoraTool
getDescription
in class AbstractWandoraTool
public javax.swing.Icon getIcon()
AbstractWandoraTool
getIcon
should return Icon
object of
the tool.getIcon
in interface WandoraTool
getIcon
in class AbstractImportTool
public void importStream(Wandora wandora, java.lang.String streamName, java.io.InputStream inputStream)
importStream
in class AbstractImportTool
public 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
TopicMapException
public 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 AbstractImportTool
Copyright 2004-2015 Wandora Team