Implemented a link to the SPARQL query for the author's list of works at the Wikidata Query Service

This merge request introduces a link positioned just below the “List of Works” section, allowing users to view the exact SPARQL query used to generate the author’s works.

Specifically:

a. Created a function retrieve_query_with_link() to return both:

  • the SPARQL query link

  • the list of results from the Wikidata Query Service

b. Updated the getWorks() method in the Author class to handle the new return format from retrieve_query

c. Updated the works_list() route in app.py to align with these changes

d. Modified the works_list route and template (works-list.html) to display the retrieved SPARQL query link below the list of works

**Before: ** image

**Now: ** image image

Edited by Sopzy

Merge request reports

Loading