Page MenuHomePhabricator

do not just query for truthy data in the query builder
Closed, ResolvedPublic2 Estimated Story Points


The queries the query builder currently produces only take into account the truthy part of Wikidata (= all statements with best rank). However for the maintenance usecase it is important to be able to query for all data, not just the truthy part.
We need to adjust existing code to generate queries accordingly.

Acceptance criteria:

  • Existing code no longer produces truthy-only queries

Event Timeline

Restricted Application added a project: Wikidata. · View Herald TranscriptOct 22 2020, 2:02 PM
Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Lydia_Pintscher set the point value for this task to 2.Oct 27 2020, 10:10 AM
Michael added a subscriber: Michael.Mon, Nov 9, 6:32 PM

The code needs to be adjusted from ?item wdt:P31 wd:Q5 . to one of the following, which are all equivalent:

?item p:P31 ?instance .
?instance ps:P31 wd:Q5 .
?item p:P31 [ ps:P31 wd:Q5 ] .
?item p:P31/ps:P31 wd:Q5 .

(as I learned 30 minutes ago)

More background around the datamodel and what those letters above mean:

Especially this picture is helpful:

Restricted Application added a project: User-Ladsgroup. · View Herald TranscriptThu, Nov 12, 8:24 AM

looks good from my side. waiting for @Lydia_Pintscher to also take a look

Maintenance_bot moved this task from Incoming to Done on the User-Ladsgroup board.Mon, Nov 16, 1:15 PM