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

Create a /missing page for awards #670

Open
Daniel-Mietchen opened this Issue Apr 3, 2019 · 0 comments

Comments

1 participant
@Daniel-Mietchen
Copy link
Collaborator

Daniel-Mietchen commented Apr 3, 2019

with queries such as this one about unidentified co-authors of awardees:

SELECT
  # Number of works with the coauthor
  ?count

  # The coauthor as a string, - rather than as an item
  ?coauthor

  # Build URL to the Author disambiguator tool
  (CONCAT(
      'https://tools.wmflabs.org/author-disambiguator/?doit=Look+for+author&name=',
      ENCODE_FOR_URI(?coauthor)) AS ?resolver_url)
WITH {
  SELECT (COUNT(?work) as ?count) ?coauthor WHERE {
    ?work wdt:P50 ?author .
    ?author wdt:P166 wd:Q80061 .
    ?work wdt:P2093 ?coauthor .
  }
  GROUP BY ?coauthor
  LIMIT 2000
} 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(?count)

@Daniel-Mietchen Daniel-Mietchen added this to To do in Awards via automation Apr 3, 2019

@Daniel-Mietchen Daniel-Mietchen added this to To do in Missing via automation Apr 3, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.