query-d162da34dec0c6a93b36998eed9a4bb3
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?itemLabel ?isbn13 ?isbn_13 ?article ?wen WHERE{
?item wdt:P212 ?isbn13.
BIND(REPLACE(?isbn13, "-", "") AS ?isbn_13)
FILTER(?isbn_13 in ("9784163191409","9784163191410", "9780709706922", "9788466305853", "9780688065706")) #add ISBNs here
OPTIONAL { ?wen schema:about ?item . ?wen schema:name ?article. ?wen schema:inLanguage "en".}
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;
v5("?article"):::projected
v3("?isbn13"):::projected
v4("?isbn_13"):::projected
v2("?item"):::projected
v4("?wen"):::projected
c10(["en"]):::literal
c12(["bd:serviceParam"]):::iri
c14(["#91;AUTO_LANGUAGE#93;,en"]):::literal
list0c5(["9780688065706"]):::literal
list0c2(["9784163191410"]):::literal
list0c3(["9780709706922"]):::literal
list0c4(["9788466305853"]):::literal
list0c1(["9784163191409"]):::literal
list0c1 --o f0
list0c2 --o f0
list0c3 --o f0
list0c4 --o f0
list0c5 --o f0
f0[[" in "]]
f0 --> v4
v2 --"wdt:P212"--> v3
bind1[/"replace(?isbn13,'-','')"/]
v3 --o bind1
bind1 --as--o v4
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v4 -."schema:about".-> v2
v4 --"schema:name"--> v5
v4 --"schema:inLanguage"--> c10
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end