Page MenuHomePhabricator

Add Egypt in Arabic to monuments database
Closed, ResolvedPublic

Description

(putting the arabic pieces between quotation marks and spaces)

project : Wikipedia
lang : ar
headerTemplate : " رأس معلم مصر " -- The header template for the lists ('Tabelkop rijksmonumenten')
rowTemplate : " صف معلم مصر " -- The row template for the lists ('Tabelrij rijksmonument')
commonsTemplate :  " Cultural Heritage Egypt " -- The template here at Commons to track images ('Rijksmonument'). You can leave this empty
commonsTrackerCategory :  " Cultural heritage monuments in Egypt with known IDs " -- The category added by the previous template ('Rijksmonumenten with known IDs'). You can leave this empty
commonsCategoryBase :  " Cultural heritage monuments in Egypt " -- The base of the category tree at Commons ('Rijksmonumenten'). You can leave this empty.
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 :  " 0 " -- Namespaces to work on at Wikipedia ([0]).
table :  " monuments_eg_(ar) " --  Name of the table to store everything in (u'monuments_nl_(nl)'). The convention is monuments_<countrycode>_(<lang>). Please keep this in line.
truncate :  "  " -- To empty out the table on update (False). You need this if you don't have strong identifiers.
primkey :  " رقم " -- The primary key in the table ('objrijksnr'). This should be the identifier.
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.

Source of the list is some Ministry of Tourism website (Mohamed, please add a link if you have it - for archive happyness)

Event Timeline

@JeanFred I'm not sure if you still want it in this format? Please correct the list of information to report on https://commons.wikimedia.org/wiki/Commons:Monuments_database/Harvesting if you want more/less :) Especially for the 'fields' I'm not quite sure what to send.

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

@JeanFred This becomes more urgent: the egyptians put in a lot of effort to add coordinates, and the monuments database is now (i think) the only bottle neck of displaying them on wlm-maps.

I’m on it. I need the actual mapping between the template parameters and the database fields !

what do you mean by actual mapping ?

Change 377488 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Add Egypt in Arabic eg_ar

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

what do you mean by actual mapping ?

Sorry that was a bit unclear :)

We need the mapping between the template parameters (eg "دائرة عرض") and the database table columns (eg 'lat'). In that case I could figure out via Google Translate what this one was, but there are several I could not understand.

Can you have a look at https://gerrit.wikimedia.org/r/#/c/377488/2/erfgoedbot/monuments_config/eg_ar.json

and let me know your thoughts ?

Thanks :)

This comment was removed by JeanFred.

@JeanFred : to be clear, you need confirmation that all fields that you mapped are correct, and to fill in the question marks? Or more than that?

@JeanFred : to be clear, you need confirmation that all fields that you mapped are correct, and to fill in the question marks? Or more than that?

Yes, that.

I would also optionally need a wikipage for the Unsued images report.

With help from @VIGNERON I have a working configuration.

Local harvesting pointed 11 monuments from which there is no identifier. They will not show up in the database (and thus in other tools such as map).

But as soon as the identifier is fixed, they will show up (with 24h delay), right? :D Thank you!

But as soon as the identifier is fixed, they will show up (with 24h delay), right? :D Thank you!

The harvesting is only locally so far (on my computer). I need @Lokal_Profil to review my changes :)

I'll review the patch but we should leave this task open afterwards so that we can update the config with an "unused images" and "images without id" report page.

Change 377488 merged by jenkins-bot:
[labs/tools/heritage@master] Add Egypt in Arabic eg_ar

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

@Bachounda Could you give a suggestion where in ar.wiki we should put the "unused images" and "images without id" report pages?

This seems to indicate that there is one template parameter which we have not mapped. @Bachounda could you help us with that one?

Change 379991 had a related patch set uploaded (by Jean-Frédéric; owner: Jean-Frédéric):
[labs/tools/heritage@master] Update Iraq and Egypt in Arabic

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

Change 379991 merged by jenkins-bot:
[labs/tools/heritage@master] Update Iraq and Egypt in Arabic

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

Mentioned in SAL (#wikimedia-cloud) [2017-09-24T19:10:01Z] <JeanFred> Deploy latest from Git master: 60a6097 (T174261, T174340), 32c1d0d