Hi Anthony,

that's the internal data structure, and this is bound to change without notice. I am sorry if this caused trouble.

If this is a common concern, we will start documenting and announcing those changes. It really should only concern the people processing the XML dumps.

We would prefer to actually create a more stable output dump of the knowledge - I guess this would be more appreciated (like the RDF dump that Markus has posted about recently).

The call to get the item description should have been 

<https://www.wikidata.org/w/api.php?action=wbgetentities&format=json&ids=Q1>

This should provide you with a more stable answer.

Cheers,
Denny




2013/8/1 Huidong Zhang <anthonyzhang@google.com>
Hi,

I noticed that the response from "http://www.wikidata.org/w/api.php?action=query&titles=Q1&prop=revisions&rvprop=content&format=xml" changed from "entity":"q1" to "entity":["item",1].
Is this change applied to all pages?

In the latest wikidata dump (http://dumps.wikimedia.org/wikidatawiki/latest/wikidatawiki-latest-pages-meta-current.xml.bz2), both formats exist at the same time. For example, page Q100 has: "entity":["item",100], while page Q100000 has "entity":"q100000". Is it expected? Will the next dump have same format?
By the way, "http://www.wikidata.org/w/api.php?action=query&titles=Q100000&prop=revisions&rvprop=content&format=xml" return "entity":["item",100000].

Thanks.

--
Best wishes,
Anthony Zhang (Huidong Zhang)

_______________________________________________
Wikidata-l mailing list
Wikidata-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-l




--
Project director Wikidata
Wikimedia Deutschland e.V. | Obentrautstr. 72 | 10963 Berlin
Tel. +49-30-219 158 26-0 | http://wikimedia.de

Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e.V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/681/51985.