Last modified: 2012-11-08 11:26:14 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43534, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41534 - add title normalization to wbgetentities
add title normalization to wbgetentities
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
WikidataRepo (Other open bugs)
unspecified
All All
: Unprioritized enhancement (vote)
: ---
Assigned To: Wikidata bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-30 10:21 UTC by merl
Modified: 2012-11-08 11:26 UTC (History)
3 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description merl 2012-10-30 10:21:47 UTC
If i am requesting a page title that is not normalized like 
http://de.wikipedia.org/w/api.php?action=query&prop=langlinks&titles=New_York_City

the response includes a normalized tag 
 <normalized>
  <n from="new_York_City" to="New York City" /> 
 </normalized>

and the normalized page

 <page pageid="204956" ns="0" title="New York City">


For wbgetentities this should also be implemented.
http://wikidata-test-repo.wikimedia.de/w/api.php?action=wbgetentities&sites=dewiki&titles=New_York_City currently only returns

<entity site="dewiki" title="New_York_City" missing="" />

although

http://wikidata-test-repo.wikimedia.de/w/api.php?action=wbgetentities&sites=dewiki&titles=New%20York%20City

exists.
Comment 1 denny vrandecic 2012-11-08 11:26:14 UTC
No, the normalization cannot be performed by Wikidata. It has to be done against the home wiki, e.g. first normalize against the Wikipedia and then use it on Wikidata. We do not know, e.g. that the namespaces "Benutzerin" and "Benutzer" on de.wp are normalized appropriately, so Wikidata would either need to ask the other wiki itself, or the caller does it beforehand. The first solution provides a potential DOS attack vector, I guess, so we go for the latter.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links