org.topbraid.sparqlmotion.modules.impl
Class AbstractRDFInputModule

java.lang.Object
  extended by org.topbraid.sparqlmotion.modules.impl.AbstractModule
      extended by org.topbraid.sparqlmotion.modules.impl.AbstractRDFInputModule
All Implemented Interfaces:
IModule, IRDFInputModule
Direct Known Subclasses:
AbstractRDFInputOutputModule, AbstractWriteToSesameRepositoryModule

public abstract class AbstractRDFInputModule
extends AbstractModule
implements IRDFInputModule


Field Summary
 
Fields inherited from class org.topbraid.sparqlmotion.modules.impl.AbstractModule
inputModules
 
Constructor Summary
AbstractRDFInputModule()
           
 
Method Summary
 java.util.Collection<IModule> getInputModules()
           
 com.hp.hpl.jena.graph.Graph getRDFInput(org.eclipse.core.runtime.IProgressMonitor monitor)
           
protected  com.hp.hpl.jena.rdf.model.Model getRDFInputModel(org.eclipse.core.runtime.IProgressMonitor monitor)
           
 java.util.List<IRDFOutputModule> getRDFOutputPredecessors()
           
 void setDefaultInputGraph(com.hp.hpl.jena.graph.Graph value)
          Sets the Graph that shall be used if no other input has been specified for this module.
 
Methods inherited from class org.topbraid.sparqlmotion.modules.impl.AbstractModule
bindInputURL, bindInputURL, createError, dumpNamespaces, getConfig, getConfigBoolean, getConfigFile, getConfigResource, getConfigString, getContext, getModuleLabel, getQueryStrings, getVarInsertion, init, moni, setContext, setInputModules, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.topbraid.sparqlmotion.modules.IModule
getConfig, getContext, init, setContext, setInputModules, validate
 

Constructor Detail

AbstractRDFInputModule

public AbstractRDFInputModule()
Method Detail

getRDFInput

public com.hp.hpl.jena.graph.Graph getRDFInput(org.eclipse.core.runtime.IProgressMonitor monitor)
                                        throws java.lang.Throwable
Specified by:
getRDFInput in interface IRDFInputModule
Throws:
java.lang.Throwable

getRDFInputModel

protected com.hp.hpl.jena.rdf.model.Model getRDFInputModel(org.eclipse.core.runtime.IProgressMonitor monitor)
                                                    throws java.lang.Throwable
Throws:
java.lang.Throwable

getInputModules

public java.util.Collection<IModule> getInputModules()
Specified by:
getInputModules in interface IModule
Overrides:
getInputModules in class AbstractModule

getRDFOutputPredecessors

public java.util.List<IRDFOutputModule> getRDFOutputPredecessors()

setDefaultInputGraph

public void setDefaultInputGraph(com.hp.hpl.jena.graph.Graph value)
Description copied from interface: IRDFInputModule
Sets the Graph that shall be used if no other input has been specified for this module. This enables programmers to pass in arbitrary Graphs into a script that would otherwise start with an empty graph.

Specified by:
setDefaultInputGraph in interface IRDFInputModule
Parameters:
value - the Graph to start with