query-1f4c28b5b66c4f3060ca80e47a1e10a6
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?PubMed_ID
WHERE
{
VALUES ?item {
wd:Q27938560
wd:Q27939622
wd:Q28508930
wd:Q28566968
wd:Q28567875
wd:Q28584294
}
OPTIONAL {?item wdt:P698 ?PubMed_ID . }
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;
v2("?PubMed_ID"):::projected
v1("?item"):::projected
c3(["bd:serviceParam"]):::iri
c5(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/VALUES ?item/]
bind0-->v1
bind00(["wd:Q27938560"])
bind00 --> bind0
bind01(["wd:Q27939622"])
bind01 --> bind0
bind02(["wd:Q28508930"])
bind02 --> bind0
bind03(["wd:Q28566968"])
bind03 --> bind0
bind04(["wd:Q28567875"])
bind04 --> bind0
bind05(["wd:Q28584294"])
bind05 --> bind0
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P698".-> v2
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c3 --"wikibase:language"--> c5
end