Skip to content

T397554: Add Wikidata Query Service link to works list

the main change in file works-list.html and app.py

changes made:-

  • Added a Wikidata Query Service (WQS) link to each author's works list.

  • Users can view the SPARQL query and reuse it.

  • Used urllib.parse is a built-in standard Python library

  • Used quote(query) to encode SPARQL queries into URL-safe format

  • Added wqs_link variable to generate direct WQS link

  • Passed wqs_link to templates for viewing the formatted SPARQL query on Wikidata

  • Tested locally — link works and page renders correctly.

Edited by Dipanshu1223

Merge request reports

Loading