Skip to main content
Jump to: navigation, search


< SMILA‎ | Documentation
Revision as of 07:45, 16 September 2011 by (Talk | contribs) (Configuration)

This pipelet is not yet available in our repository. As soon as the new Aperture release is available we will submit appropriate CQs and hopefully get permission to use it in our project.

Bundle: org.eclipse.smila.processing.pipelets.aperture.AperturePipelet


This Pipelet converts various document formats (like PDF,XLS, etc.) to plain text using Aperture technology. It converts the document's content in AttachmentContent and stores the plain text result in AttachmentText. The optional MimeType of AttachmentContent in AttachmentMimeType is used for conversion. If no MimeType is provided a MimeType identification is done inside the Pipelet using a MimeTypeIdentifier service.


Property Type Read Type Description
inputType String : ATTACHMENT, ATTRIBUTE runtime selects if the input is found in an attachment or attribute of the record
outputType String : ATTACHMENT, ATTRIBUTE runtime selects if output should be stored in an attachment or attribute of the record
inputName String runtime name of input attachment or path to input attribute (process a String literal of attribute)
outputName String runtime name of output attachment or path to output attribute for plain text (store result as String literal of attribute)
ExtractProperties String runtime Parameter that definies what to extract from input and copy into record attributes with the name of the extracted properties. Extract-attribute value can be a set of values or a single value.
AttachmentMimeType String runtime Parameter referencing the attribute that contains the mimetype of the attachment content. The parameter (resp. attribute) may not be set (null) and then a mimetype detection is performed. If the attribute has not been set, it will be set during the processing of the record to the detected mime type.

Note that all properties are required and must be provided.


The following example shows how to configure the pipelet to extract the text from the attachment called Content and stores the extracted text in the attribute Text. Additionally the eventually contained Company, Manager and Creator will be stored in properties which are named after their class URIs.

E.g. if a word document with the value "ACME" as company and "John Doe" as creator, the resulting record would contain the plain text in the attribute Text, the value ACME in the attribute, as well as the value John Doe in an attribute dc:creator.

Please note that the resulting attribute is a single </tt>Value, if only one value has been extracted, but a <tt>AnySeq containing all values if more than one value has been extracted for the requested propery.


  <rec:Val key="inputName">Content</rec:Val>
  <rec:Val key="inputType">ATTACHMENT</rec:Val>
  <rec:Val key="outputName">Text</rec:Val>
  <rec:Val key="outputType">ATTRIBUTE</rec:Val>
  <rec:Val key="AttachmentMimeType">MimeType</rec:Val>
  <rec:Seq key="ExtractProperties">					    

Back to the top