Last modified: 2014-10-17 15:15:03 UTC
The titles given in the "titles=" parameters of the wbgetclaims module are expecting spaces, not underscores, while elsewhere, we always use underscores in the canonical title form. Basic normalization should be performed on the titles used to select items: strip leading/trailing whitespace, apply unicode normalization, replace " " with "_" (or vice versa, as needed). More advances normalization, especially involving namespaces, is not possible without calling the target wiki's API, which is too slow for this purpose. Converting the first character to upper case is a borderline case: it could be done, but we can't be sure that it's appropriate.
Related URL: https://gerrit.wikimedia.org/r/63967 (Gerrit Change I86c72ac3a9da52dfd3ee1aca86b247c59d3098ce)
Adam, is this still a problem?
yes
Not sure when this was fixed, but it seems to be fixed now: https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=The_Beatles https://www.wikidata.org/w/api.php?action=wbgetentities&sites=enwiki&titles=The%20Beatles both work for me (and give the same results).