FYI:
I submitted
https://gerrit.wikimedia.org/r/#/c/83643/ to core which will
fix this.
item.getID() (and property, claim) will now return the uppercase id.
-- Legoktm
---------- Forwarded message ----------
From: Daniel Kinzler <daniel.kinzler(a)wikimedia.de>
Date: Tue, Sep 10, 2013 at 3:11 AM
Subject: [Wikidata-tech] BREAKING CHANGE: Wikidata API changing top
upper-case IDs.
To: "Discussion list for the Wikidata project." <
wikidata-l(a)lists.wikimedia.org>gt;, wikidata-tech <
wikidata-tech(a)lists.wikimedia.org>gt;,
mediawiki-api-announce(a)lists.wikimedia.org
Hi all.
With today's deployment, the Wikibase API modules used on
wikidata.org will
change from using lower-case IDs (q12345) to upper-case IDs (Q12345). This
is
done for consistency with the way IDs are shown in the UI and used in URLs.
The API will continue to accept entity IDs in lower-case as well as
upper-case.
Any bot or other client that has no property or item IDs hardcoded or
configured
in lower case should be fine.
If however your code looks for some specific item or property in the output
returned from the API, and it's using a lower-case ID to do so, it may now
fail
to match the respective ID.
There is potential for similar problems with Lua code, depending on how the
data
structure is processed by Lua. We are working to minimize the impact there.
Sorry for the short notice.
Please test your code against
test.wikidata.org and let us know if you find
any
issues.
Thanks,
Daniel
PS: issue report on bugzilla:
https://bugzilla.wikimedia.org/show_bug.cgi?id=53894
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech