0

I was interested in listing all books, so I wrote:

SELECT ?book ?url WHERE {
?book wdt:P31 wd:Q571 .

OPTIONAL {
  ?url schema:about ?book .
  ?url schema:inLanguage "en" .
  ?url schema:isPartOf <https://en.wikipedia.org/> .
}}

but somehow this cute book which i read in the past "The Little prince" was missing, although Q25338 it appears in wikidata.

The wikipedia page exists too: https://en.wikipedia.org/wiki/The_Little_Prince

I searched for it in the results, and couldn't find it.

So how come I can't see this book? Are there any explanations?

Thank you!

  • Did you mean wdt:P31*? Also, as wikidata.org/wiki/Q571 shows, book is a subclass of other classes, and Q25338 is listed as a 'literary work' not a 'book', so maybe broaden your search to parent classes of Q571? – Barry Carter Jul 15 at 13:49
  • Thank you! @Barry (i'm new to wikidata!) :) – JammingThebBits Jul 15 at 22:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.