java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractors.TextExtractorRDFBase
All Implemented Interfaces:
TextExtractor
Direct Known Subclasses:
TextExtractorResourceDescriptionInRDF, TextExtractorVerbalizedRDF

public abstract class TextExtractorRDFBase extends Object implements TextExtractor
The textExtractor is a base class for all extractors which lists all statements about a resource. It allows to filter the statements which are included in the final representation.
  • Field Details

    • statementProcessor

      protected Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> statementProcessor
    • SKIP_RESOURCES

      private static final Set<org.apache.jena.rdf.model.Resource> SKIP_RESOURCES
    • SKIP_URIS

      private static Set<String> SKIP_URIS
    • SKIP_LITERALS

      private static Set<String> SKIP_LITERALS
    • SKIP_DEFINITIONS_AND_LONG_LITERALS

      public static Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> SKIP_DEFINITIONS_AND_LONG_LITERALS
      This predicate should be used as keep predicate and filters out long (more than 150 characters) literals by completely ignoring them. In addition all definitions such as x a owl:class or rdfs:class etc are removed.
    • SKIP_DEFINITIONS_AND_SHORTEN_LONG_LITERALS

      public static Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> SKIP_DEFINITIONS_AND_SHORTEN_LONG_LITERALS
    • SKIP_DEFINITIONS

      public static Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> SKIP_DEFINITIONS
  • Constructor Details

    • TextExtractorRDFBase

      public TextExtractorRDFBase()
    • TextExtractorRDFBase

      public TextExtractorRDFBase(Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> statementProcessor)
  • Method Details

    • getStatementProcessor

      public Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> getStatementProcessor()
    • setStatementProcessor

      public TextExtractorRDFBase setStatementProcessor(Function<List<org.apache.jena.rdf.model.Statement>,List<org.apache.jena.rdf.model.Statement>> statementProcessor)