xsmeral.semnet.mapper
Class StatementMapper

java.lang.Object
  extended by xsmeral.pipe.AbstractObjectProcessor
      extended by xsmeral.pipe.LocalObjectFilter<Statement,Statement>
          extended by xsmeral.semnet.mapper.StatementMapper
All Implemented Interfaces:
Runnable, xsmeral.pipe.context.ContextAware, xsmeral.pipe.interfaces.ObjectProcessor, xsmeral.pipe.interfaces.ObjectSink<Statement>, xsmeral.pipe.interfaces.ObjectSource<Statement>

@ObjectProcessorInterface(in=org.openrdf.model.Statement.class,
                          out=org.openrdf.model.Statement.class)
public class StatementMapper
extends xsmeral.pipe.LocalObjectFilter<Statement,Statement>

An object processor, a filter, that maps URIs in subject or predicate to different URIs.

See Also:
Mapping
Initialization parameters
mapping - Name of the file containing a Mapping

Nested Class Summary
 
Nested classes/interfaces inherited from interface xsmeral.pipe.interfaces.ObjectProcessor
xsmeral.pipe.interfaces.ObjectProcessor.Status
 
Field Summary
 
Fields inherited from class xsmeral.pipe.AbstractObjectProcessor
canStart, context, status
 
Constructor Summary
StatementMapper()
           
StatementMapper(Mapping mapping)
           
 
Method Summary
 Mapping getMapping()
           
 void initPostContext()
           
protected  void process()
           
 void setMapping(Mapping mapping)
           
 
Methods inherited from class xsmeral.pipe.LocalObjectFilter
getNext, getOutBuffer, getPrev, handleStoppedSink, handleStoppedSource, next, prev, read, requestStop, setNext, setOutBuffer, write
 
Methods inherited from class xsmeral.pipe.AbstractObjectProcessor
canStart, failStart, failStart, failStart, getContext, getInType, getOutType, getParams, getStatus, initContext, initContextSet, initialize, initializeInternal, initWithContext, postRun, preRun, run, setContext, stop, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface xsmeral.pipe.interfaces.ObjectSink
getInType
 
Methods inherited from interface xsmeral.pipe.interfaces.ObjectSource
getOutType
 

Constructor Detail

StatementMapper

public StatementMapper()

StatementMapper

public StatementMapper(Mapping mapping)
Method Detail

initPostContext

public void initPostContext()
Overrides:
initPostContext in class xsmeral.pipe.AbstractObjectProcessor

process

protected void process()
                throws xsmeral.pipe.ProcessorStoppedException
Overrides:
process in class xsmeral.pipe.LocalObjectFilter<Statement,Statement>
Throws:
xsmeral.pipe.ProcessorStoppedException

getMapping

public Mapping getMapping()

setMapping

public void setMapping(Mapping mapping)