Jump to content

WDFIST: Difference between revisions

From Meta, a Wikimedia project coordination wiki
Content deleted Content added
m minor tweaks
No edit summary
 
(3 intermediate revisions by 3 users not shown)
Line 3: Line 3:
<translate>
<translate>
<!--T:1-->
<!--T:1-->
'''[<tvar|1>https://tools.wmflabs.org/fist/wdfist</> WikiData Free Image Search Tool]''' (WDFIST) allows you to easily add [[<tvar|2>d:Property:P18</>|images]] to [[<tvar|3>d:Wikidata:Main Page</>|Wikidata]] items that lack one.
'''[<tvar name="1">https://tools.wmflabs.org/fist/wdfist</tvar> WikiData Free Image Search Tool]''' (WDFIST) allows you to easily add [[<tvar name="2">d:Property:P18</tvar>|images]] to [[<tvar name="3">d:Wikidata:Main Page</tvar>|Wikidata]] items that lack one.


<!--T:2-->
<!--T:2-->
Click on [<tvar name="1">https://bitbucket.org/magnusmanske/fist/issues <span class="mw-ui-button mw-ui-progressive"></tvar>Support<tvar name="2"></span></tvar>] to report issues or propose new ideas.
Click on
[<tvar|1>https://bitbucket.org/magnusmanske/fist/issues <span class="mw-ui-button mw-ui-progressive"></>Support<tvar|2></span></>]
to report issues or propose new ideas.


== Usage == <!--T:3-->
== Usage == <!--T:3-->
Line 21: Line 19:


<!--T:6-->
<!--T:6-->
Adding images to Wikidata items around you (or your travel destination) is a great thing to do before going on a photographing expedition with [<tvar|1>https://tools.wmflabs.org/wikishootme</> Wiki ShootMe!] or the Commons app. It allows you to then concentrate your expedition on the places that really have zero pictures on Commons.
Adding images to Wikidata items around you (or your travel destination) is a great thing to do before going on a photographing expedition with [<tvar name="1">https://tools.wmflabs.org/wikishootme</tvar> Wiki ShootMe!] or the Commons app. It allows you to then concentrate your expedition on the places that really have zero pictures on Commons.


<!--T:7-->
<!--T:7-->
To specify the place, first get the latitude/longitude of the place you want ([<tvar|1>http://www.gps-coordinates.net</> this webapp] can help you) and enter them in the "Wikidata query" field like this:
To specify the place, first get the latitude/longitude of the place you want ([<tvar name="1">http://www.gps-coordinates.net</tvar> this webapp] can help you) and enter them in the "Wikidata query" field like this:
</translate>
</translate>


Line 38: Line 36:
<translate>
<translate>
<!--T:8-->
<!--T:8-->
First use a small radius like 1 (one kilometer), then increase it if you want more items. [[<tvar|1>d:Property:P625</>|P625]] is a Wikidata technical identifier, don't modify it. '''Note that longitude and latitude are opposite of the ordinary order!''' So for Beijing, one will have "116.401703 39.907902", denoting 39.907902° N, 116.401703° E.
First use a small radius like 1 (one kilometer), then increase it if you want more items. [[<tvar name="1">d:Property:P625</tvar>|P625]] is a Wikidata technical identifier, don't modify it. '''Note that longitude and latitude are opposite of the ordinary order!''' So for Beijing, one will have "116.401703 39.907902", denoting 39.907902° N, 116.401703° E.


<!--T:9-->
<!--T:9-->
Example for items within 15 kilometers of Beijing: <tvar|1>https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20{%20SERVICE%20wikibase:around%20{%20?item%20wdt:P625%20?itemlocation%20.%20bd:serviceParam%20wikibase:center%20%22Point(116.401703%2039.907902)%22^^geo:wktLiteral%20.%20bd:serviceParam%20wikibase:radius%20%2215%22%20.%20}}&no_images_only=1&prefilled=1</>
Example for items within 15 kilometers of Beijing: <tvar name="1">https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20{%20SERVICE%20wikibase:around%20{%20?item%20wdt:P625%20?itemlocation%20.%20bd:serviceParam%20wikibase:center%20%22Point(116.401703%2039.907902)%22^^geo:wktLiteral%20.%20bd:serviceParam%20wikibase:radius%20%2215%22%20.%20}}&no_images_only=1&prefilled=1</tvar>


== Contributing == <!--T:10-->
== Contributing == <!--T:10-->


<!--T:11-->
<!--T:11-->
Please report issues or propose new ideas on [<tvar|1>https://bitbucket.org/magnusmanske/fist/issues</> BitBucket].
Please report issues or propose new ideas [<tvar name="1">https://codeberg.org/magnusmanske/fist/issues</tvar> on CodeBerg].


<!--T:12-->
<!--T:12-->
[<tvar|1>https://bitbucket.org/magnusmanske/fist/src</> Source code] (mostly in the <tvar|name>public_html/wdfist</> folder)
[<tvar name="1">https://codeberg.org/magnusmanske/fist</tvar> Source code] (mostly in the <tvar name="name">public_html/wdfist</tvar> folder)
</translate>
</translate>
[[Category:Tools{{#translation:}}]]
[[Category:Tools and scripts{{#translation:}}]]

Latest revision as of 07:18, 1 April 2026

WikiData Free Image Search Tool (WDFIST) allows you to easily add images to Wikidata items that lack one.

Click on Support to report issues or propose new ideas.

Usage

[edit]
  1. Configure your request, push the "Run" button, wait for a few seconds to a minute, and you are presented with a table.
  2. Each row of this table has a Wikidata item on the left, and one or more images on the right. If needed, to familiarize yourself with the subject click on the Wikidata item and the Wikipedia articles linked from Wikidata.
  3. If one of the images is a good representation of the item, put your mouse over it and click "Add as image".

Tip: Items around you

[edit]

Adding images to Wikidata items around you (or your travel destination) is a great thing to do before going on a photographing expedition with Wiki ShootMe! or the Commons app. It allows you to then concentrate your expedition on the places that really have zero pictures on Commons.

To specify the place, first get the latitude/longitude of the place you want (this webapp can help you) and enter them in the "Wikidata query" field like this:

SELECT ?item WHERE {
SERVICE wikibase:around {
      ?item wdt:P625 ?itemlocation .
      bd:serviceParam wikibase:center "Point(longitude latitude)"^^geo:wktLiteral .
      bd:serviceParam wikibase:radius "5" .
}}

First use a small radius like 1 (one kilometer), then increase it if you want more items. P625 is a Wikidata technical identifier, don't modify it. Note that longitude and latitude are opposite of the ordinary order! So for Beijing, one will have "116.401703 39.907902", denoting 39.907902° N, 116.401703° E.

Example for items within 15 kilometers of Beijing: https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20{%20SERVICE%20wikibase:around%20{%20?item%20wdt:P625%20?itemlocation%20.%20bd:serviceParam%20wikibase:center%20%22Point(116.401703%2039.907902)%22^^geo:wktLiteral%20.%20bd:serviceParam%20wikibase:radius%20%2215%22%20.%20}}&no_images_only=1&prefilled=1

Contributing

[edit]

Please report issues or propose new ideas on CodeBerg.

Source code (mostly in the public_html/wdfist folder)