org.eclipse.smila.ontology.pipelets
Class CreateFileUriPipelet
java.lang.Object
org.eclipse.smila.ontology.pipelets.CreateFileUriPipelet
- All Implemented Interfaces:
- Pipelet
public class CreateFileUriPipelet
- extends java.lang.Object
- implements Pipelet
write filename in ID key as file:/ URI to rdf:about attribute. Works useful only if the ID key is an absolute path
for the same platform as the pipelet is running on.
- Author:
- jschumacher
Field Summary |
static java.lang.String |
KEY_CONFIG_FILENAME_ATTRIBUTE
The key of the configuration to define in which attribute the filename is stored in. |
Method Summary |
void |
configure(AnyMap configuration)
set configuration of pipelet. |
java.lang.String[] |
process(Blackboard blackboard,
java.lang.String[] recordIds)
process given records. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KEY_CONFIG_FILENAME_ATTRIBUTE
public static final java.lang.String KEY_CONFIG_FILENAME_ATTRIBUTE
- The key of the configuration to define in which attribute the filename is stored in.
- See Also:
- Constant Field Values
CreateFileUriPipelet
public CreateFileUriPipelet()
process
public java.lang.String[] process(Blackboard blackboard,
java.lang.String[] recordIds)
throws ProcessingException
- process given records.
- Specified by:
process
in interface Pipelet
- Parameters:
blackboard
- Blackboard holding and managing the records.recordIds
- Ids of records to process.
- Returns:
- Ids of records to be passed into the next pipelet. By default this should be the same as the passed in
recordIds unless there is a specific (businesslogic) reason not to do so.
- Throws:
ProcessingException
- error during processing.- See Also:
org.eclipse.smila.processing.Pipelet#process(org.eclipse.smila.blackboard.Blackboard,
org.eclipse.smila.datamodel.id.Id[])
configure
public void configure(AnyMap configuration)
throws ProcessingException
- set configuration of pipelet. called once after instantiation before the pipelet is actually used in a workflow.
- Specified by:
configure
in interface Pipelet
- Parameters:
configuration
- configuration of pipelet.
- Throws:
ProcessingException
- configuration is not applicable for pipelet (missing properties, wrong datatypes)- See Also:
#configure(org.eclipse.smila.processing.configuration.PipeletConfiguration)