Closed tibbs001 closed 4 years ago
Create lookup table of existing publications in wikidata (articles that have pmid, pmcid or doi) Reference those that exist. Create an instance of those that don't exist.
SELECT ?item ?pmid ?pmcid ?doi WHERE {?item p:P31/ps:P31/wdt:P279* wd:Q191067 . ?item wdt:P698 ?pmid . OPTIONAL { ?item wdt:P932 ?pmcid } OPTIONAL { ?item wdt:P356 ?doi } } LIMIT 100
Create lookup table of existing publications in wikidata (articles that have pmid, pmcid or doi) Reference those that exist. Create an instance of those that don't exist.
SELECT ?item ?pmid ?pmcid ?doi WHERE {?item p:P31/ps:P31/wdt:P279* wd:Q191067 . ?item wdt:P698 ?pmid . OPTIONAL { ?item wdt:P932 ?pmcid } OPTIONAL { ?item wdt:P356 ?doi } } LIMIT 100