java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractors.TextExtractorShortAndLongTexts
All Implemented Interfaces:
TextExtractor

public class TextExtractorShortAndLongTexts extends Object implements TextExtractor
A TextExtractor which extracts texts from a resource which can be used by transformer based matchers like TransformersFilter or TransformersFineTuner.
  • Field Details

  • Constructor Details

    • TextExtractorShortAndLongTexts

      public TextExtractorShortAndLongTexts()
  • Method Details

    • extract

      public Set<String> extract(org.apache.jena.rdf.model.Resource r)
      Description copied from interface: TextExtractor
      Given a Jena resource this method extracts textual/string representations from it.
      Specified by:
      extract in interface TextExtractor
      Parameters:
      r - the jena resource which also allows to traverse the whole rdf graph
      Returns:
      a set of textual representations of the given resource.
    • updateContained

      private void updateContained(List<ProcessedLiteral> literals)