Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #2554 LIMIT retracted works returns #2555

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading