Interface OntologyHighlighter

  • All Superinterfaces:
    Highlighter
    All Known Implementing Classes:
    DefaultHighlighter

    public interface OntologyHighlighter
    extends Highlighter
    Highlighter specialized for ontology terms.
    Author:
    poirigui
    • Method Detail

      • highlightTerm

        Map<String,​String> highlightTerm​(@Nullable
                                               String termUri,
                                               String termLabel,
                                               String field)
        Produce a highlight for a given ontology term.
        Parameters:
        termUri - a URI for the term or null for a full-text term
        termLabel - a label for the term
        field - an object path through which the term was found
        Returns:
        a suitable highlight, or null if none is found