Questions tagged [wikimedia-commons]

Wikimedia Commons is an online repository of free-use images, sound and other media files. It is a project of the Wikimedia Foundation. It's built on MediaWiki, so it can also be accessed through the MediaWiki API.

Wikimedia Commons is an online media file repository of free-use images, sound and video clips. It acts as a common repository for the various projects of the Wikimedia Foundation.

It's built on , so it can also be accessed through the . Unlike media files uploaded to other projects, files uploaded to Wikimedia Commons can be embedded on pages of all Wikimedia projects without the need to separately upload them there.

Unlike traditional media repositories, Wikimedia Commons is free. Everyone is allowed to copy, use and modify any files freely as long as they follow the terms specified by the author; this often means crediting the source and author(s) appropriately and releasing copies/improvements under the same freedom to others. The license conditions of each individual media file can be found on their description page. The Wikimedia Commons database itself and the texts in it are licensed under the Creative Commons Attribution/Share-Alike License.

51 questions
3
votes
4 answers

wget wikimedia image?

I am trying to download an image from Wikimedia Commons by using a URL to a page in the file namespace: wget http://commons.wikimedia.org/wiki/File:A_golden_tree_during_the_golden_season.JPG all I get is a JPG file that I cannot open. But when you…
Altin Ukshini
  • 235
  • 5
  • 14
2
votes
0 answers

how to get all Wikidata items that are subclasses or instances of the Wikidata items in wikimedia commons

I was working on the Issue https://github.com/commons-app/apps-android-commons/issues/3114 to add all wikidata items that are sublasses or instances of the given wikidata item(depictions) I was using this API…
2
votes
2 answers

Wikimedia Commons: Get names of sub-categories (using SPARQL or MediaWiki API)

Given a specific category (i.e. https://commons.wikimedia.org/wiki/Category:Motorcycles) I want to get names of all sub-categories recursively, either in SPARQL: SELECT ?category ?entityLabel WHERE { SERVICE wikibase:label { bd:serviceParam…
2
votes
0 answers

Persistent link of the present version of a file on Wikimedia commons

Is is possible to get a persistent link of the present version of a file on Wikimedia commons? Say I want a persistent link to the media displayed on https://commons.wikimedia.org/wiki/File:Syrian,_Iraqi,_and_Lebanese_insurgencies.png I believe I…
Finn Årup Nielsen
  • 6,130
  • 1
  • 33
  • 43
2
votes
2 answers

Getting license information from MediaWiki API?

I want to display images from Wikimedia Commons inside my website (as links) using the following mediawiki-api call to search for…
Ole Albers
  • 8,715
  • 10
  • 73
  • 166
2
votes
1 answer

Use a wikimedia image on my website

So I have a wikimedia commons URL(which is really just a wrapper for the actual image), like this: https://commons.wikimedia.org/wiki/File:Nine_inch_nails_-_Staples_Center_-11-8-13(10755555065_16053de956_o).jpg If I go to that page, I can see that…
dessalines
  • 6,352
  • 5
  • 42
  • 59
2
votes
2 answers

Finding all pages containing images in Wikimedia Commons category via API

I'm currently trying to find all the pages where images/media from a particular category are being used on Wikimedia Commons. Using the API, I can list all the images with no problem, but I'm struggling to make the query add in all the pages where…
Paul M
  • 3,937
  • 9
  • 45
  • 53
2
votes
2 answers

Random Wikimedia Commons images on a webpage

I would like to display random Wikimedia Commons images on a webpage. Something like this: http://lkozma.net/blog/random-wiki-image-wallpaper/ except as a webpage. How would you go about doing this? Thanks
user973612
  • 105
  • 9
2
votes
3 answers

InstantCommons not working in MediaWiki 1.19 and SELinux

I am setting my own MediaWiki website locally, and am not able to get the InstantCommons feature to work (used to directly embed files from commons.wikimedia.org). I get no error message, the files I try to load from Commons using the following…
Alexandre Bourlier
  • 3,972
  • 4
  • 44
  • 76
1
vote
1 answer

How to get information about Wikimedia image?

I'm trying to retrieve images from wikimedia using the existing api, but there seems to be no logic in what works and what doesn't. Here's what i'm doing/have tried: I'm getting a query of images, from this…
Lg102
  • 4,733
  • 3
  • 38
  • 61
1
vote
1 answer

Get image summary with Wikidata SPARQL

I get some images from Wikidata, but I would like to get more information about the image. By example, I get the image from Paris (Try it!): SELECT ?itemLabel ?wdLabel ?ps_Label ?wdpqLabel ?pq_Label WHERE { VALUES ?item { wd:Q90 } ?item p:P18…
Guylan DIEU
  • 111
  • 8
1
vote
1 answer

Get geojson data from Wikidata

I request Wikidata entities and get their geoshape property (P3896). For example (try it): SELECT ?item ?itemLabel ?geoshape ?geoshapeLabel WHERE { VALUES ?item { wd:Q142 } ?item wdt:P3896 ?geoshape. SERVICE wikibase:label { bd:serviceParam…
Guylan DIEU
  • 111
  • 8
1
vote
1 answer

Get list of pages using an image hosted on Wikimedia commons through API

I'd like to get the file usage on other wikis for a given image on Wikimedia Commons through API. For example the image https://commons.wikimedia.org/wiki/File:2015_Finland_opinion_polls.png is used in: Usage on da.wikipedia.org Rigsdagsvalget i…
mimau
  • 118
  • 6
1
vote
1 answer

MediaWiki API not returning depictions in languages other than English

I was using the API https://commons.wikimedia.org/w/api.php?action=help&modules=wbsearchentities to fetch depictions In Wikimedia Commons. On modifying the attributes language/strictlanguage should return depiction in the corresponding language I…
1
vote
1 answer

Get depictions from Wikimedia Commons

Wikimedia Commons has a new feature to describe what a picture depicts. Example: Question How to get the "depicts" of a given image, as JSON, using either a wikimedia-android-data-client library call or a REST HTTP request?