java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.literalExtractors.LiteralExtractorFallback
All Implemented Interfaces:
LiteralExtractor

public class LiteralExtractorFallback extends Object implements LiteralExtractor
This extractor is a composer and uses the given extractor in the given order as long as an extractor will yield an result.
  • Field Details

  • Constructor Details

    • LiteralExtractorFallback

      public LiteralExtractorFallback(List<LiteralExtractor> extractors)
    • LiteralExtractorFallback

      public LiteralExtractorFallback(LiteralExtractor... extractors)
    • LiteralExtractorFallback

      public LiteralExtractorFallback(org.apache.jena.rdf.model.Property... properties)
  • Method Details

    • extract

      public Set<org.apache.jena.rdf.model.Literal> extract(org.apache.jena.rdf.model.Resource r)
      Description copied from interface: LiteralExtractor
      Given a jena resource r, it extracts the literals which are usually helpful for matching. It does not do any tokenization nor transformation.
      Specified by:
      extract in interface LiteralExtractor
      Parameters:
      r - the jena resource to extract the literals (which describe this resource).
      Returns:
      a set of literals which describes the resource.
    • getExtractors

      public List<LiteralExtractor> getExtractors()
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object