diegodlh created this task.
diegodlh added projects: MediaWiki-API, Wikidata.
Restricted Application added a subscriber: Aklapper.

TASK DESCRIPTION
  Wikidata API's wbsearchentities 
<https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities> 
action "Searches for entities using labels and aliases".
  
  Wikidata has a limit of 250 characters for labels and aliases.
  
  As a result, any search using wbsearchentities for a query longer than 250 
characters would return an empty array. Therefore, a user may be led to think 
no item exists for their query (possibly leading to the creation of 
duplicates), when actually their query made no sense in the first place.
  
  Consider the following example. The full name of the work described by 
Q106923254 is "Manuel de l'amateur de la gravure sur bois et sur métal au XVe 
siècle: Contenant un catalogue des gravures xylographiques se rapportant aux 
saints et saintes, sujets religieux, mystiques et profanes calendriers, 
alphabets, armoiries, portraits et suivi d'une specification des impostures: 
avec des notes critiques, bibliographiques et iconologiques". The user who 
created it decided to name it "Manuel de l'amateur de la gravure sur bois et 
sur métal au XVe siècle", because the original title exceeded the 250-character 
limit.
  
  A user (app or service, such as Wikidata's reconciliation service) wanting to 
know if there is an item in Wikidata for this work, may be tempted to use 
wbsearchentities with the full name as query. The Wikidata API would then 
return an empty array, as if the item did not exist.
  
  I think a safer option would be that it returned an error instead.

TASK DETAIL
  https://phabricator.wikimedia.org/T284032

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: diegodlh
Cc: Aklapper, diegodlh, Invadibot, maantietaja, Akuckartz, WDoranWMF, 
DannyS712, Nandana, Amorymeltzer, Lahi, Gq86, GoranSMilovanovic, QZanden, 
LawExplorer, Sethakill, dg711, _jensen, rosalieper, Scott_WUaS, Wikidata-bugs, 
aude, jayvdb, Mbch331
_______________________________________________
Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org
To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org

Reply via email to