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 <m...@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
>
_______________________________________________
Wikidata mailing list
Wikidata@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to