query-eb808284288a098148ae3ab40900945b
Thank you a lot! Eva from Cologne
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?PMID ?orcid ?authorLabel
WHERE {
?item wdt:P698 ?PMID . # item has a PubMed-ID
VALUES ?PMID { '28665778' } # ... and this is the PMID we want
?item wdt:P50 ?author . # item has author[s]
?author wdt:P496 ?orcid . # ORCIDS for the author[s]
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?PMID"):::projected
v3("?author")
v1("?item"):::projected
v4("?orcid"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P698"--> v3
bind0[/VALUES ?PMID/]
bind0-->v3
bind00(["28665778"])
bind00 --> bind0
v1 --"wdt:P50"--> v3
v3 --"wdt:P496"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end