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

TASK DESCRIPTION

This has been asked for multiple times in the Lua feedback round: Introduce a helper function that can select values from a specific point in time (as stated in qualifiers).

Potential difficulty is that sometimes such times are denoted by point in time (P585), sometimes by start time (P580)-end time (P582) pairs. Is handling for both of this in a single function needed?

These functions could look like this (where denotes the filter input):
mw.wikibase.filterTimeRangeSetByTime( …, time, startTime, endTime ) -> table (where startTime and endTime are the respective property ids)
mw.wikibase.filterTimedSetByTime( …, time, pointInTime ) -> table (where pointInTime is the respective property id)

Open questions:

  • Should we pass the property ids in as parameters (as suggested above), or encode them in configuration?
  • Should we create a new mw.wikibase.filter library for this (and further similar things), so that we don't need to bloat mw.wikibase?
  • How would the statements to be filtered be selected (denoted by above)? (entity id, property id) pairs? Passed in tables (obtained via mw.wikibase.getBestStatements/ entity.claims)?

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

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

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

Reply via email to