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

In work aspect, add query for Wikipedia articles citing the work #1092

Open
Daniel-Mietchen opened this issue Mar 29, 2020 · 1 comment
Open

In work aspect, add query for Wikipedia articles citing the work #1092

Daniel-Mietchen opened this issue Mar 29, 2020 · 1 comment

Comments

@Daniel-Mietchen
Copy link
Collaborator

@Daniel-Mietchen Daniel-Mietchen commented Mar 29, 2020

Here is a prototype for Updated world map of the Köppen-Geiger climate classification (Q21030635):

SELECT 
  DISTINCT ?item ?itemLabel 
WHERE {
  {   
   SELECT ?item  WHERE {
    SERVICE wikibase:mwapi {
      bd:serviceParam wikibase:endpoint "en.wikipedia.org" .
      bd:serviceParam wikibase:api "Generator" .
      bd:serviceParam mwapi:generator "search" .
      bd:serviceParam mwapi:gsrsearch "\"doi 10.5194/HESS-11-1633-2007\"" .
      bd:serviceParam mwapi:gsrlimit "max" .
      ?item wikibase:apiOutputItem mwapi:item .
    }
  } LIMIT 200
 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

The issue here is that the wikibase:mwapi service did not accept variables last time I checked (there is a Phabricator ticket for that somewhere, but I could not find it right now), so we would have to get the DOI (or perhaps other identifier) via Python or JavaScript and insert it into the query from there.

The same goes for changing the endpoint to another wiki.

Another test article: Age-specific mortality during the 1918 influenza pandemic: unravelling the mystery of high young adult mortality (Q30352787). More test data via Citations with identifiers in Wikipedia (Q51903355).

@Daniel-Mietchen

This comment has been minimized.

Copy link
Collaborator Author

@Daniel-Mietchen Daniel-Mietchen commented Mar 29, 2020

Found the Phabricator ticket at https://phabricator.wikimedia.org/T171303 .
At least for the endpoint, the issue has been solved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.