Interface TextExtractor

All Known Implementing Classes:
TextExtractorAllAnnotationProperties, TextExtractorAllLiterals, TextExtractorAllStringLiterals, TextExtractorFallback, TextExtractorForTransformers, TextExtractorLabelAndDirectSuperclass, TextExtractorMultipleProperties, TextExtractorOnlyLabel, TextExtractorProperty, TextExtractorRDFBase, TextExtractorResourceDescriptionInRDF, TextExtractorSet, TextExtractorShortAndLongTexts, TextExtractorUrlFragment, TextExtractorUrlLocalName, TextExtractorUseLongestLiteralOrFragment, TextExtractorVerbalizedRDF

public interface TextExtractor
Given a Jena resource, a ValueExtractor can derive zero or more String representations. Developer remark: If you implement a new extractor: For a good design, you may want to implement a LiteralExtractor and use this interface to wrap it. Code for wrapping: extractor.extract(resource).stream().map(Literal::getLexicalForm).filter(x -> !x.trim().equals("")).collect(Collectors.toSet());