This page is a translated version of the page WikiShootMe and the translation is 72% complete.

WikiShootMe

2021 Coolest Tool
Award Winner

in the category
Experience

Shortcut
WSM

WikiShootMe V3(以下WSM)というツールは写真に関して、ウィキデータの項目、ウィキペディアの記事名、ウィキメディア・コモンズの画像類に位置座標を添え、地図上に集約して表示します。このツールを発表した時のブログ投稿もあわせて参考にしてください。

写真投稿用アプリの使い方動画、WikiShootMe(ウィキシュートミー)をモバイル版端末で使う方法、2022-06-20
このページでは現行の写真投稿アプリ「ウィキシュートミー」 WikiShootMe V3を解説します。旧版の説明は含みません。
バグ報告、機能のリクエストの投稿先は 問題トラッカーのページで、このページまたは付帯のトークページでは対応できません

ユーザインターフェース

操作ボタン

  • ⌖ 可能な場合に、現在地を地図の中心点にする。
  • 🔍 マッチしそうな場所を見つけるためウィキデータを検索。

画面の見た目

 
WSM V3 の画面キャプチャ

WikiShootMe shows a map with objects on it. By default, it will try and center on your coordinates, if you allow this in your browser. There are four types of objects, by source, and represented by a layer each:

  • larger, green circles represent Wikidata items with an image
  • larger, red circles represent Wikidata items without an image
  • smaller, blue circles represent Commons images
  • smaller, yellow circles represent Wikipedia articles, in the current language edition (see the language selector in the upper-right corner)

Each of these layers can be toggled individually. Each object can be clicked to reveal a pop-up with further information. All pop-ups include

  • the name of the object (label, title, file name),
  • the object coordinates (the 🏠 icon leads to a "Street View" at that position, which may help you find the right image if none is set),
  • an image (for Commons images and Wikidata items with image)

For Wikidata items without image (red circle), there can be several options to add a new image.

画像をアップロードして追加

 
「画像をアップロード/追加」のポップアップ表示。

You can add an image to a Wikidata item that doesn't already have one (remember, each item should ideally only have one image). Wikidata items with no image have their own layer, and are shown as large red circles. The first time you click on one, it shows you a pop-up asking you to authorise uploads via the OAuth mechanism, Click on the button to follow the instructions, and you will land back on the WSM site.

After that, the pop-up for "red" items will have changed, showing one "Upload image" button, and one "Add to item" button. Click on upload to upload a new image to Commons. When on mobile, you can also select your devices' camera and take a new picture. A new, unique file name will be chosen automatically, based on the item label, and the item's coordinates will be used for the image. Also, you are automatically entered as the copyright holder, and the CC-BY-SA-3.0 license is chosen. Once uploaded, the image is added to the item automatically. All these edits happen under your user name.

In older browsers (e.g. IE<10), a new tab opens when you start uploading, and will eventually show the uploaded image, so you can make changes and additions to the image description page. In modern browsers, the image will be added to an upload queue, which will periodically retry the upload if it fails, e.g. due to connection loss on mobile. The uploaded/total count will appear in the toolbar; you can click on it to see details. Once all uploads have gone through, there will be a link to clear/hide the count. If you want to abort all uploads in the queue, just reload the page.

画像を追加

The "Add to item" button in the red dot pop-up will add an image that already exists on Commons, with the file name you enter. It checks if the file actually exists on Commons, then add it as a statement to the Wikidata item.

  • Click the nearest blue dot- a pop-up opens, showing the title, a thumbnail of the image, the truncated file name on commons missing out prefix "File:". This is in incredibly small type.
  • Copy the filename by copying the incredibly small type, or click on the image to see its page on common. If you copy its full file name from there you must omit the prefix.
  • Click on the red dot. A pop-up opens. Paste the file name in the box provided- check it for accuracy and 'Add to item'.

(You can use any truncated Commons file name if the required image hasn't been geotagged.)

新しい項目を作る

If you know about a location that should have an item but doesn't, you can right-click (mobile: long-press) on the map to create one (OAuth required, see above). You will be asked for a label (in your current language). A new item with that label and location will be created on Wikidata, and show up immediately on the map. If possible, the administrative unit will be inferred from nearby items.

Integration

WikiShootMe にリンク

By default, WSM will try to open a view around your current location. You can use URL parameters to open WSM with a specific view:

Both variant can be combined with a "&zoom=X" parameter, to set the initial zoom (18=max zoom).

表示する項目を選ぶ

You might want to filter the items to show, for instance only religious buildings, or everything except schools. Here is how to do so:

  1. SPARQL リクエストを出すため、どのオブジェクトを表示したいか、2つの欄の片方はアルファベットの「Q」で始まりウィキデータの識別子。、"location" という欄に緯度経度を記入します。ただし"GROUP BY" も "SAMPLE" も使わないでください。その入力値が必ず正しい結果を返すか、確認してください。実際に SPARQL リクエストを用意する方法は複数あり、よく使われるツールは https://query.wikidata.org です。
  2. 弓カッコ付きの "WHERE{" に続けて入力したら、閉じる弓カッコ"}" が末尾です。
  3. https://urldecode.org 実装などの URLEncode を使い、コード化。
  4. https://wikishootme.toolforge.org/#lat=0&lng=0&zoom=1&layers=wikidata_no_image&worldwide=1&sparql_filter= の最後に続けて、その文字列を入力。
  5. できた URL をブラウザのアドレス欄にコピペ。

システム上の例は、アートワークの例などを参照してください。

開発

ソースコード

こちらをご参照ください。

過去版

現行の WikiShootMe はver3です。過去版も利用可能:ver1ver2があります。