Semantic MediaWiki and related extensions
|
SMWSearch is the SearchEngine
interface to provide classes and functions to integrate Semantic MediaWiki with Special:Search
.
It adds support for using #ask
queries in the Special:Search
context and provides an extended search profile where user defined forms can empower users to find and match entities using property and value input fields.
In cases where the systems detects forms maintained using the SEARCH_FORM_SCHEMA
, an extended profile will be visible on the Special:Search
page allowing users to match and search subjects with help of Semantic MediaWiki.
Classes that provide an interface to support MW's SearchEngine
by transforming a search term into a SMW equivalent expression of query elements.
SMW │ ├─ QueryBuilder ├─ SearchEngineFactory ├─ ExtendedSearchEngine # Implements the `SearchEngine` │ └─ ExtendedSearch ├─ SearchResult # Individual result representation └─ SearchResultSet # Contains a set of results return from the `QueryEngine`
Classes that provide an additional search form to support structured searches in Special:Search
with the help of the SpecialSearchProfileForm
hook.
SMW │ └─ ProfileForm # Interface to the `SpecialSearchProfileForm` hook └─ Forms # Classes to generate a HTML from a JSON definition
SEARCH_FORM_SCHEMA
schema to define forms to be used in the extended Special:Search
profile