Skip to content

Commit

Permalink
Fix #2554 LIMIT retracted works returns
Browse files Browse the repository at this point in the history
Add LIMIT to SPARQL query on work index page for recently retracted works.
  • Loading branch information
fnielsen committed Oct 22, 2024
1 parent 02727ec commit dedc7e3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions scholia/app/templates/work-index_recently-retracted-works.sparql
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
SELECT DISTINCT
?retracted_work ?retracted_workLabel (CONCAT("/work/", SUBSTR(STR(?retracted_work), 32)) AS ?retracted_workUrl)
?retracted_work ?retracted_workLabel
(CONCAT("/work/", SUBSTR(STR(?retracted_work), 32)) AS ?retracted_workUrl)

?date
?retraction ?retractionLabel (CONCAT("/work/", SUBSTR(STR(?retraction), 32)) AS ?retractionUrl)

?retraction ?retractionLabel
(CONCAT("/work/", SUBSTR(STR(?retraction), 32)) AS ?retractionUrl)
WITH {
# Find retracted papers indicated by instance of retracted paper,
# by retraction notice property or by significant event
Expand All @@ -25,4 +29,5 @@ WHERE {
BIND(COALESCE(xsd:date(COALESCE(?retraction_datetime, ?keyevent_datetime)), "Unknown date") AS ?date)
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY DESC(?date)
ORDER BY DESC(?date)
LIMIT 500

0 comments on commit dedc7e3

Please sign in to comment.