simple_search.pl -- Simple literal search
- simple_search_form// is det
- simple_search_form(+Options)// is det
- Provide a search form to find literals in the database. Options
processed:
- id(ID)
- Identifier-base for the search-box. The actual box is called ID_<complete>
- filter(+Filter)
- Restrict results to resources that satisfy filter. Filtering is implemented by search_filter/2.
- select_handler(+HandlerID)
- ID of the handler called if the user selects a completion. The handler is called with q=<Selected>
- submit_handler(+HandlerID)
- ID of the handler called if the user submits using the button. The handler is called with q=<Typed>
- label(Label)
- Label of the search-button. Default is Search.
- value(Value)
- Initial value of the search-box
- width(Width)
- Width of the input box (default is
25em
). Must be a CSS width.
- autocomplete(+HandlerID, +Options)// is det[private]
- Insert a YUI autocomplete widget that obtains its alternatives
from HandlerID. The following Options are supported:
- width(+Width)
- Specify the width of the box. Width must satisfy the CSS length syntax.
- query_delay(+Seconds)
- Wait until no more keys are typed for Seconds before sending the query to the server.
- expand_value(ValueIn, Value)[private]
- Allow for e.g.,
p(q)
to use the value from the HTTP-parameterq
. - ac_find_literal(+Request)[private]
- Perform autocompletion for literals and resources. The reply is a JSON object that is normally used in a YUI autocomplete widget.
- ac_objects(+How, +Query, +Filter, -Objects)[private]
- ac_object(+How, +Query, +Filter, -Object)[private]
- search_filter(+Filter, +Resource) is semidet
- True if Filter holds for Resource. Defined filters are:
- true
- Always true
- graph(Graph)
- The triple providing the literal must reside in Graph.
Undocumented predicates
The following predicates are exported, but not or incorrectly documented.