query-3d8cc9b0f2f39333541bbfb848029836
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX mwapi: <http://wikiba.se/ontology#>
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?item ?itemLabel ?dois ?doi
WHERE {
VALUES ?dois {
"10.1016/j.ijid.2020.01.009"
"10.1126/science.367.6475.234"
}
SERVICE wikibase:mwapi {
bd:serviceParam wikibase:api "Search";
wikibase:endpoint "www.wikidata.org";
mwapi:srsearch ?dois.
?item wikibase:apiOutputItem mwapi:title .
}
OPTIONAL {?item wdt:P356 ?doi.}
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("?doi"):::projected
v1("?dois"):::projected
v2("?item"):::projected
c6(["www.wikidata.org"]):::literal
c2(["bd:serviceParam"]):::iri
c4(["Search"]):::literal
c13(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c9(["mwapi:title"]):::iri
bind0[/VALUES ?dois/]
bind0-->v1
bind00(["10.1016/j.ijid.2020.01.009"])
bind00 --> bind0
bind01(["10.1126/science.367.6475.234"])
bind01 --> bind0
subgraph s1["http://wikiba.se/ontology#mwapi"]
style s1 stroke-width:4px;
c2 --"mwapi:api"--> c4
c2 --"mwapi:endpoint"--> c6
c2 --"mwapi:srsearch"--> v1
v2 --"mwapi:apiOutputItem"--> c9
end
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P356".-> v3
end
subgraph s2["http://wikiba.se/ontology#label"]
style s2 stroke-width:4px;
c2 --"mwapi:language"--> c13
end