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
cz cs Category:Cultural monuments in the Czech Republic {{Cultural Heritage Czech Republic}} 0 0 0 0
gb-wls en Category:Listed buildings in Wales {{Listed building Wales}} 145 0 145 145
sk de Category:Cultural heritage monuments in Slovakia {{Cultural Heritage Slovakia}} 304 0 304 354
fr fr Category:Monuments historiques in France {{Mérimée}} 14 0 14 14
pt-wd pt Category:Cultural heritage monuments in Portugal {{MonumentIDPortugal}} 0 0 0 0
ca-fed en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 165 0 165 165
bo es Category:Cultural heritage monuments in Bolivia {{Monumento Bolivia}} --- failed: unexpected error during processing --- 6,763
pt pt Category:Cultural heritage monuments in Portugal {{IGESPAR}} 0 0 0 0
ar es Category:Cultural heritage monuments in Argentina {{Monumento Argentino}} 6 0 6 6
pl pl Category:Cultural heritage monuments in Poland {{Zabytek nieruchomy}} 716 0 716 716
ve es Category:Cultural heritage monuments in Venezuela {{Monumento Venezuela}} --- skipped: on the skip-list --- 1,339
it-88 ca --- --- --- skipped: no template --- ---
au en Category:Cultural heritage monuments in Australia {{Cultural Heritage Australia}} --- skipped: on the skip-list --- 1,840
ge ka Category:Cultural heritage monuments in Georgia {{Cultural Heritage Georgia}} --- skipped: on the skip-list --- 9,096
wlpa-fi fi Category:Public art in Finland {{Public Art Finland}} 12 0 12 12
rs sr Category:Cultural heritage monuments in Serbia {{Cultural Heritage Serbia}} 138 0 138 138
ch3 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
hk en Category:Declared monuments of Hong Kong {{Declared monuments Hong Kong}} 7 0 7 7
by be-tarask Category:Cultural heritage monuments in Belarus {{Belarus heritage}} 7 0 7 7
se-bbr sv Category:Listed buildings in Sweden {{BBR}} 0 0 0 0
co es Category:National monuments in Colombia {{Monumento Nacional de Colombia}} 0 0 0 0
ch de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
wlpa-es-ct ca Category:Public art in Catalonia {{Art públic Barcelona}} 29 0 29 29
ae en Category:Cultural heritage monuments in the United Arab Emirates {{Monument United Arab Emirates}} 482 0 482 482
ph en Category:Cultural heritage monuments in the Philippines {{WMPH-ID}} --- failed: unexpected error during processing --- 1,584
be-vlg nl Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 158 0 158 158
de-he de Category:Cultural heritage monuments in Hesse {{Kulturdenkmal Hessen}} 0 0 0 0
gb-eng en Category:Listed buildings in England {{Listed building England}} 79 0 79 79
al sq Category:Cultural heritage monuments in Albania {{Cultural Heritage Albania}} 1 0 1 1
es es Category:Cultural heritage monuments in Spain {{BIC}} 0 0 0 0
it it Category:Cultural heritage monuments in Italy {{Monumento italiano}} --- skipped: on the skip-list --- 2,063
za en Category:Cultural heritage monuments in South Africa {{South African Heritage Site}} 110 0 110 110
lu lb Category:Cultural heritage monuments in Luxembourg --- --- skipped: no template --- 1
mt de Category:Cultural heritage monuments in Malta {{National Inventory of Cultural Property of the Maltese Islands}} --- skipped: on the skip-list --- 3,840
ch2 de Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
ke en Category:Cultural heritage monuments in Kenya {{Kenya Monument}} 56 0 56 56
ca fr Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 165 5 160 165
at de Category:Cultural heritage monuments in Austria {{Denkmalgeschütztes Objekt Österreich}} 0 0 0 0
hr hr Category:Cultural heritage monuments in Croatia --- --- skipped: no template --- 1,877
ch-old en Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
il-npa he Category:Heritage sites in Israel {{Heritage site in Israel}} 85 0 85 85
gb-nir en Category:Listed buildings in Northern Ireland {{Listed building Northern Ireland}} 98 0 98 98
ru ru Category:Cultural heritage monuments in Russia --- --- skipped: no template --- 4,181
be-vlg fr Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 158 0 158 158
nl-gem nl Category:Gemeentelijke monumenten {{Gemeentelijk monument}} 6 0 6 11
es-gl gl Category:Cultural heritage monuments in Spain {{BIC}} 0 0 0 0
ch fr Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
my commons Category:Cultural heritage monuments in Malaysia {{Cultural Heritage Malaysia}} 222 0 222 222
us-ca en Category:California Historical Landmarks {{US-CHL}} 151 0 151 155
fr ca Category:Monuments historiques in France {{Mérimée}} 14 0 14 14
es-ct ca Category:Cultural heritage monuments in Spain {{BIC}} 0 0 0 0
ie en --- --- --- skipped: no template --- ---
xk sq Category:Cultural heritage monuments in Kosovo {{Cultural Heritage Kosovo}} 201 0 201 201
th th Category:Cultural heritage monuments in Thailand {{Cultural Heritage Thailand}} 372 0 372 372
mx es Category:Cultural heritage monuments in Mexico {{Monumento de México}} 449 0 449 449
hu hu Category:Cultural heritage monuments in Hungary {{Monument Hungary}} 1 0 1 1
uy es Category:Cultural heritage monuments in Uruguay {{Monumento Uruguay}} 0 0 0 0
ro ro Category:Historical monuments in Romania {{Monument istoric}} 3 0 3 3
fr-object fr Category:Objets monuments historiques in France {{Palissy}} 0 0 0 0
wlpa-at de Category:Public art in Austria {{Public Art Austria}} 1 0 1 1
ng en Category:Cultural heritage monuments in Nigeria --- --- skipped: no template --- 2,748
np en Category:Cultural heritage monuments in Nepal {{Cultural Heritage Nepal}} --- skipped: on the skip-list --- 17,015
no no Category:Cultural heritage monuments in Norway {{Monument Norge}} 3 0 3 3
pe es Category:Cultural heritage monuments in Peru {{Monumento de Peru}} --- skipped: on the skip-list --- 3,861
be-wal fr Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
nl-aw en Category:Cultural heritage monuments in Aruba {{Cultural Heritage Aruba}} 161 0 161 161
dz ar Category:Cultural heritage monuments in Algeria {{Cultural Heritage Algeria}} --- skipped: on the skip-list --- 2,634
ir fa Category:Cultural heritage monuments in Iran {{Cultural Heritage Iran}} --- skipped: on the skip-list --- 8,096
nl-prov nl Category:Provinciale monumenten {{Provinciaal monument}} 6 0 6 6
de-by de Category:Cultural heritage monuments in Bavaria {{Baudenkmal Bayern}} 0 0 0 0
ua uk Category:Cultural heritage monuments in Ukraine {{Monument Ukraine}} 5 0 5 5
ca-muni en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 160 0 160 165
pa es Category:Cultural heritage monuments in Panama {{PCN}} 101 0 101 102
be-wal nl Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
es-vc ca Category:Cultural heritage monuments in Spain {{BIC}} 0 0 0 0
cn en Category:Cultural heritage monuments in China {{Cultural Heritage China}} --- skipped: on the skip-list --- 2,094
wlpa-il en Category:Public art in Israel {{Public Art Israel}} 7 0 7 7
cm fr Category:Cultural heritage monuments in Cameroon {{Cultural Heritage Cameroon}} 13 0 13 13
tn fr Category:Cultural heritage monuments in Tunisia {{Cultural Heritage Tunisia}} 2 0 2 2
gh en Category:Cultural heritage monuments in Ghana {{Cultural Heritage Ghana}} --- skipped: on the skip-list --- 221
se-arbetsl sv Category:Working Life Museums in Sweden {{Arbetslivsmuseum}} 0 0 0 0
ee et Category:Cultural heritage monuments in Estonia {{Kultuurimälestis}} 0 0 0 0
de-nrw-k de Category:Cultural heritage monuments in Cologne {{Kulturdenkmal Köln}} 409 0 409 408
am hy Category:Cultural heritage monuments in Armenia {{Cultural Heritage Armenia}} 489 0 489 489
sv es Category:Cultural heritage monuments in El Salvador {{Cultural Heritage El Salvador}} --- skipped: on the skip-list --- 382
de-nrw-bm de Category:Cultural heritage monuments in Bergheim {{Kulturdenkmal Bergheim}} 44 0 44 44
jp-nhs en Category:National historic sites of Japan {{NHS Japan}} 0 0 0 0
be-bru nl Category:Cultural heritage monuments in Brussels {{Monument Brussels}} 0 0 0 0
jo ar Category:Cultural heritage monuments in Jordan {{Cultural Heritage Jordan}} --- skipped: on the skip-list --- 2,749
se-fornmin sv Category:Archaeological monuments in Sweden {{Fornminne}} 1 0 1 1
il he Category:Heritage sites in Israel {{Heritage site in Israel}} 85 0 85 85
eg ar Category:Cultural heritage monuments in Egypt {{Cultural Heritage Egypt}} --- failed: unexpected error during processing --- 811
es ca Category:Cultural heritage monuments in Spain {{BIC}} 0 0 0 0
nl-aw nl Category:Cultural heritage monuments in Aruba {{Cultural Heritage Aruba}} 161 0 161 161
be-wal en Category:Cultural heritage monuments in Wallonia {{Monument Wallonie}} 0 0 0 0
ch it Category:Cultural properties of national significance in Switzerland {{Cultural property of national significance in Switzerland}} 50 0 50 50
in en Category:Cultural heritage monuments in India {{ASI Monument}} 2941 0 2941 2,940
be-vlg en Category:Onroerend erfgoed in Flanders {{Onroerend erfgoed}} 158 0 158 158
iq ar Category:Cultural heritage monuments in Iraq {{Cultural Heritage Iraq}} 958 0 958 958
ad ca Category:Cultural heritage monuments in Andorra {{Béns Andorra}} 3 0 3 3
aq en Category:Antarctic Protected Areas {{Antarctic Protected Area}} 0 0 0 0
dk-fortids da Category:Archaeological monuments in Denmark {{Fortidsminde}} 0 0 0 0
se-ship sv Category:Listed historical ships in Sweden {{K-Fartyg}} 9 0 9 9
gb-sct en Category:Listed buildings in Scotland {{Listed building Scotland}} --- skipped: on the skip-list --- 267
cl es Category:National monuments in Chile {{Monumento Nacional de Chile}} 4 0 4 4
nl nl Category:Rijksmonumenten {{Rijksmonument}} 4 0 4 4
sk sk Category:Cultural heritage monuments in Slovakia {{Cultural Heritage Slovakia}} 354 0 354 354
az az Category:Cultural heritage monuments in Azerbaijan {{Cultural Heritage Azerbaijan}} 562 0 562 562
dk-bygning da Category:Listed buildings in Denmark {{Fredet bygning}} 0 0 0 0
ca-prov en Category:Cultural heritage monuments in Canada {{Historic Places in Canada}} 164 0 164 165
pk en Category:Cultural heritage monuments in Pakistan {{Cultural Heritage Pakistan}} 51 0 51 51
us en Category:National Register of Historic Places {{NRHP}} 19 8 11 14
it-bz de Category:Cultural heritage monuments in South Tyrol {{Denkmalgeschütztes Objekt Südtirol}} 0 0 0 0
ug en Category:National Cultural Sites in Uganda {{National Cultural Site Uganda}} 754 0 754 754
12283 13 12270


Monuments database
ErfgoedBot