Hi,

the autocomplete box is using the wbsearchentities api. You could try to
copy the jquery.wikibase.entityselector.js from
wikibase/lib/resources/jquery.wikibase it looks like it works independently
from wikibase. It needs the jqueryui suggester.

best regards,

Christian



2014-04-28 18:40 GMT+02:00 Maxime Lathuilière <[email protected]>:

>  Hi,
>
> I'm looking for a way to reproduce the autocomplete on wikidata search
> field in an external app (to tag resources with wikidata entities ids), but
> so far I couldn't find what could allow me to do this in the API doc.
> In a little experiment <https://github.com/maxlath/wikidata-autocomplete>,
> I tried to use the API action *wbsearchentities*, but it appear to be
> inefficient until I reach the full name... Is there already a way to query
> such an "autocomplete API" or any plans to implement one? Or even better,
> is there a way to easily re-use the wikidata search field widget? in a
> non-PHP project? :D
>
> Any clue welcome :)
>
> Best regards,
>
> Max
>
> --
>
>
> Maxime Lathuilière
> maxlath.eu
> @maxlath
> Zorglub27 <https://www.wikidata.org/wiki/User:Zorglub27>
> Contributions<https://www.wikidata.org/wiki/Special:Contributions/Zorglub27>
>
> _______________________________________________
> Wikidata-l mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/wikidata-l
>
>
_______________________________________________
Wikidata-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata-l

Reply via email to