Thanks for the link with sorted properties. Is this page updated automatically or maintained manually by someone? In latter case this looks weird to me, because the order may become not actual at some moment.

It is curious that when properties are used as qualifiers we have a separate field specifying the order (called ‘qualifiers-order’). Why not to add the same at the top-level of entity definition?

Vlad

29 нояб. 2017 г., в 12:06, Thiemo Kreuz <thiemo.kreuz@wikimedia.de> написал(а):

The order of properties as presented in the web interface is specified in https://www.wikidata.org/wiki/MediaWiki:Wikibase-SortedProperties . You can use the same list to order the data you get from any API response accordingly.

Note that, technically, the order of elements in a JSON object (curly brackets) is unspecified. This is what the JSON specification dictates. This becomes relevant when, for example, you are using a Java Set. You can iterate a Set, but the order will be pretty much randomized.

The order you can see in the wikidata.org API responses is basically the order in which the statements are stored in the database. This order mostly reflects the order in which the statements have been created. But this is not guaranteed and can change any time.

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