A NavbarSearchAppearance is identical to the NavbarAppearance, but includes a search input field. Please consult the NavbarAppearance page for directions how to create a navigation bar (menu).

When a user enters a search term, a search request will be posted to the /query/search?term={search question}. You should include a representation to handle this search request.

Navbar appearanceSearch appearance


The example below shows a representation for the search part! For an example of the Navbar itself, go to the NavbarAppearance page.

@prefix elmo: <http://bp4mc2.org/elmo/def#>.
@prefix xhtml: <http://www.w3.org/1999/xhtml/vocab#>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
@prefix stage: <http://localhost:8080/stage#>. 
stage:search a elmo:Representation;
	elmo:url-pattern "/query/search";
	elmo:query '''
		select ?result ?result_label
		where {
			?result rdfs:label ?result_label
			filter regex(?result_label,"@TERM@",'i')