Package org.topbraid.jenax.util
Interface AutoCompleteEngine
public interface AutoCompleteEngine
An interface for objects that can deliver the results of an auto-complete operation.
- Author:
- Holger Knublauch
-
Method Summary
Modifier and TypeMethodDescriptionList<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 Details
-
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 ontypeNode- the rdf:type of the result objectslangs- the match languages of the literalsprefix- the prefix string that was enteredcount- the max number of results to return or -1offset- the offset from which to start returning valuesfilter- an optional additional filter to drop results- Returns:
- an ordered list of triples with the resources as subjects and their labels as objects
-