Page MenuHomePhabricator

[Minor issue] Wrong tooltip on wd:P... text
Open, LowPublic

Description

The tooltip displayed on wd:P518 is wrong.

1/ Go to https://query.wikidata.org/
2/ Copy and paste this SPARQL query:

SELECT ?item ?itemLabel ?prop ?propLabel ?rank ?value 
WHERE
{
	?item p:P1971 [ ?pq ?value; wikibase:rank ?rank ] .
	?prop wikibase:qualifier ?pq .
	FILTER( ?prop IN ( wd:P518 ) ) .
}
LIMIT 100

(a special case, with wd: for a property, because it's a qualifier)
3/ With your trackpad, go to the text wd:P518

Expected : Display a tooltip of property P518

Now : A tooltip is displayed with title of Q18055686

Note: My language used in Wikidata Query Service tool : French (fr), but the issue is the same with English

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Manu1400 added a project: good first task.
Manu1400 updated the task description. (Show Details)

Hello @Manu1400 are you still finding the same problem? Is this still Open?

@Gopavasanth Yes, is this still open : I have the issue.

On this part

FILTER( ?prop IN ( wd:P518 ) ) .

Is this issue still opened if yes and if nobody has started I can give this a try?

@Aannand_Gupta: Hi and welcome! Thanks for your interest! See the upper left corner for the status ("Open"). Also, no need to ask. Thanks! :)

Yes, the problem is still here and open.

To maybe help go further and solve this problem, it appear for all properties (and not only P518) whenever a property is used after the wd: prefix (which is not meant to be done usually, this is a special case, it's legit but unusual).

@Manu1400: the display of Q18055686 is not totally unexpected here, this item indeed has for alias P518. Is Display a tooltip of property P518 really the expected tooltip?
As I said, this is a strange case and I'm not sure how to best deal with it. Ping @Lucas_Werkmeister_WMDE ?

@Manu1400: the display of Q18055686 is not totally unexpected here, this item indeed has for alias P518. Is Display a tooltip of property P518 really the expected tooltip?

That would make Q18055686 an appropriate suggestion if the user placed the cursor after wd:P518 and pressed Ctrl+Space to load autocompletion suggestions, but I don’t think that means it’s an appropriate tooltip. wd:P518 unambiguously refers to the property applies to part (P518), and that’s what the tooltip should show, in my opinion.

It would also be nice to show an appropriate tooltip for IDs like wd:L1, wd:L1-S1 and wd-L1-F1. (These currently don’t get any tooltip at all, as far as I can tell.)