User:FinnaUploadBot

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Hi, this is human-operated script that uploads single pictures from Finna-service. Metadata used is licenced as CC0 and script will check the licence of the picture before it tries to copy the file. User is used for massuploading Finna photos and also updating SDC, categories and wikitext of existing Finna photos. The script is operated by user:Zache and User:Ipr1.

Upload requests

[edit]
Suomi: Tälle sivulle voi lisätä linkkejä Finna-kuviin jotka botin pitäisi tallentaa Finnasta.
English: On this page you can add links to Finna images that the bot should save from Finna.

Adding SDC values

[edit]

Bot will find Finna images using external links of the page. Images with links to helsinkikuvia.fi, kuvakokoelmat.fi, sa-kuva.fi, *.finna.fi or selected Europeana links are considered potential Finna images. When image is found it will try find correct Finna record from URL. If Finna record is found it will confirm that image is same in commons and Finna using perceptual hashes (frequencies) and difference hash (gradients).

Uploading files

[edit]

Wikitext

[edit]
  • Bot adds a working link to Finna description page (metapage) to the wikitext.
  • Bot adds accession number (identifier) to the wikitext.
Example Images

Added SDC properties

[edit]

Categories

[edit]

The bot will try to add the following categories

  1. Creator category (example: Photographs by Simo Rista)
  2. Year category (example: 1970 in Helsinki)
  3. Place category (example: Mannerheimintie)
    • based on depicted place values. If there is a direct match between Finna placename and wikidata-item (via YSO ID (P2347) if possible but also using internal mappings)
    • based on street address. Following rules needs to be true
  4. based on custom regexp/subcat rules
Other rules
  • If there are both parent and child categories in the article then the bot will remove the parent category
  • If the category has been in the article before then the bot will not re-add it (ie. it tracks oldcategories from revision history)

See also

[edit]