This property is set by SfsApi class if it is passed to it on construction. _sfsApi is used to construct this facet's queries and to access event stream. Without setting this property, this facet cannot function properly.
True if this facet is currently fetching options.
Current facet options.
Abstract method for building query used for fetching this facet options from current state. State of SfsApi should be accounted too. This method is implemented in individual facet types.
options query
facet constraints
Returns if this facet is active. Active facets are facets with a value and thus should be accounted in SfsApi all constraints.
Transforms bindings stream from SPARQL endpoint to {@link FacetOption[]} structure. Bindings variables are identified by optionValueVariable, optionCountVariable and optionLabelVariable.
stream to process
stream of facet options
Fetches and sets new options from current state. Emits events of fetch progress.
Generated using TypeDoc
Class representing facet and its state. Handles facet updates and fetching its own options.
Can be extended to create custom facet.