In the dumps you are seeing the internal serialization format which is not stable and can change and may differ between different versions of various items created at different times.

Currently in the internal format will do the following:
No aliases will appear as       "aliases":[]
Aliases will appear as      "aliases":{"en":["no1","no1"]}

Addshore


On 27 February 2014 14:19, Fredo Erxleben <fredo.erxleben@tu-dresden.de> wrote:
Hey there,

I stumbled upon an inconsistency when parsing the dumpfile JSON:

In item Q58404 (Haaften) the aliases are an empty array, as in

"aliases":[]

The same holds for Q15982 (Wernigerode), wich also has no aliases and therefor an empty array.

In item Q189889 (Chicago) the aliases are an object:

"aliases":{…}

The same is the case for Q42 (Douglas Adams).

Which one should it be now? I suspect there is an error during the writing of the dumpfiles…

-- Fredo

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