Interface LiteralExtractor
- All Known Implementing Classes:
LiteralExtractorAllAnnotationProperties
,LiteralExtractorAllLiterals
,LiteralExtractorAllStringLiterals
,LiteralExtractorByProperty
,LiteralExtractorFallback
,LiteralExtractorUrlFragment
,LiteralExtractorUrlLocalName
public interface LiteralExtractor
Given a resource (from Jena - which has the model behind - and thus allows to traverse the whole graph),
this interface extracts the literals which are usually helpful for matching.
There are many classes which implement this interface.
-
Method Summary
Modifier and TypeMethodDescriptionSet<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.static LiteralExtractor
wrapLiteralExtractorMap
(LiteralExtractorMap extractorMap)
-
Method Details
-
extract
Given a jena resourcer
, it extracts the literals which are usually helpful for matching. It does not do any tokenization nor transformation.- Parameters:
r
- the jena resource to extract the literals (which describe this resource).- Returns:
- a set of literals which describes the resource.
-
wrapLiteralExtractorMap
-