Class LiteralExtractorAllStringLiterals
java.lang.Object
de.uni_mannheim.informatik.dws.melt.matching_jena_matchers.util.literalExtractors.LiteralExtractorAllStringLiterals
- All Implemented Interfaces:
LiteralExtractor
This extractor uses all literals which are also strings e.g. all literal with datatype XSD string or dtLangString or have a language tag.
-
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.int
hashCode()
static boolean
isLiteralAString
(org.apache.jena.rdf.model.Literal lit)
-
Constructor Details
-
LiteralExtractorAllStringLiterals
public LiteralExtractorAllStringLiterals()
-
-
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.
-
isLiteralAString
public static boolean isLiteralAString(org.apache.jena.rdf.model.Literal lit) -
hashCode
public int hashCode() -
equals
-