Class TextExtractorShortAndLongTexts
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractors.TextExtractorShortAndLongTexts
- All Implemented Interfaces:
TextExtractor
A
TextExtractor
which extracts texts from a resource which can be used by transformer
based matchers like TransformersFilter
or TransformersFineTuner
.-
Field Summary
Modifier and TypeFieldDescription -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionextract
(org.apache.jena.rdf.model.Resource r) Given a Jena resource this method extracts textual/string representations from it.private void
updateContained
(List<ProcessedLiteral> literals)
-
Field Details
-
annotationExtractor
-
-
Constructor Details
-
TextExtractorShortAndLongTexts
public TextExtractorShortAndLongTexts()
-
-
Method Details
-
extract
Description copied from interface:TextExtractor
Given a Jena resource this method extracts textual/string representations from it.- Specified by:
extract
in interfaceTextExtractor
- Parameters:
r
- the jena resource which also allows to traverse the whole rdf graph- Returns:
- a set of textual representations of the given resource.
-
updateContained
-