wiki:Help/Plugin/Wikipedia

This page is outdated. The buttons in the panel have changed.

Languages:

Plugin » Wikipedia

/pluginicon/wikipedia.jar/images/dialogs/wikipedia.png A plugin to support tagging objects with wikipedia=* and wikidata=* (for the WIWOSM project, among others).

Features

  • Located in Sidebar on the right (enable that via menu Windows » Wikipedia)
    • Obtain Wikipedia/Wikidata entries …
      • /pluginicon/wikipedia.jar/images/dialogs/wikipedia.png Coordinates: nearby (wrt. current view, using geolocated articles)
      • Wikidata: nearby Wikidata items (wrt. current view)
      • source:trunk/resources/images/data/sequence.svg Category: by category
      • source:trunk/resources/images/paste.svg Clipboard: from clipboard (newline separated)
    • Double click on item to search for object with article name (and center coordinate)
    • source:trunk/resources/images/pastetags.svg Add Tag: adds a wikipedia tag corresponding to the selected article to the selected OSM objects
    • Right click on item
      • https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/browser.png Open Article: opens selected entry in browser
      • source:trunk/resources/images/dialogs/autoscale/selection.svg Zoom to selection
    • source:trunk/resources/images/preference.svg Language: sets Wikipedia language (see Configuration below)
  • Located in edit menu
    • /pluginicon/wikipedia.jar/images/dialogs/wikipedia.png Copy ... template: copies the corresponding template to the system clipboard instantiated with the coordinates of the first selected node (see Configuration below how to add custom template)
  • Located in data menu
    • Fetch Wikidata IDs: for the selected objects, looks up the Wikidata IDs based on the Wikipedia tag
    • Search Wikidata items: shows a dialog for querying Wikidata items (in the language set in Configuration)
  • Located in Download dialog
    • https://raw.githubusercontent.com/JOSM/wikipedia/master/src/main/resources/images/dialogs/sophox.png Download from Sophox API tab
  • Demystifies Wikidata IDs in the tags panel

Guide: tag all articles of a Wikipedia category

  1. Get familiar with WIWOSM
  2. Install the wikipedia plugin (see Plugins for details)
  3. Display Wikipedia panel (menu Windows » Wikipedia)
  4. Set/check Wikipedia language: in Wikipedia panel click source:trunk/resources/images/preference.svg
  5. Click source:trunk/resources/images/data/sequence.svg Category, enter a Wikipedia category to download the name of its articles
  6. Use Download from Overpass API to download interesting OSM data
  7. Inspect the list elements of the Wikipedia panel
    • source:/trunk/nodist/images/misc/gray_check.svg indicates that the WIWOSM server already delivers some object/s (still, you might tag further objects)
    • source:trunk/resources/images/misc/green_check.svg indicates that the current dataset (but not the WIWOSM server) links some object/s to this article
    • indicates that no link to this article exists on the WIWOSM server nor in the current dataset.
  8. A double click on a list item in the Wikipedia panel performs a JOSM search using the displayed article name (excluding parts in parentheses)
  9. Clicking on source:trunk/resources/images/pastetags.svg Add Tag adds a corresponding wikipedia=[lang]:[article] tag to the selected objects

Configuration

  • Wikipedia language: in panel on the right click source:trunk/resources/images/preference.svg
  • Copy templates (for edit menu)
    • Advanced preferences (only in expert mode)
    • Navigate to wikipedia.copytemplates entry, double click
    • Add entry using source:trunk/resources/images/dialogs/add.svg
    • Insert keys name (name used in menu), id (unique identifier for toolbar), pattern (string with {lat} and {lon} as placeholders) accordingly. Example:

  • Click OK twice to close preference menu
  • Restart JOSM

Back to Plugin Help
Back to Main Help

Last modified 4 years ago Last modified on 2020-07-24T18:01:11+02:00

Attachments (6)

Download all attachments as: .zip

Note: See TracWiki for help on using the wiki.