hoo created this task.
hoo added projects: Wikidata, Wikibase-Lua.
Herald added a subscriber: Aklapper.

TASK DESCRIPTION

Add a convenience function to filter a list of statements (as obtained by mw.wikibase.getBestStatements) by qualifier-value. This function would probably look like filterByQualifier( statements, qualifierPropertyId, qualifierDataValue ), where qualifierDataValue is either the full data value… or we special case this for entity ids, so that filterByQualifier( statements, qualifierPropertyId, 'Q123' ) would work.

Alternatively (or additionally) this could itself fetch the statements to filter: filterByQualifier( entityId, qualifierPropertyId, qualifierDataValue ), where the question regarding qualifierDataValue from above remains.

Maybe put this into a new mw.wikibase.filter library.

(This was discussed at the Barcelona Hackathon)


TASK DETAIL
https://phabricator.wikimedia.org/T195535

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: hoo
Cc: Aklapper, Lydia_Pintscher, thiemowmde, Tpt, Vriullop, hoo, Lahi, Gq86, GoranSMilovanovic, QZanden, LawExplorer, Wikidata-bugs, aude, Mbch331
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to