Interface LiteralExtractorMap


public interface LiteralExtractorMap
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. The returned value is a map between the key (e.g. where it is extracted from like label or fragment etc) and the corresponding texts.
  • Method Summary

    Modifier and Type
    Method
    Description
    Map<String,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

      Map<String,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 a map between the key (e.g. where it is extracted from like label or fragment etc) and the corresponding texts.