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

public class TextExtractorProperty extends Object implements TextExtractor
Extracts all values from a specific property as long as it is a literal.
  • Field Details

    • property

      private final org.apache.jena.rdf.model.Property property
  • Constructor Details

    • TextExtractorProperty

      public TextExtractorProperty(org.apache.jena.rdf.model.Property property)
  • 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.
    • getProperty

      public org.apache.jena.rdf.model.Property getProperty()
    • hashCode

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

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

      public static List<TextExtractor> wrapExtractor(org.apache.jena.rdf.model.Property... properties)
    • wrapExtractor

      public static List<TextExtractor> wrapExtractor(Collection<org.apache.jena.rdf.model.Property> properties)