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

Gather publications from Wikidata item info #20

Open
TS404 opened this issue Mar 20, 2020 · 2 comments
Open

Gather publications from Wikidata item info #20

TS404 opened this issue Mar 20, 2020 · 2 comments

Comments

@TS404
Copy link
Collaborator

TS404 commented Mar 20, 2020

To ensure full coverage, also gather list of dois to crosscheck against other import datasets using Wikidata queries (e.g. 'MESH' P486 and 'main property' P921).

link in Wikidata WikiProject COVID-19

@serenasignorelli
Copy link

I adapted the queries from the suggested link to get also the DOIs. Here they are:

  • with main subject (P921) Sars-Cov-2, COVID-19, or the epidemic

SELECT DISTINCT ?item ?itemLabel ?pdate ?DOI
{
VALUES ?topics { wd:Q82069695 wd:Q84263196 wd:Q81068910 }
?item wdt:P31 wd:Q13442814.
?item wdt:P921 ?topics.
OPTIONAL { ?item wdt:P577 ?pdate }
OPTIONAL { ?item wdt:P356 ?DOI }
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}

  • with main subject molecular/structural biology of any SARS-related strain

SELECT ?item ?title ?topicLabel ?taxonLabel ?DOI
{
VALUES ?topic { wd:Q908902 wd:Q7202 }
?item p:P921 [ ps:P921 ?topic; pq:P642 ?taxon ].
?taxon wdt:P171 wd:Q278567.
?item wdt:P1476 ?title.
?item wdt:P356 ?DOI.
SERVICE wikibase:label { bd:serviceParam wikibase:language "en" } .
}

(sorry I've never worked on wikidata project, so I was not sure whether I may modify the project or not..)

@TS404
Copy link
Collaborator Author

TS404 commented Apr 7, 2020

Thanks @serenasignorelli. I only just saw this response. Very useful queries. I'll add them into the [R] script as I refactor it up as a package and tidier functions over the coming week.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants