Class TextExtractorRDFBase
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractors.TextExtractorRDFBase
- All Implemented Interfaces:
TextExtractor
- Direct Known Subclasses:
TextExtractorResourceDescriptionInRDF
,TextExtractorVerbalizedRDF
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 Summary
Modifier and TypeFieldDescriptionstatic Function<List<org.apache.jena.rdf.model.Statement>,
List<org.apache.jena.rdf.model.Statement>> static Function<List<org.apache.jena.rdf.model.Statement>,
List<org.apache.jena.rdf.model.Statement>> This predicate should be used as keep predicate and filters out long (more than 150 characters) literals by completely ignoring them.static Function<List<org.apache.jena.rdf.model.Statement>,
List<org.apache.jena.rdf.model.Statement>> private static final Set<org.apache.jena.rdf.model.Resource>
protected Function<List<org.apache.jena.rdf.model.Statement>,
List<org.apache.jena.rdf.model.Statement>> -
Constructor Summary
ConstructorDescriptionTextExtractorRDFBase
(Function<List<org.apache.jena.rdf.model.Statement>, List<org.apache.jena.rdf.model.Statement>> statementProcessor) -
Method Summary
Modifier and TypeMethodDescriptionsetStatementProcessor
(Function<List<org.apache.jena.rdf.model.Statement>, List<org.apache.jena.rdf.model.Statement>> statementProcessor) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface de.uni_mannheim.informatik.dws.melt.matching_jena.TextExtractor
extract
-
Field Details
-
statementProcessor
-
SKIP_RESOURCES
-
SKIP_URIS
-
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_LITERALSThis 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
-
SKIP_DEFINITIONS
-
-
Constructor Details
-
TextExtractorRDFBase
public TextExtractorRDFBase() -
TextExtractorRDFBase
-
-
Method Details
-
getStatementProcessor
-
setStatementProcessor
public TextExtractorRDFBase setStatementProcessor(Function<List<org.apache.jena.rdf.model.Statement>, List<org.apache.jena.rdf.model.Statement>> statementProcessor)
-