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 Type
    Method
    Description
    Set<org.apache.jena.rdf.model.Literal>
    extract(org.apache.jena.rdf.model.Resource r)
    Given a jena resource r, it extracts the literals which are usually helpful for matching.
     
  • Method Details

    • extract

      Set<org.apache.jena.rdf.model.Literal> extract(org.apache.jena.rdf.model.Resource r)
      Given a jena resource r, 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

      static LiteralExtractor wrapLiteralExtractorMap(LiteralExtractorMap extractorMap)