Interface AutoCompleteEngine


  • public interface AutoCompleteEngine
    An interface for objects that can deliver the results of an auto-complete operation.
    Author:
    Holger Knublauch
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      List<org.apache.jena.graph.Triple> getResults​(org.apache.jena.graph.Graph graph, org.apache.jena.graph.Node typeNode, String[] langs, String prefix, int count, int offset, Predicate<org.apache.jena.graph.Node> filter)
      Performs an auto-complete operation.
    • Method Detail

      • getResults

        List<org.apache.jena.graph.Triple> getResults​(org.apache.jena.graph.Graph graph,
                                                      org.apache.jena.graph.Node typeNode,
                                                      String[] langs,
                                                      String prefix,
                                                      int count,
                                                      int offset,
                                                      Predicate<org.apache.jena.graph.Node> filter)
        Performs an auto-complete operation.
        Parameters:
        graph - the Graph to operate on
        typeNode - the rdf:type of the result objects
        langs - the match languages of the literals
        prefix - the prefix string that was entered
        count - the max number of results to return or -1
        offset - the offset from which to start returning values
        filter - an optional additional filter to drop results
        Returns:
        an ordered list of triples with the resources as subjects and their labels as objects