Class LiteralExtractorByProperty
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.literalExtractors.LiteralExtractorByProperty
- All Implemented Interfaces:
LiteralExtractor
Extracts all values from a specific property as long as it is a literal.
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Set<org.apache.jena.rdf.model.Literal>
extract
(org.apache.jena.rdf.model.Resource r) Given a jena resourcer
, it extracts the literals which are usually helpful for matching.org.apache.jena.rdf.model.Property
int
hashCode()
static List<LiteralExtractor>
wrapExtractor
(Collection<org.apache.jena.rdf.model.Property> properties) static List<LiteralExtractor>
wrapExtractor
(org.apache.jena.rdf.model.Property... properties)
-
Field Details
-
property
private final org.apache.jena.rdf.model.Property property
-
-
Constructor Details
-
LiteralExtractorByProperty
public LiteralExtractorByProperty(org.apache.jena.rdf.model.Property property)
-
-
Method Details
-
extract
Description copied from interface:LiteralExtractor
Given a jena resourcer
, it extracts the literals which are usually helpful for matching. It does not do any tokenization nor transformation.- Specified by:
extract
in interfaceLiteralExtractor
- Parameters:
r
- the jena resource to extract the literals (which describe this resource).- Returns:
- a set of literals which describes the resource.
-
getProperty
public org.apache.jena.rdf.model.Property getProperty() -
hashCode
public int hashCode() -
equals
-
wrapExtractor
public static List<LiteralExtractor> wrapExtractor(org.apache.jena.rdf.model.Property... properties) -
wrapExtractor
public static List<LiteralExtractor> wrapExtractor(Collection<org.apache.jena.rdf.model.Property> properties)
-