Page MenuHomePhabricator

Provide more useful redirect for statement nodes (wds:…)
Closed, ResolvedPublic

Description

As a user of the Wikidata RDF export, e. g. via the query service, I want to be able to open the URI for a statement node and go right to the corresponding statement on the entity page.

Problem:
The URI only redirects to the entity page, not to the particular statement. This can make it hard to find the correct statement, especially since the URI doesn’t contain the property ID (which would otherwise be a useful hint to find the statement).

Example:
wds:Q1-8983b0ea-4a9c-0902-c0db-785db33f767c is the URI for the “instance of” statement of the Q1 item. It currently only redirects to Special:EntityData/Q1. It would be nice if it would redirect to Special:EntityData/Q1#Q1$8983b0ea-4a9c-0902-c0db-785db33f767c instead.

BDD
GIVEN I run a query that returns statement nodes
WHEN I click the link for one of the statement nodes
THEN I am redirected to the entity page and land right at the correct statement node

Acceptance criteria:

  • The redirect correctly sets a fragment corresponding to the statement ID.

Event Timeline

Change 552061 had a related patch set uploaded (by DCausse; owner: DCausse):
[operations/puppet@production] [wikidata] provide better link to statement information

https://gerrit.wikimedia.org/r/552061

@dcausse Is there anything that you need from the Wikidata team/ that is blocking you to continue with this patch?

Change 552061 merged by Gehel:
[operations/puppet@production] [wikidata] provide better link to statement information

https://gerrit.wikimedia.org/r/552061