Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Returning all images on a Wikipedia page

Tags:

sparql

dbpedia

I am trying to write a SPARSQL query that will return all possible image URLs associated with a resource.

I can return the foaf:depiction, if there is one, but often when I visit said page on Wikipedia I see there are other pictures that I cannot 'get at'. For example - for video games - there is a Notion The Game cover and box art (for some games, not all), but I don't know how to get their URLs returned with queries.

An example showing exactly how to return, say a box cover and cartridge picture for a game like Super Mario Bros., would answer this question perfectly.

like image 675
Sean Patrick Sutton Avatar asked Jun 19 '11 11:06

Sean Patrick Sutton


People also ask

Can you reuse images from Wikipedia?

You can use (free) images from Wikipedia on your own site, or anywhere you like. You can use images that are freely-licensed images, provided you comply with the individual image's license terms.

Where are Wikipedia images stored?

All images used must be legal in the United States, where Wikimedia's servers are located. Images are stored on the Wikipedia website or the partner Wikimedia Commons website.

Do Wikipedia images have copyright?

Public domain images are not copyrighted, and copyright law does not restrict their use in any way. Wikipedia pages, including non-English language pages, are hosted on a server in the United States, so US law governs whether a Wikipedia image is in the public domain.

Why are images not loading on Wikipedia?

Due to security measures, modern browsers (latest updates of Firefox/Chrome/Safari) are not showing images which have origin different from that of host. eg: wikipedia.org page content is hosted on en.wikipedia.org but the media are hosted on upload.wikimedia.org, so the browsers are blocking all images.


1 Answers

As far as I know, DBpedia only extracts the first image from each Wikipedia article, and it's not possible to get at the other images through DBpedia.

like image 119
cygri Avatar answered Sep 25 '22 08:09

cygri