"SMWSearch" arama özelliği

From semantic-mediawiki.org
Arama özellik bilgileri
Bu sayfada "SMWSearch" özelliği, yani anlamsal sorgulara doğrudan MediaWiki'nin standart arama arayüzünden izin veren bir arama motoru açıklanmaktadır.

SMWSearch özelliii Semantic MediaWiki 2.1.0Released on 19 January 2015 and compatible with MW 1.19.0 - 1.24.x. sürümünden beri desteklenmektedir.1 Arama terimini anlamsal bir sorgu olarak yorumlamaya çalışarak doğrudan MediaWiki'nin standart aramasından semantik sorgulara izin veren bir arama motoru sağlar. Başarılı olursa, sorguya göre sayfalar döndürülür, yoksa varsayılan arama motoruna geri döner.

Special page "Search" will show an informatory message2 including a cheat sheet3 in case this feature was enabled as well as the optional input assistance feature starting with Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x.. The informatory message for the search including the a cheat sheet may be disabled by a user via the respective user preference.4

More importantly Semantic MediaWiki 3.0.0Released on 11 October 2018 and compatible with MW 1.27.0 - 1.31.x. also brought a full-text search on unstructured data, i.e. content not stored semantically via annotations, indicated by syntax element in:.5


Entering [[Category:City]] [[Located in::Germany]] into the standard search field of the wiki's skin or on special page "Search" will return all pages matching these selection parameters together with additional page content, e.g. if used on this wiki: click here.

The selection of pages will match the following inline query:

 [[located in::Germany]]

Entering [[Category:City]] [[Located in::Germany]] [[in:Points of interest]] will additionally highlight "Points of interest" within the additional page content shown for the pages resulting from the search.

The display of results will be styled as special page "Search" usually outputs search results.


Users of "SMWSearch" should use the following configuration settings in their "LocalSettings.php" file after the enableSemantics() call:

$wgSearchType = 'SMWSearch';
$smwgFallbackSearchType = null; // default
  • Configuration parameter $wgSearchType (MediaWiki.org) is provided by MediaWiki itself while the option SMWSearch is provided by Semantic MediaWiki.
  • If $wgSearchType was set to anything other than null prior to changing it to SMWSearch you will have to set configuration parameter $smwgFallbackSearchTypeSets the search engine to fall back to in case SMWSearch is used as custom search engine but is unable to interpret the search term as an semantic query. to this preceding setting or choose an alternative default search engine.

See also[edit]


  1. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:450
  2. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:2738
  3. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:3123
  4. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:3120
  5. ^  |  Semantic MediaWiki: GitHub pull request gh:smw:3116