query-9322997ff409a374ba0bf157147b67f1

rq turtle/ttl

. (P577)publication date and (P123)publisher , (P110)illustrator , (P1476)title But that’s a bit boring. There’s so much potential data about books, and we only show the label? Let’s try to craft a query that also includes the A first attempt might look like this:

Use at

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 ?title ?illustratorLabel ?publisherLabel ?published
WHERE
{
  ?book wdt:P50 wd:Q35610;
        wdt:P1476 ?title;
        wdt:P110 ?illustrator;
        wdt:P123 ?publisher;
        wdt:P577 ?published.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en". }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?book"):::projected v3("?illustrator") v5("?published"):::projected v4("?publisher") v2("?title"):::projected c8(["bd:serviceParam"]):::iri c10(["en"]):::literal c2(["wd:Q35610"]):::iri v1 --"wdt:P50"--> c2 v1 --"wdt:P1476"--> v2 v1 --"wdt:P110"--> v3 v1 --"wdt:P123"--> v4 v1 --"wdt:P577"--> v5 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c8 --"wikibase:language"--> c10 end