Page MenuHomePhabricator

Add Peru in Spanish to monuments database
Closed, ResolvedPublic

Description

Peru created their lists last year, but they never had them set up to be imported, it seems. Could we get them harvested and have the erfgoedbot infrastructure report the unused images etc?

project : Wikipedia
lang : es
headerTemplate : MonumentoPerú/encabezado
rowTemplate : MonumentoPerú
commonsTemplate : Monumento de Peru
commonsTrackerCategory : Cultural heritage monuments in Peru with known IDs
commonsCategoryBase : Cultural heritage monuments in Peru
autoGeocode : False
unusedImagesPage : ?? Page on Wikipedia where to report unused images ('Wikipedia:Wikiproject/Erfgoed/Nederlandse Erfgoed Inventarisatie/Ongebruikte foto\'s'). You can leave this empty.
imagesWithoutIdPage : ?? Page with a list of images without an identifier template at Commons ('Wikipedia:Wikiproject/Erfgoed/Nederlandse Erfgoed Inventarisatie/Foto\'s zonder id'). You can leave this empty.
namespaces : 104
table : monuments_pe_(es)
truncate : ?? To empty out the table on update (False). You need this if you don't have strong identifiers.
primkey : id
fields : All the fields the bot can find

  • source : The name of the field in the row template ('objrijksnr')
  • dest : The destination field in the sql table (u'objrijksnr'). Please keep this ascii to prevent problems. If you leave it empty -
  • this information will just be dropped.

conv : Do we want to do any conversions? Deprecated leave empty please.

Event Timeline

LilyOfTheWest moved this task from Backlog to Next Up on the Wiki-Loves-Monuments (2017) board.

Change 375539 had a related patch set uploaded (by Lokal Profil; owner: Lokal Profil):
[labs/tools/heritage@master] [WIP] Add Peru in Spanish to the database

https://gerrit.wikimedia.org/r/375539

So unusedImagesPage and imagesWithoutIdPage (and other optional report pages) are still missing,

My suggestions are (per Venezuela)

  • Wikiproyecto:Patrimonio histórico/Fotos de monumentos de Perú sin usar
  • Wikiproyecto:Patrimonio histórico/Fotos de monumentos de Perú sin id.

If that is the default on eswiki, I'd say go with it :) Thanks for figuring that out!

An issue with both this one (and at least Venezuela, Chile). Is that it auto-generates a wikilink for monumento by simply putting [[ ]]around it. monumento_enlace` overrides this with an actual wikilink when needed (and enlace allows for multiple links).

Currently we only harvest the monumento_enlace case since there is no (inexpensive) way for us to determine if the monumento auto-generated wikilink actually exists.

Not sure if we should just accept this or actively encourage countries to not use that sort of mechanism.

This is a similar issue to that raised in {T142897: Heritage Monuments database/API seems to be lacking Wiki page links}

If that is the default on eswiki, I'd say go with it :) Thanks for figuring that out!

I don't know =). Would be good if the local team could chime in, after all they are the ones who will use the report pages.

Updated with my suggested pages for now. Local harvest works fine.

T174245#3575352 still needs some thought. Any ideas @JeanFred ?

Change 375539 merged by jenkins-bot:
[labs/tools/heritage@master] Add Peru in Spanish to the database

https://gerrit.wikimedia.org/r/375539

Thanks. Then the patch can be merged and we can take a look at the T174245#3575352 issue afterwards.

Mentioned in SAL (#wikimedia-cloud) [2017-09-04T14:05:13Z] <Lokal_Profil> Deploy latest from Git master: 9f59c59 (T174245), bc94498, d5b2006 (T174934)