BachelorDragon.png

The bachelor programme Celtic Languages and Culture at Utrecht University is under threat.

Reconciliation API modules: recon-suggest-entity

From CODECS: Online Database and e-Resources for Celtic Studies
Service for suggesting wiki pages, with options, e.g. to restrict one's search to a MediaWiki category/categories or namespace.

Parameters

API documentation

Get pages based on a configuration profile:

api.php?action=recon-suggest-entity&profile=...&substr=...
Parameter name
Description
source
mw (for MediaWiki) or smw (for Semantic MediaWiki).
profile
Page ID of the configuration profile in the Recon namespace.
concept
Used only when source=smw. [...]
property
...
substr
The substring to autocomplete on.
substrpattern
Substring pattern... May be used to override the pattern set in the profile page.
cat
Used only when source=mw, the category or categories (comma-separated, without namespace prefix) to be searched.
ns
Used only when source=mw, the namespace or namespaces (comma-separated) to be searched, e.g. Main,Help.
displaytitle
Used only when source=mw. Set to 1 to search pages by display title; 0 to search by page title.

Developmemt

Semantic MediaWiki (source=smw)

MediaWiki (source=mw)

namespace = Subject

{{#recon-sitesearch: |apiurl=https://codecs.vanhamel.nl/api.php |apiurlparams=action=recon-suggest-entity origin=* source=mw ns=Subject substr= |targeturl=https://codecs.vanhamel.nl/Special:Search?search= |dev=true }}

category = Mabinogion

Shows the issue when using display title, formatted with italics (em or i), to search text.

{{#recon-sitesearch: |apiurl=https://codecs.vanhamel.nl/api.php |apiurlparams=action=recon-suggest-entity origin=* source=mw cat=Mabinogion substrpattern=allchars substr= |targeturl=https://codecs.vanhamel.nl/Special:Search?search= |dev=true }}

Notes

@todo: maybe drop additional source param (mw or smw, which is implicit from other params or data).

To get pages from a MediaWiki category or namespace:

api.php?action=recon-suggest-entity&source=mw&ns=...&substr=...
api.php?action=recon-suggest-entity&source=mw&cat=...&substr=...