ItamarWMDE added a comment.
Right, I agree that it shouldn't be re-computed by the consumer, but after a short discussion with @WMDE-leszek I realized that this "best rank" is not core to the data model <https://www.mediawiki.org/wiki/Wikibase/DataModel#Ranks_of_Statements> that we keep referring to, it is derived from it though in the paragraphs below it. I think we can, however, add a union to the parameter to indicate that we want both ranks and ask to order them by the rank, so that all a re-user has to do is use the top of the list returned by the response from: `rank=preferred|normal&orderby=rank`. In my opinion, this is the best way to avoid delegating this sifting logic to the client, while maintaining the flexibility and simplicity that the data model affords as it is currently defined. IMO I don't think we have to worry about consumers potentially requesting other ranks of statements since we currently allow them to do so, and giving re-users the opportunity to request statements beyond `best-ranked` will allow them top create their own interpretations of the data model, for instance, just off the top of my mind, an application that compares the top two or three statements returned from `rank=preferred|normal&orderby=rank` to determine which one is truly the "best ranked". TASK DETAIL https://phabricator.wikimedia.org/T305535 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: ItamarWMDE Cc: Addshore, WMDE-leszek, Lydia_Pintscher, Aklapper, Nikki, Mahir256, Bugreporter, Erdinc_Ciftci_WMDE, guergana.tzatchkova, ItamarWMDE, noarave, Michael, Lucas_Werkmeister_WMDE, Astuthiodit_1, karapayneWMDE, Invadibot, maantietaja, Akuckartz, Nandana, lucamauri, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, Bodhisattwa, Scott_WUaS, Wikidata-bugs, aude, Mbch331
_______________________________________________ Wikidata-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
