Interface TextExtractorMap
- All Known Implementing Classes:
TextExtractorMapSet
public interface TextExtractorMap
Given a Jena resource, a ValueExtractor can derive zero or more String representations.
The returned value is a map between the key (e.g. where it is extracted from like label or fragment etc) and the corresponding texts.
Developer remark:
If you implement a new extractor: For a good design, you may want to implement a
LiteralExtractorMap
and use
this interface to wrap it.-
Method Summary
Modifier and TypeMethodDescriptionstatic TextExtractorMap
appendStringPostProcessing
(TextExtractorMap e, Function<String, String> postprocessing) extract
(org.apache.jena.rdf.model.Resource r) Given a Jena resource this method extracts textual/string representations from it.static TextExtractorMap
static TextExtractorMap
-
Method Details
-
extract
Given a Jena resource this method extracts textual/string representations from it.- Parameters:
r
- the jena resource which also allows to traverse the whole rdf graph- Returns:
- a set of textual representations of the given resource.
-
wrapLiteralExtractorMap
-
wrapTextExtractor
-
appendStringPostProcessing
static TextExtractorMap appendStringPostProcessing(TextExtractorMap e, Function<String, String> postprocessing)
-