query-d01af8b52d75bf5ccf6789c871c8c3ed
title:ISBN10 version SELECT ?item ?itemLabel ?isbn10 ?title ?published WHERE { VALUES ?isbn10 { "0-521-22151-X" "0-521-29366-9" } ?item wdt:P957 ?isbn10. OPTIONAL {?item wdt:P577 ?published.} OPTIONAL {?item wdt:P1476 ?title.} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". } }
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#>
#title:ISBN10 version
SELECT ?item ?itemLabel ?isbn10 ?title ?published
WHERE
{
VALUES ?isbn10 {
"0-521-22151-X"
"0-521-29366-9"
}
?item wdt:P957 ?isbn10.
OPTIONAL {?item wdt:P577 ?published.}
OPTIONAL {?item wdt:P1476 ?title.}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],fr,en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?isbn10"):::projected
v2("?item"):::projected
v3("?published"):::projected
v4("?title"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,fr,en"]):::literal
bind0[/VALUES ?isbn10/]
bind0-->v1
bind00(["0-521-22151-X"])
bind00 --> bind0
bind01(["0-521-29366-9"])
bind01 --> bind0
v2 --"wdt:P957"--> v1
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P577".-> v3
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P1476".-> v4
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end