ReconciliationAPI
From CODECS Dev
Special:ReconciliationAPI - documentation to ship with the extension (work in progress)
Semantic MediaWiki
[...]
Just MediaWiki
Lets you search by pagename or by displaytitle, with a further option to restrict by namespace or by category. Independent of Semantic MediaWiki, except perhaps for a future option that lets you map SMW properties on to search results.
Since display titles are just that and are not intended for optimised SQL searches, searching by display title comes with some limitations: HTML tags can get in the way. There is no dedicated 'display title for search' in MW.
- https://codecs.vanhamel.nl/api.php?action=recon-suggest-entity&source=mw&substrpattern=stringprefix&substr= (beginning of string)
- https://codecs.vanhamel.nl/api.php?action=recon-suggest-entity&source=mw&substrpattern=allchars&substr= (search anywhere in the string)
To do
- Naming. Rather than
action=recon-suggest-entity&source=mw
oraction=recon-suggest-entity&source=smw
, maybe useaction=recon-suggest-mw-entity
oraction=recon-suggest-smw-entity
(similar for cargo). Or have it guess the source on the basis of the presence or absence of other parameters??- What then about the 'profile' parameter?
Documentation
- See eg https://codecs.vanhamel.nl/Special:ApiSandbox#action=recon-suggest-entity&format=json for the required parameters.
See also
- ReconciliationAPI/suggest-mw-type (service for suggesting a MW category)