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

public class TextExtractorAllStringLiterals extends Object implements TextExtractor
This extractor uses all literals which are also strings e.g. all literal with datatype XSD string or dtLangString or have a language tag.
  • Constructor Details

    • TextExtractorAllStringLiterals

      public TextExtractorAllStringLiterals()
  • 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.
    • isLiteralAString

      public static boolean isLiteralAString(org.apache.jena.rdf.model.Literal lit)
    • hashCode

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

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