If I want to navigate from a DBPedia resource that is the subject of a Wikipedia page to the Image depicted in the page's Infobox, what Sparql query should I use ?

e.g.if I want to use the DBPedia resource: http://dbpedia.org/resource/Lindsay_Anderson

in order to navigate from the Wikipedia page: https://en.wikipedia.org/wiki/Lindsay_Anderson

to the image URL: https://upload.wikimedia.org/wikipedia/en/b/b1/Lindsay_anderson.jpg

then there does not appear to be an obvious direct relationship link.

What Sparql query should I use?

Or should I use a different DBPedia URI as a starting point ?

    CommentAdd your comment...

    1 answer


      A SPARQL query like the following should get you the image for a resource (link).

      select ?image where {dbr:Berlin foaf:depiction ?image}

      Note that not all images get extracted or, might not have had an image at extraction time

        CommentAdd your comment...