java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractorsMap.TextExtractorMapSet
All Implemented Interfaces:
TextExtractorMap

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

  • Constructor Details

    • TextExtractorMapSet

      public TextExtractorMapSet()
  • Method Details

    • extract

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

      private Set<String> getTexts(Set<NormalizedLiteral> literals)