Class TextExtractorProperty
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.textExtractors.TextExtractorProperty
- All Implemented Interfaces:
TextExtractor
Extracts all values from a specific property as long as it is a literal.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
extract
(org.apache.jena.rdf.model.Resource r) Given a Jena resource this method extracts textual/string representations from it.org.apache.jena.rdf.model.Property
int
hashCode()
static List<TextExtractor>
wrapExtractor
(Collection<org.apache.jena.rdf.model.Property> properties) static List<TextExtractor>
wrapExtractor
(org.apache.jena.rdf.model.Property... properties)
-
Field Details
-
property
private final org.apache.jena.rdf.model.Property property
-
-
Constructor Details
-
TextExtractorProperty
public TextExtractorProperty(org.apache.jena.rdf.model.Property property)
-
-
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.
-
getProperty
public org.apache.jena.rdf.model.Property getProperty() -
hashCode
public int hashCode() -
equals
-
wrapExtractor
-
wrapExtractor
public static List<TextExtractor> wrapExtractor(Collection<org.apache.jena.rdf.model.Property> properties)
-