- wikidata entry: https://www.wikidata.org/wiki/Q161234 - "logo image" property pointing to: https://commons.wikimedia.org/wiki/File:0_A.D._logo.png
However... that's a HTML page... How do I get a reference to the .png file? In this case https://upload.wikimedia.org/wikipedia/commons/1/1c/0_A.D._logo.png
Thanks.
2017-10-30 18:16 GMT+01:00 Laura Morales lauretas@mail.com:
- wikidata entry: https://www.wikidata.org/wiki/Q161234
- "logo image" property pointing to: https://commons.wikimedia.org/wiki/File:0_A.D._logo.png
However... that's a HTML page... How do I get a reference to the .png file? In this case https://upload.wikimedia.org/wikipedia/commons/1/1c/0_A.D._logo.png
That's not exactly straightforward, given you have to make a query for every single file (or batch of up to 50 of them), but you can get the URL through the API. In this case:
https://commons.wikimedia.org/w/api.php?action=query&format=json&pro...
Best regards,
Use Special:Filepath.
https://commons.wikimedia.org/wiki/Special:Filepath/0_A.D._logo.png
/Jan Ainali (skickat på språng så ursäkta min fåordighet)
On Oct 30, 2017 18:16, "Laura Morales" lauretas@mail.com wrote:
- wikidata entry: https://www.wikidata.org/wiki/Q161234
- "logo image" property pointing to: https://commons.wikimedia.org/
wiki/File:0_A.D._logo.png
However... that's a HTML page... How do I get a reference to the .png file? In this case https://upload.wikimedia.org/ wikipedia/commons/1/1c/0_A.D._logo.png
Thanks.
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
The actual value of the statement is just the image name itself (in this case “0 A.D. logo.png”), the c.w.o/wiki/ link is only generated for the HTML view. You can get the path to the actual file using Special:FilePath on Commons; for instance, the RDF export of the entity (https://www.wikidata.org/wiki/Special:EntityData/Q161234.ttl) contains the statement wd:Q161234 wdt:P18 http://commons.wikimedia.org/wiki/Special:FilePath/0%20A.D.%20Seleucide.jpg.
On 30.10.2017 18:16, Laura Morales wrote:
- wikidata entry: https://www.wikidata.org/wiki/Q161234
- "logo image" property pointing to: https://commons.wikimedia.org/wiki/File:0_A.D._logo.png
However... that's a HTML page... How do I get a reference to the .png file? In this case https://upload.wikimedia.org/wikipedia/commons/1/1c/0_A.D._logo.png
Thanks.
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
You can also use the Wikimedia Commons API made by Magnus: https://tools.wmflabs.org/magnus-toolserver/commonsapi.php
It will also gives you metadata about the image (so you'll be able to cite the author of the image when you reuse it).
On Mon, Oct 30, 2017 at 6:34 PM, Lucas Werkmeister <mail@lucaswerkmeister.de
wrote:
The actual value of the statement is just the image name itself (in this case “0 A.D. logo.png”), the c.w.o/wiki/ link is only generated for the HTML view. You can get the path to the actual file using Special:FilePath on Commons; for instance, the RDF export of the entity (https://www.wikidata.org/wiki/Special:EntityData/Q161234.ttl) contains the statement wd:Q161234 wdt:P18 http://commons.wikimedia.org/wiki/Special:FilePath/0%20A.D. %20Seleucide.jpg.
On 30.10.2017 18:16, Laura Morales wrote:
- wikidata entry: https://www.wikidata.org/wiki/Q161234
- "logo image" property pointing to: https://commons.wikimedia.org/
wiki/File:0_A.D._logo.png
However... that's a HTML page... How do I get a reference to the .png
file? In this case https://upload.wikimedia.org/ wikipedia/commons/1/1c/0_A.D._logo.png
Thanks.
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
Wikidata mailing list Wikidata@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata
You can also use the Wikimedia Commons API made by Magnus:
https://tools.wmflabs.org/magnus-toolserver/commonsapi.php
It will also gives you metadata about the image (so you'll be able to cite the author of the image when you reuse it).
Is the same metadata also available in the Turtle/HDT dump?
Am 30.10.2017 um 19:10 schrieb Laura Morales:
You can also use the Wikimedia Commons API made by Magnus:
https://tools.wmflabs.org/magnus-toolserver/commonsapi.php
It will also gives you metadata about the image (so you'll be able to cite the author of the image when you reuse it).
Is the same metadata also available in the Turtle/HDT dump?
Sadly not. We don't have proper structured meta-data yet. That's what the Structured Data on Commons project is about: https://commons.wikimedia.org/wiki/Commons:Structured_data
Hi Laura,
If a spreadsheet is an option, you can use the WIKICOMMONSLINK function ( https://tomayac.github.io/wikipedia-tools-for-google-spreadsheets/Documentat..., select it in the select box) function of my Google sheets add-on ( https://chrome.google.com/webstore/detail/wikipedia-tools/aiilcelhmpllcgkhhp... ).
Cheers, Tom