As far as I can tell, this is not possible via the API directly. However,
you can get the order of properties from MediaWiki:Wikibase-SortedProperties
<https://www.wikidata.org/wiki/MediaWiki:Wikibase-SortedProperties>, and
sort the response you get accordingly. If you’re using Lua, there’s also
the mw.wikibase.getPropertyOrder()
<https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.getPropertyOrder>
and mw.wikibase.orderProperties( propertyIds
<https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.orderProperties>
)
<https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua#mw.wikibase.orderProperties>
functions.
2017-11-28 19:22 GMT+02:00 Vladimir Ryabtsev <greatvovan(a)gmail.com>om>:
I find the order of claims on web site useful, but
when requesting entity
data through API (action=wbgetentities) it got lost.
How the claims are ordered on an entity web page and how to restore the
order in API response?
--
Vlad
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
Без
вирусов.
www.avast.ru
<https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail>
<#m_-3502740646293738920_DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
_______________________________________________
Wikidata-tech mailing list
Wikidata-tech(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
--
Lucas Werkmeister
Software Developer (Intern)
Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin
Phone: +49 (0)30 219 158 26-0
https://wikimedia.de
Imagine a world, in which every single human being can freely share in the
sum of all knowledge. That‘s our commitment.
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/029/42207.