Page MenuHomePhabricator

At an author's list of works, show a link to the SPARQL query at the Wikidata Query Service
Closed, ResolvedPublicFeature

Assigned To
Authored By
Pepe_piton
Jun 20 2025, 10:16 PM
Referenced Files
Restricted File
Oct 14 2025, 3:00 AM
F66748434: Screen Shot 2025-10-13 at 10.00.38 PM.png
Oct 13 2025, 9:03 PM
F66748361: imagen.png
Oct 13 2025, 8:17 PM
F66738799: image.png
Oct 8 2025, 3:09 PM
F66738797: image.png
Oct 8 2025, 3:09 PM

Description

Feature summary: On each author's list of work add a link to the Wikidata Query Service. By clicking the link, the user navigates to the WQS, prefilled with the query that generated Paulina's page.

Benefits: Paulina has several pages that are the result of Wikidata queries, but users cannot see the process by which the pages were generated. That process, while recognizable by viewing Paulina's source code, is hidden from the user. Adding a link to the query that generates a page would add transparency and also allow users familiar with SPARQL to reuse those queries for other use cases.

Event Timeline

Pepe_piton triaged this task as Medium priority.
Nat_WDU renamed this task from Show SPARQL queries to Show link to SPARQL query at an author's list of works.Sep 25 2025, 2:53 PM
Nat_WDU updated the task description. (Show Details)
Nat_WDU renamed this task from Show link to SPARQL query at an author's list of works to At an author's list of works, show a link to the SPARQL query at the Wikidata Query Service .Sep 25 2025, 2:56 PM
Nat_WDU removed Pepe_piton as the assignee of this task.
Nat_WDU updated the task description. (Show Details)
Sopzy renamed this task from At an author's list of works, show a link to the SPARQL query at the Wikidata Query Service to At an author's list of works, show a link to the SPARQL query at the Wikidata Query Service.Oct 8 2025, 3:17 PM
Sopzy claimed this task.

hi @Pepe_piton @Nat_WDU
i made a merge request related this issue:-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/66
changes made:-

  • Added a Wikidata Query Service (WQS) link to each author's works list.
  • Users can view the SPARQL query and reuse it.
  • Tested locally — link works and page renders correctly.

I'd appreciate it if you could take a look at my work and provide feedback. I want to make sure I'm meeting expectations and understand any areas for improvemen

Hello @Sopzy, @Oluwatumininu.m and @Dipanshu1223 , the three of you managed to make a good working implementation of this, congrats!

@Dipanshu1223 I really like that your implementation is so simple! However, the query is not formatted, so the user ends up seeing a query all in one line, which is hard to read

imagen.png (127×1 px, 33 KB)

Also, I think its better for the links’ wording to read “View this query at the Wikidata Query Service” since WQS is not a familiar term for all Paulina’s users

This task is still open if you want to submit improvements for your MRs, and for new applicants to submit their own. Thankseveryone!

Hello @Sopzy, @Oluwatumininu.m and @Dipanshu1223 , the three of you managed to make a good working implementation of this, congrats!

@Dipanshu1223 I really like that your implementation is so simple! However, the query is not formatted, so the user ends up seeing a query all in one line, which is hard to read

imagen.png (127×1 px, 33 KB)

Also, I think its better for the links’ wording to read “View this query at the Wikidata Query Service” since WQS is not a familiar term for all Paulina’s users

This task is still open if you want to submit improvements for your MRs, and for new applicants to submit their own. Thankseveryone!

Thank you for the feedback @Nat_WDU

I have made the changes and updated my MR. https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/71/commits

Screen Shot 2025-10-13 at 10.00.38 PM.png (730×2 px, 128 KB)

hi @Nat_WDU
thanks for feedback
i made some changes related this issue:-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/66
changes made:-
add text:- View this query at the Wikidata Query Service
the query is formatted now
image
{F66748932}

Hello @System625 ! I don't think it's a good idea to import requests in the middle of the definition. Let me know if you have any specific reasons for doing so

My bad @Nat_WDU ,
I have fixed it! I've moved the requests import to the top of the file. There was no specific reason for the inline import, I just didn't notice it before pushing. Thanks for the review!

Good job, @System625 . I appreciate that you are using the language selected by the user for the query, and that you've updated i18n files.

@Dipanshu1223 just realized you are hardcoding "en" when we could pass the user's languade to the query. Good job reformatting the query!

Good job, @System625 . I appreciate that you are using the language selected by the user for the query, and that you've updated i18n files.

Thank you very much for the feedback, it means a lot :)

hey @Nat_WDU ,
thanks for feedback
i forgot test other language
i made some changes related this issue::-https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/66/diffs
Changes made:

  • Added support for all interface languages (replaced hardcoded “en” with the user’s selected language).

Please kindly review, thank you!

Hello @Sopzy, @Oluwatumininu.m and @Dipanshu1223 , the three of you managed to make a good working implementation of this, congrats!

@Dipanshu1223 I really like that your implementation is so simple! However, the query is not formatted, so the user ends up seeing a query all in one line, which is hard to read

imagen.png (127×1 px, 33 KB)

Also, I think its better for the links’ wording to read “View this query at the Wikidata Query Service” since WQS is not a familiar term for all Paulina’s users

This task is still open if you want to submit improvements for your MRs, and for new applicants to submit their own. Thankseveryone!

@Nat_WDU Thank you for this feedback.

I'll update the hyperlink text to show "View this query at Wikidata Query Service"

Hello @Sopzy, @Oluwatumininu.m and @Dipanshu1223 , the three of you managed to make a good working implementation of this, congrats!

@Dipanshu1223 I really like that your implementation is so simple! However, the query is not formatted, so the user ends up seeing a query all in one line, which is hard to read

imagen.png (127×1 px, 33 KB)

Also, I think its better for the links’ wording to read “View this query at the Wikidata Query Service” since WQS is not a familiar term for all Paulina’s users

This task is still open if you want to submit improvements for your MRs, and for new applicants to submit their own. Thankseveryone!

@Nat_WDU Thank you for this feedback.

I'll update the hyperlink text to show "View this query at Wikidata Query Service"

I made the change @Nat_WDU

Thanks!

https://gitlab.wikimedia.org/toolforge-repos/paulina/-/merge_requests/11/diffs?commit_id=b9e8a52b9a4f46f3ed8cefcb3930729cd13dceb1

Merged @Dipanshu1223's solution. Thanks everyone for your work!