Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign upIn /missing page for award, add panel on publications with missing topics #845
Milestone
Comments
Daniel-Mietchen
added this to To do
in 3. Improving integration with WikiCite curation workflows, e.g. around missing data
via automation
Oct 7, 2019
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Here is a first go at this: SELECT
?citations ?work ?workLabel (?work AS ?wikidata_url)
WITH {
SELECT (COUNT(?author) as ?count) ?work WHERE {
# Works by author
?work wdt:P50 ?author .
# Author who received an award
?author wdt:P166 wd:Q80061 .
# Work does not have a main subject statement
FILTER NOT EXISTS { ?work wdt:P921 ?topic . }
}
GROUP BY ?work
ORDER BY DESC(?count)
LIMIT 2000
} AS %works
WITH {
SELECT (COUNT(?work1) as ?citations) ?work WHERE {
INCLUDE %works
# Works cited
OPTIONAL { ?work1 wdt:P2860 ?work }.
}
GROUP BY ?work
ORDER BY DESC(?citations)
LIMIT 200
} AS %result
WHERE {
INCLUDE %result
# Label the results
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,da,de,es,fr,jp,nl,no,ru,sv,zh". }
}
ORDER BY DESC(?citations)
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Daniel-Mietchen commentedOct 7, 2019
similar to the one we have on a /missing page for authors