Open main menu
ErfgoedBot helps categorizing – but you have to help him a bit!

All images of monuments should be properly categorized. This page describes the categorization process and how this work can be supported by bot - if you help with some basic structures.

CategorizationEdit

Commons uses a tree of categories to organize all the images. Each country will have a root category for its monuments, for example Category:Rijksmonumenten for the Netherlands or Category:National Register of Historic Places for the United States. The categories contain subcategories organized by location, for example by province and muncipality in the Netherlands or by state and county in the United States. These lower categories will generally contain the images or specific categories for certain monuments for example Category:Royal Palace of Amsterdam or Category:Empire State Building. When an image is in a category and also in one of its (grand)parent categories it's called overcategorized. That's something we try to prevent at Commons.

The tracker templateEdit

All images and categories of monuments are tagged with a template to indicate that the image or category is about a certain monuments, for example in the Netherlands we use {{Rijksmonument}} and for the United States we use {{NRHP}}. These templates give a bit of information, maybe include a link to a heritage register and include a (hidden) tracker category, for example Category:Rijksmonumenten with known IDs or Category:National Register of Historic Places with known IDs. These categories should never be added directly, always use the template. The template will sort all the items in the tracker category by identifier. This is used by the bots (more about that later).

How does the categorization bot work?Edit

To help with the categorization a bot was created. This bot will work on all images in the root categories and will try to categorize them.

  1. Try to find the tracking template and try to extract the identifier: For example at File:De Noorman, Westkapelle 4.JPG {{Rijksmonument}} with identifier 38851.
  2. Lookup the identifier in the monuments database to find if it has a commonscat link. Replace the base category with this category. Bot is done with this image (case A)
  3. Lookup the identifier in the monuments database to find if it has an article.
    1. If this is the case and the article has a {{Commonscat}} link to a category at Commons. Replace the base category with this category. Bot is done with this image. (case B1)
    2. If this is the case, and the article is linked to a Wikidata item, and if the Wikidata item knows about a category at Commons. Replace the base category with this category. Bot is done with this image. (case B2)
  4. Look the identifier up in the monuments database to find in what list the monument is.
    1. If this list has a {{Commonscat}} link to a category at Commons. Replace the base category with this category. Bot is done with this image. (case C1)
    2. If this list is linked to a Wikidata item, and if the Wikidata item knows about a category at Commons. Replace the base category with this category. Bot is done with this image. (case C2)
  5. If the list doesn't contain a link to Commons, look at every Wikipedia category the list is in and try to find Commons category (either via {{Commonscat}} links or via a linked Wikidata item). This might add multiple categories. Bot is done with this image. (case D)

There are several ways the {{Commonscat}} may point to a Commons category:

  • Explicitly having the category as parameter
  • Relying on Wikidata and P373
  • Implicitly to a category named like the article (without parameter).

There are two ways a Wikidata item may point to a Commons category:

How can I help?Edit

  • If an entry in a list on Wikipedia has its own category here on Commons, add the | commonscat = <name of category here at Commons> to the row template. "commonscat" is the default, but might be localized in your list.
  • Every list on Wikipedia and most categories containing the lists on Wikipedia should have a {{Commonscat}} to Commons. This makes it easier for users to navigate and helps the bot to better categorize the images. You can help by adding the missing links.
  • After the bot run images are left in the root category. These images need some manual attention. Template and/or identifier might be missing or incorrect. You can help by fixing these things.
  • Expand and maintain the category tree. Commons has a lot of categories about specific monuments that are not yet part of the tree. You can help improve our category structure. Add other categories, which may indicate the purpose of the monument (example: Category:Churches in Bruges) or its precise geographic location (example:Category:Ezelstraat (Brugge)).

Skipped countriesEdit

The categorization process skips categories for two reasons.

  1. There is no root Category, or it is not known to the categorization bot.
    • For the bot to be able to process these a root category has to be created, and the upload campaign should default to it. After this you need to contact the international team to add the category to the bot.
  2. There is no tracking template being used on Commons.
  3. The country has been blacklisted. This happens when a country has so many uncategorized images (which the bot cannot fix) that these end up slowing the bot down so much that categorization for other countries suffer.

OverviewEdit

Every night a bot tries to categorize images based on their identifier. This page gives an overview of the work that has been done by the bot and what is left over for the users to do.

country lang Base category Template Total images Categorized images Images left Current image count
ch fr Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 56 0 56 53
bo es Category:Cultural heritage monuments in Bolivia {{Monumento Bolivia}} 1253 0 1253 1,253
ke en Category:Cultural heritage monuments in Kenya {{Kenya Monument}} 59 0 59 59
iq ar Category:Cultural heritage monuments in Iraq {{Cultural Heritage Iraq}} 537 0 537 537
wlpa-es-ct ca Category:Public art in Catalonia {{Art públic Barcelona}} 17 0 17 17
pt-wd pt Category:Cultural heritage monuments in Portugal {{MonumentIDPortugal}} 184 0 184 184
ca-fed en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 162 0 162 135
ir fa Category:Cultural heritage monuments in Iran {{Cultural Heritage Iran}} --- skipped: blacklisted --- 8,210
aq en Category:Antarctic Protected Areas {{Antarctic Protected Area}} 0 0 0 0
it-88 ca --- --- --- skipped: no template --- ---
de-nrw-k de Category:Cultural heritage monuments in Cologne {{Kulturdenkmal Köln}} 374 0 374 373
ch3 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 56 0 56 53
ca fr Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 162 27 135 135
jo ar Category:Cultural heritage monuments in Jordan {{Cultural Heritage Jordan}} --- skipped: blacklisted --- 2,747
ch it Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 56 0 56 53
se-ship sv Category:Listed historical ships in Sweden {{K-Fartyg}} 9 0 9 9
fr-object fr Category:Objets monuments historiques in France {{Palissy}} 0 0 0 0
no no Category:Cultural heritage monuments in Norway {{Monument Norge}} 67 0 67 68
de-he de Category:Cultural heritage monuments in Hesse {{Kulturdenkmal Hessen}} 0 0 0 0
hk en Category:Declared monuments of Hong Kong {{Declared monuments Hong Kong}} 9 0 9 9
be-bru nl Category:Cultural heritage monuments in Brussels {{Monument Brussels}} 0 0 0 0
rs sr Category:Cultural heritage monuments in Serbia {{Cultural Heritage Serbia}} 153 0 153 153
gb-wls en Category:Listed buildings in Wales {{Listed building Wales}} 284 0 284 288
sk de Category:Cultural heritage monuments in Slovakia {{Cultural Heritage Slovakia}} 74 1 73 67
ad ca Category:Cultural heritage monuments in Andorra {{Béns Andorra}} 3 0 3 3
az az Category:Cultural heritage monuments in Azerbaijan {{Cultural Heritage Azerbaijan}} 531 3 528 528
gb-sct en Category:Listed buildings in Scotland {{Listed building Scotland}} --- skipped: blacklisted --- 217
es-vc ca Category:Cultural heritage monuments in Spain {{BIC}} 10 0 10 0
th th Category:Cultural heritage monuments in Thailand {{Cultural Heritage Thailand}} 523 72 451 455
es-ct ca Category:Cultural heritage monuments in Spain {{BIC}} 10 0 10 0
es es Category:Cultural heritage monuments in Spain {{BIC}} 10 2 8 0
my commons Category:Cultural heritage monuments in Malaysia {{Cultural Heritage Malaysia}} 218 0 218 218
de-nrw-bm de Category:Cultural heritage monuments in Bergheim {{Kulturdenkmal Bergheim}} 44 0 44 44
be-vlg en Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 63 0 63 63
it-bz de Category:Cultural heritage monuments in South Tyrol {{Denkmalgeschütztes Objekt Südtirol}} 0 0 0 0
it it Category:Cultural heritage monuments in Italy {{Monumento italiano}} --- skipped: blacklisted --- 2,087
au en Category:Cultural heritage monuments in Australia {{Cultural Heritage Australia}} --- skipped: blacklisted --- 1,679
in en Category:Cultural heritage monuments in India {{ASI Monument}} 1581 23 1558 1,624
se-bbr sv Category:Listed buildings in Sweden {{BBR}} 0 0 0 0
at de Category:Cultural heritage monuments in Austria {{Denkmalgeschütztes Objekt Österreich}} 4 0 4 4
es-gl gl Category:Cultural heritage monuments in Spain {{BIC}} 16 0 16 0
ch2 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 56 0 56 53
ca-muni en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 133 0 133 135
se-fornmin sv Category:Archaeological monuments in Sweden {{Fornminne}} 10 4 6 14
za en Category:Cultural heritage monuments in South Africa {{South African Heritage Site}} 109 0 109 109
cz cs Category:Cultural monuments in the Czech Republic {{Cultural Heritage Czech Republic}} 0 0 0 0
wlpa-at de Category:Public art in Austria {{Public Art Austria}} 3 0 3 3
hu hu Category:Cultural heritage monuments in Hungary {{Monument Hungary}} 1 0 1 1
ca-prov en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 133 0 133 135
wlpa-il en Category:Public art in Israel {{Public Art Israel}} 4 0 4 4
uy es Category:Cultural heritage monuments in Uruguay {{Monumento Uruguay}} 0 0 0 0
cl es Category:National monuments in Chile {{Monumento Nacional de Chile}} 8 0 8 8
dz ar Category:Cultural heritage monuments in Algeria {{Cultural Heritage Algeria}} --- skipped: blacklisted --- 2,176
jp-nhs en Category:National historic sites of Japan {{NHS Japan}} 0 0 0 0
pe es Category:Cultural heritage monuments in Peru {{Monumento de Peru}} --- skipped: blacklisted --- 3,467
de-by de Category:Cultural heritage monuments in Bavaria {{Baudenkmal Bayern}} 0 0 0 0
cm fr Category:Cultural heritage monuments in Cameroon {{Cultural Heritage Cameroon}} 12 0 12 12
gh en Category:Cultural heritage monuments in Ghana {{Cultural Heritage Ghana}} --- skipped: blacklisted --- 784
ge ka Category:Cultural heritage monuments in Georgia {{Cultural Heritage Georgia}} --- skipped: blacklisted --- 8,758
ng en Category:Cultural heritage monuments in Nigeria --- --- skipped: no template --- 535
hr hr Category:Cultural heritage monuments in Croatia --- --- skipped: no template --- 1,631
sv es Category:Cultural heritage monuments in El Salvador {{Cultural Heritage El Salvador}} --- skipped: blacklisted --- 514
co es Category:National monuments in Colombia {{Monumento Nacional de Colombia}} 0 0 0 0
lu lb Category:Cultural heritage monuments in Luxembourg --- --- skipped: no template --- 1
np en Category:Cultural heritage monuments in Nepal {{Cultural Heritage Nepal}} --- skipped: blacklisted --- 16,605
ve es Category:Cultural heritage monuments in Venezuela {{Monumento Venezuela}} --- skipped: blacklisted --- 1,339
pt pt Category:Cultural heritage monuments in Portugal {{IGESPAR}} 184 0 184 184
by be-tarask Category:Cultural heritage monuments in Belarus {{Belarus heritage}} 6 0 6 6
ee et Category:Cultural heritage monuments in Estonia {{Kultuurimälestis}} 0 0 0 0
mt de Category:Cultural heritage monuments in Malta {{National Inventory of Cultural Property of the Maltese Islands}} --- skipped: blacklisted --- 6,136
ie en --- --- --- skipped: no template --- ---
cn en Category:Cultural heritage monuments in China {{Cultural Heritage China}} --- skipped: blacklisted --- 2,234
tn fr Category:Cultural heritage monuments in Tunisia {{Cultural Heritage Tunisia}} 2 0 2 2
ru ru Category:Cultural heritage monuments in Russia --- --- skipped: no template --- 11,000
ar es Category:Cultural heritage monuments in Argentina {{Monumento Argentino}} 6 0 6 6
7192 132 7060
Monuments database
ErfgoedBot