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.
- 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.