Commons:Monuments database/Categorization

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
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.

Categorization[edit]

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 template[edit]

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 countries[edit]

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 skip-listed. 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.

Overview[edit]

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
am hy Category:Cultural heritage monuments in Armenia {{Cultural Heritage Armenia}} 352 0 352 352
nl-prov nl Category:Provinciale monumenten {{Provinciaal monument}} 6 0 6 6
cn en Category:Cultural heritage monuments in China {{Cultural Heritage China}} --- skipped: on the skip-list --- 2,074
pk en Category:Cultural heritage monuments in Pakistan {{Cultural Heritage Pakistan}} 81 0 81 81
ru ru Category:Cultural heritage monuments in Russia --- --- skipped: no template --- 2,943
uy es Category:Cultural heritage monuments in Uruguay {{Monumento Uruguay}} 0 0 0 0
fr fr Category:Monuments historiques in France {{Mérimée}} 17 0 17 17
pt-wd pt Category:Cultural heritage monuments in Portugal {{MonumentIDPortugal}} 0 0 0 0
tn fr Category:Cultural heritage monuments in Tunisia {{Cultural Heritage Tunisia}} 0 0 0 0
xk sq Category:Cultural heritage monuments in Kosovo {{Cultural Heritage Kosovo}} 181 0 181 181
es ca Category:Cultural heritage monuments in Spain {{BIC}} 712 0 712 712
us en Category:National Register of Historic Places {{NRHP}} 6 0 6 0
co es Category:National monuments in Colombia {{Monumento Nacional de Colombia}} 0 0 0 0
il-npa he Category:Heritage sites in Israel {{Heritage site in Israel}} 51 0 51 51
ch de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
be-wal fr Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
se-arbetsl sv Category:Working Life Museums in Sweden {{Arbetslivsmuseum}} 0 0 0 0
se-bbr sv Category:Listed buildings in Sweden {{BBR}} 0 0 0 0
ar es Category:Cultural heritage monuments in Argentina {{Monumento Argentino}} 6 0 6 6
be-vlg fr Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 87 0 87 87
dk-bygning da Category:Listed buildings in Denmark {{Fredet bygning}} 0 0 0 0
my commons Category:Cultural heritage monuments in Malaysia {{Cultural Heritage Malaysia}} 208 0 208 208
be-bru nl Category:Cultural heritage monuments in Brussels {{Monument Brussels}} 0 0 0 0
dz ar Category:Cultural heritage monuments in Algeria {{Cultural Heritage Algeria}} --- skipped: on the skip-list --- 2,440
fr ca Category:Monuments historiques in France {{Mérimée}} 17 0 17 17
il he Category:Heritage sites in Israel {{Heritage site in Israel}} 51 0 51 51
wlpa-at de Category:Public art in Austria {{Public Art Austria}} 2 0 2 2
ve es Category:Cultural heritage monuments in Venezuela {{Monumento Venezuela}} --- skipped: on the skip-list --- 1,339
ug en Category:National Cultural Sites in Uganda {{National Cultural Site Uganda}} 854 0 854 854
de-he de Category:Cultural heritage monuments in Hesse {{Kulturdenkmal Hessen}} 0 0 0 0
ch it Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
ae en Category:Cultural heritage monuments in the United Arab Emirates {{Monument United Arab Emirates}} 480 0 480 480
ca-fed en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 150 0 150 150
eg ar Category:Cultural heritage monuments in Egypt {{Cultural Heritage Egypt}} 1030 0 1030 1,030
mt de Category:Cultural heritage monuments in Malta {{National Inventory of Cultural Property of the Maltese Islands}} --- skipped: on the skip-list --- 4,040
pl pl Category:Cultural heritage monuments in Poland {{Zabytek nieruchomy}} 1473 0 1473 1,473
fr-object fr Category:Objets monuments historiques in France {{Palissy}} 0 0 0 0
aq en Category:Antarctic Protected Areas {{Antarctic Protected Area}} 0 0 0 0
ch2 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
nl-aw nl Category:Cultural heritage monuments in Aruba {{Cultural Heritage Aruba}} 157 0 157 157
at de Category:Cultural heritage monuments in Austria {{Denkmalgeschütztes Objekt Österreich}} 0 0 0 0
pa es Category:Cultural heritage monuments in Panama {{PCN}} 91 0 91 91
de-nrw-bm de Category:Cultural heritage monuments in Bergheim {{Kulturdenkmal Bergheim}} 44 0 44 44
hr hr Category:Cultural heritage monuments in Croatia --- --- skipped: no template --- 1,997
wlpa-es-ct ca Category:Public art in Catalonia {{Art públic Barcelona}} 36 0 36 36
jp-nhs en Category:National historic sites of Japan {{NHS Japan}} 0 0 0 0
az az Category:Cultural heritage monuments in Azerbaijan {{Cultural Heritage Azerbaijan}} 861 0 861 861
ro ro Category:Historical monuments in Romania {{Monument istoric}} 3 0 3 3
au en Category:Cultural heritage monuments in Australia {{Cultural Heritage Australia}} --- skipped: on the skip-list --- 1,564
za en Category:Cultural heritage monuments in South Africa {{South African Heritage Site}} 112 0 112 112
gb-wls en Category:Listed buildings in Wales {{Listed building Wales}} 237 0 237 237
it it Category:Cultural heritage monuments in Italy {{Monumento italiano}} --- skipped: on the skip-list --- 820
se-fornmin sv Category:Archaeological monuments in Sweden {{Fornminne}} 0 0 0 0
us-ca en Category:California Historical Landmarks {{US-CHL}} 148 0 148 148
ch-old en Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
wlpa-fi fi Category:Public art in Finland {{Public Art Finland}} 13 0 13 13
sv es Category:Cultural heritage monuments in El Salvador {{Cultural Heritage El Salvador}} --- skipped: on the skip-list --- 427
ir fa Category:Cultural heritage monuments in Iran {{Cultural Heritage Iran}} --- skipped: on the skip-list --- 6,219
sk sk Category:Cultural heritage monuments in Slovakia {{Cultural Heritage Slovakia}} 8 0 8 8
es es Category:Cultural heritage monuments in Spain {{BIC}} 712 0 712 712
be-wal nl Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
ch3 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
es-ct ca Category:Cultural heritage monuments in Spain {{BIC}} 712 0 712 712
bo es Category:Cultural heritage monuments in Bolivia {{Monumento Bolivia}} --- failed: unexpected error during processing --- 5,937
be-vlg nl Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 87 0 87 87
de-nrw-k de Category:Cultural heritage monuments in Cologne {{Kulturdenkmal Köln}} 414 0 414 414
rs sr Category:Cultural heritage monuments in Serbia {{Cultural Heritage Serbia}} 134 0 134 134
th th Category:Cultural heritage monuments in Thailand {{Cultural Heritage Thailand}} 827 0 827 827
mx es Category:Cultural heritage monuments in Mexico {{Monumento de México}} 424 0 424 424
ph en Category:Cultural heritage monuments in the Philippines {{WMPH-ID}} 139 0 139 113
iq ar Category:Cultural heritage monuments in Iraq {{Cultural Heritage Iraq}} 918 0 918 918
ng en Category:Cultural heritage monuments in Nigeria --- --- skipped: no template --- 2,669
nl-aw en Category:Cultural heritage monuments in Aruba {{Cultural Heritage Aruba}} 157 0 157 157
jo ar Category:Cultural heritage monuments in Jordan {{Cultural Heritage Jordan}} --- skipped: on the skip-list --- 3,401
dk-fortids da Category:Archaeological monuments in Denmark {{Fortidsminde}} 0 0 0 0
ge ka Category:Cultural heritage monuments in Georgia {{Cultural Heritage Georgia}} --- skipped: on the skip-list --- 9,005
de-by de Category:Cultural heritage monuments in Bavaria {{Baudenkmal Bayern}} 0 0 0 0
al sq Category:Cultural heritage monuments in Albania {{Cultural Heritage Albania}} 2 0 2 2
be-vlg en Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 87 0 87 87
be-wal en Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
sk de Category:Cultural heritage monuments in Slovakia {{Cultural Heritage Slovakia}} 8 0 8 8
no no Category:Cultural heritage monuments in Norway {{Monument Norge}} 3 0 3 3
gb-eng en Category:Listed buildings in England {{Listed building England}} 7 0 7 7
ca-prov en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 150 0 150 150
nl nl Category:Rijksmonumenten {{Rijksmonument}} 2 0 2 2
ch fr Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 263 0 263 263
in-com commons Category:Cultural heritage monuments in India {{WLM India Wikidata ID}} 3164 0 3164 3,165
gb-nir en Category:Listed buildings in Northern Ireland {{Listed building Northern Ireland}} 108 0 108 108
pt pt Category:Cultural heritage monuments in Portugal {{IGESPAR}} 0 0 0 0
hk en Category:Declared monuments of Hong Kong {{Declared monuments Hong Kong}} 3 0 3 3
cm fr Category:Cultural heritage monuments in Cameroon {{Cultural Heritage Cameroon}} 13 0 13 13
it-88 ca --- --- --- skipped: no template --- ---
np en Category:Cultural heritage monuments in Nepal {{Cultural Heritage Nepal}} --- skipped: on the skip-list --- 12,603
es-gl gl Category:Cultural heritage monuments in Spain {{BIC}} 712 0 712 712
cz cs Category:Cultural monuments in the Czech Republic {{Cultural Heritage Czech Republic}} 0 0 0 0
cl es Category:National monuments in Chile {{Monumento Nacional de Chile}} 15 0 15 15
es-vc ca Category:Cultural heritage monuments in Spain {{BIC}} 712 0 712 712
by be-tarask Category:Cultural heritage monuments in Belarus {{Belarus heritage}} 8 0 8 8
pe es Category:Cultural heritage monuments in Peru {{Monumento de Peru}} --- skipped: on the skip-list --- 5,417
it-bz de Category:Cultural heritage monuments in South Tyrol {{Denkmalgeschütztes Objekt Südtirol}} 0 0 0 0
lu lb Category:Cultural heritage monuments in Luxembourg --- --- skipped: no template --- 1
hu hu Category:Cultural heritage monuments in Hungary {{Monument Hungary}} 2 0 2 2
wlpa-il en Category:Public art in Israel {{Public Art Israel}} 24 0 24 24
ke en Category:Cultural heritage monuments in Kenya {{Kenya Monument}} 108 0 108 108
ad ca Category:Cultural heritage monuments in Andorra {{Béns Andorra}} 3 0 3 3
ca-muni en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 150 0 150 150
se-ship sv Category:Listed historical ships in Sweden {{K-Fartyg}} 3 0 3 3
ca fr Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 150 0 150 150
gh en Category:Cultural heritage monuments in Ghana {{Cultural Heritage Ghana}} --- skipped: on the skip-list --- 511
ua uk Category:Cultural heritage monuments in Ukraine {{Monument Ukraine}} 6400 0 6400 6,400
ee et Category:Cultural heritage monuments in Estonia {{Kultuurimälestis}} 0 0 0 0
in en Category:Cultural heritage monuments in India {{ASI Monument}} 3164 0 3164 3,165
ie en --- --- --- skipped: no template --- ---
nl-gem nl Category:Gemeentelijke monumenten {{Gemeentelijk monument}} 15 0 15 15
gb-sct en Category:Listed buildings in Scotland {{Listed building Scotland}} --- skipped: on the skip-list --- 123
28589 0 28589


Monuments database
ErfgoedBot