Closed thadguidry closed 2 years ago
Yes, this is normal, the suggest endpoint of the reconciliation service that you are using is for properties, not for items.
Use /en/suggest/entities
(not /en/suggest/properties
) if you want to get suggestions for items.
Ah! (drinks more coffee to make the day just a bit less frustrating)
Summary
I have run some simple tests and there are differences between what is returned by
wbsearchentities
directly from a browser and what is returned from thesuggest.py
with it'sfind_something()
that useswbsearchentities
and noting the differences in resullts with the same parameters used against both services.This reflects itself as either very limited results or an empty array returned as @diegodlh mentioned in first comment in Issue #116 such as in clients like OpenRefine:
Results
https://wdreconcile.toolforge.org/en/suggest/property?prefix=massach&spell=always&exact=false&scoring=schema&prefixed=true&type=Q207326
https://www.wikidata.org/w/api.php?action=wbsearchentities&format=json&language=en&search=massach&type=item&uselang=en
Additional Context
It doesn't look like
find_something()
is tested intest_suggest.py
with something like@wetneb The other thought is that
&type=Q207326
and&type=item
are completely different. Maybe this is an OpenRefine Reconcile column dialog improvement itself? My thought is that the As Property suggest dropdown boxes in OpenRefine Reconcile column dialog when used with Wikidata should always use&type=item
or maybe I'm missing something?