query-618a5f7931d5a0b1274f7e64dd53951f
Return all books written by J. K. RowlingThe relevant items and properties are: J. K. Rowling (Q34660), author (P50)
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 ?book ?bookLabel
WHERE {
?book wdt:P50 wd:Q34660 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
Query found at
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Intro-2019-09-26
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Intro-2020-08-25
- https://www.wikidata.org/wiki/User:Beat_Estermann/WD-Intro-2020-11-16
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?book"):::projected
c2(["wd:Q34660"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P50"--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end