User:ErfgoedBot/Depicts monuments.js
Jump to navigation
Jump to search
Note: After saving, you have to bypass your browser's cache to see the changes. Internet Explorer: press Ctrl-F5, Mozilla: hold down Shift while clicking Reload (or press Ctrl-Shift-R), Opera/Konqueror: press F5, Safari: hold down Shift + Alt while clicking Reload, Chrome: hold down Shift while clicking Reload.
Documentation for this user script can be added at User:ErfgoedBot/Depicts monuments. |
- Report page listing warnings and errors.
/* This file contains the mappings to templates here on Commons with properties
* on Wikidata so a robot can add depicts statements.
*
* The property id on Wikidata is the key. The following fields are used:
* * description - Human readable description (currently not actually used)
* * property - Property id on Wikidata
* * propertyname - Name of the property on Wikidata
* * template - The template here on Commons
* * trackercategory - The tracker category set by the template here on Commons
* * search - The search string to retrieve files to work on (probably optional in the future)
* * designation - The heritage designation (P1435) to filter by on Wikidata (optional)
* * templateregex - The regular expression to extract the monument id that matches the id in the Wikidata statement
* * missingdepicts - The name of the tracker category for files missing depicts (P180)
* * missinglocation - The name of the tracker category for files missing location of creation (P1071)
*
* Robot code at https://github.com/multichill/toollabs/blob/master/bot/commons/depicts_monuments.py (will probably move later when it's more mature)
*
* After this comment the file should be JSON formatted, please verify at https://jsonlint.com/ before changing
*/
{ "P359" : { "description" : "Dutch Rijksmonumenten",
"property" : "P359",
"propertyname" : "Rijksmonument ID",
"template" : "Rijksmonument",
"trackercategory" : "Rijksmonumenten_with_known_IDs",
"search" : "file: incategory:Rijksmonumenten_with_known_IDs hastemplate:Rijksmonument -haswbstatement:P180",
"designation" : "Q916333",
"templateregex" : "\\{\\{\\s*[rR]ijksmonument\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Rijksmonumenten_missing_SDC_depicts",
"missinglocation" : "Rijksmonumenten_missing_SDC_location_of_creation"
},
"P380" : { "description" : "Mérimée database of French cultural heritage",
"property" : "P380",
"propertyname" : "Mérimée ID",
"template" : "Mérimée",
"trackercategory" : "Cultural_heritage_monuments_in_France_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_France_with_known_IDs hastemplate:Mérimée -haswbstatement:P180",
"templateregex": "\\{\\{\\s*[mM]érimée\\s*\\|(\\s*type\\s*=[^\\|]+\\s*\\|)?\\s*(?P<id>[PEI][A]\\d[0-9AB]\\d\\d\\d\\d\\d\\d)\\s*(\\s*type\\s*=[^\\}]+)?\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_France_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_France_missing_SDC_location_of_creation"
},
"P477" : { "description" : "Canadian Register of Historic Places",
"property" : "P477",
"propertyname" : "Canadian Register of Historic Places ID",
"template" : "Historic_Places_in_Canada",
"trackercategory" : "Heritage_properties_in_Canada_with_known_IDs",
"search" : "file: incategory:Heritage_properties_in_Canada_with_known_IDs hastemplate:Historic_Places_in_Canada -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*([hH]istoric Places in Canada|HPC)\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Heritage_properties_in_Canada_missing_SDC_depicts",
"missinglocation" : "Heritage_properties_in_Canada_missing_SDC_location_of_creation"
},
"P649" : { "description" : "National Register of Historic Places assigned by the National Park Service of the USA",
"property" : "P649",
"propertyname" : "NRHP reference number",
"template" : "NRHP",
"trackercategory" : "National_Register_of_Historic_Places_with_known_IDs",
"search" : "file: incategory:National_Register_of_Historic_Places_with_known_IDs hastemplate:NRHP -haswbstatement:P180",
"designation" : "Q19558910",
"templateregex": "\\{\\{\\s*NRHP\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "National_Register_of_Historic_Places_missing_SDC_depicts",
"missinglocation" : "National_Register_of_Historic_Places_missing_SDC_location_of_creation"
},
"P762" : { "description" : "Cultural heritage properties in the Czech Republic",
"property" : "P762",
"propertyname" : "Czech cultural heritage ID",
"template" : "Cultural_Heritage_Czech_Republic",
"trackercategory" : "Cultural_monuments_in_the_Czech_Republic_with_known_IDs",
"search" : "file: incategory:Cultural_monuments_in_the_Czech_Republic_with_known_IDs hastemplate:Cultural_Heritage_Czech_Republic -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[cC]ultural Heritage Czech Republic\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "Cultural_monuments_in_the_Czech_Republic_missing_SDC_depicts",
"missinglocation" : "Cultural_monuments_in_the_Czech_Republic_missing_SDC_location_of_creation"
},
"P1216" : { "description" : "Listed buildings in England",
"property" : "P1216",
"propertyname" : "National Heritage List for England number",
"template" : "Listed_building_England",
"trackercategory" : "Listed_buildings_in_England_with_known_IDs",
"search" : "file: incategory:Listed_buildings_in_England_with_known_IDs hastemplate:Listed_building_England -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[lLR]isted building England\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Listed_buildings_in_England_missing_SDC_depicts",
"missinglocation" : "Listed_buildings_in_England_missing_SDC_location_of_creation"
},
"P1369" : { "description" : "Cultural heritage monuments in Iran",
"property" : "P1369",
"propertyname" : "Iranian National Heritage registration number",
"template" : "Cultural_Heritage_Iran",
"trackercategory" : "Cultural_heritage_monuments_in_Iran_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Iran_with_known_IDs hastemplate:Cultural_Heritage_Iran -haswbstatement:P180",
"templateregex": "\\{\\{\\s*[cC]ultural Heritage Iran\\s*\\|(1=)?\\s*(?P<id>\\d\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Iran_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Iran_missing_SDC_location_of_creation"
},
"P1371" : { "description" : "Archaeological Survey of India monument",
"property" : "P1371",
"propertyname" : "ASI Monument ID",
"template" : "ASI_Monument",
"trackercategory" : "ASI_monuments_with_known_IDs",
"search" : "file: incategory:ASI_monuments_with_known_IDs hastemplate:ASI_Monument -haswbstatement:P180",
"templateregex": "\\{\\{\\s*[lA]SI Monument\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "ASI_Monument_missing_SDC_depicts",
"missinglocation" : "ASI_Monument_missing_SDC_location_of_creation"
},
"P1459" : { "description" : "Listed buildings in Wales",
"property" : "P1459",
"propertyname" : "Cadw Building ID",
"template" : "Listed_building_Wales",
"trackercategory" : "Listed_buildings_in_Wales_with_known_IDs",
"search" : "file: incategory:Listed_buildings_in_Wales_with_known_IDs hastemplate:Listed_building_Wales -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[lLR]isted building Wales\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Listed_buildings_in_Wales_missing_SDC_depicts",
"missinglocation" : "Listed_buildings_in_Wales_missing_SDC_location_of_creation"
},
"P1460" : { "description" : "Listed buildings in Northern Ireland",
"property" : "P1460",
"propertyname" : "NIEA building ID",
"template" : "Listed_building_Northern_Ireland",
"trackercategory" : "Listed_buildings_in_Northern_Ireland_with_known_IDs",
"search" : "file: incategory:Listed_buildings_in_Northern_Ireland_with_known_IDs hastemplate:Listed_building_Northern_Ireland -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[lLR]isted building Northern Ireland\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "Listed_buildings_in_Northern_Ireland_missing_SDC_depicts",
"missinglocation" : "Listed_buildings_in_Northern_Ireland_missing_SDC_location_of_creation"
},
"P1626" : { "description" : "Thai cultural heritage",
"property" : "P1626",
"propertyname" : "Thai cultural heritage ID",
"template" : "Cultural Heritage Thailand",
"trackercategory" : "Cultural_heritage_monuments_in_Thailand_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Thailand_with_known_IDs hastemplate:Cultural_Heritage_Thailand -haswbstatement:P180",
"designation" : "Q16438244",
"templateregex" : "\\{\\{\\s*[cC]ultural[ _]Heritage[ _]Thailand\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Thailand_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Thailand_missing_SDC_location_of_creation"
},
"P1708" : { "description" : "Cultural heritage monuments in Saxony",
"property" : "P1708",
"propertyname" : "LfDS object ID",
"template" : "Kulturdenkmal_Sachsen",
"trackercategory" : "Cultural_heritage_monuments_in_Saxony_with_known_ID",
"search" : "file: incategory:Cultural_heritage_monuments_in_Saxony_with_known_ID hastemplate:Kulturdenkmal_Sachsen -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[kK]ulturdenkmal Sachsen\\s*\\|(1=)?\\s*(?P<id>\\d+)(\\|[^\\}]+)?\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Saxony_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Saxony_missing_SDC_location_of_creation"
},
"P1769" : { "description" : "Cultural heritage monuments in Hesse",
"property" : "P1769",
"propertyname" : "denkXweb identifier",
"template" : "Kulturdenkmal_Hessen",
"trackercategory" : "Cultural_heritage_monuments_in_Hesse_with_known_ID",
"search" : "file: incategory:Cultural_heritage_monuments_in_Hesse_with_known_ID hastemplate:Kulturdenkmal_Hessen -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[kK]ulturdenkmal Hessen\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Hesse_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Hesse_missing_SDC_location_of_creation"
},
"P1770" : { "description" : "Romanian heritage sites",
"property" : "P1770",
"propertyname" : "Romania LMI code",
"template" : "Monument_istoric",
"trackercategory" : "Cultural_heritage_monuments_in_Romania_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Romania_with_known_IDs hastemplate:Monument_istoric -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[mM]onument istoric\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Romania_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Romania_missing_SDC_location_of_creation"
},
"P1799" : { "description" : "Maltese Islands National Inventory of Cultural Properties",
"property" : "P1799",
"propertyname" : "Maltese Islands National Inventory of Cultural Property ID",
"template" : "National_Inventory_of_Cultural_Property_of_the_Maltese_Islands",
"trackercategory" : "Cultural_heritage_monuments_in_Malta_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Malta_with_known_IDs hastemplate:National_Inventory_of_Cultural_Property_of_the_Maltese_Islands -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[nN]ational Inventory of Cultural Property of the Maltese Islands\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Malta_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Malta_missing_SDC_location_of_creation"
},
"P2424" : { "description" : "Cultural heritage monuments in Berlin",
"property" : "P2424",
"propertyname" : "Berlin cultural heritage ID",
"template" : "Kulturdenkmal_Berlin",
"trackercategory" : "Cultural_heritage_monuments_in_Berlin_with_known_ID",
"search" : "file: incategory:Cultural_heritage_monuments_in_Berlin_with_known_ID hastemplate:Kulturdenkmal_Berlin -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[kK]ulturdenkmal Berlin\\s*\\|(1=)?\\s*(?P<id>\\d+)(\\|[^\\}]+)?\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Berlin_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Berlin_missing_SDC_location_of_creation"
},
"P2948" : { "description" : "Estonian cultural monuments",
"property" : "P2948",
"propertyname" : " Estonian cultural monument ID",
"template" : "Kultuurimälestis",
"trackercategory" : "Cultural_heritage_monuments_in_Estonia_(with_known_IDs)",
"search" : "file: incategory:Cultural_heritage_monuments_in_Estonia_(with_known_IDs) hastemplate:Kultuurimälestis -haswbstatement:P1071",
"templateregex": "\\{\\{\\s*[kK]ultuurimälestis\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Estonia_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Estonia_missing_SDC_location_of_creation"
},
"P2951" : { "description" : "Cultural heritage database in Austria",
"property" : "P2951",
"propertyname" : "Cultural heritage database in Austria ObjektID",
"template" : "Denkmalgeschütztes_Objekt_Österreich",
"trackercategory" : "Cultural_heritage_monuments_in_Austria_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Austria_with_known_IDs hastemplate:Denkmalgeschütztes_Objekt_Österreich -haswbstatement:P1071",
"designation" : "Q1188447",
"templateregex": "\\{\\{\\s*[dD](oo|enkmalgeschütztes Objekt Österreich)\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Austria_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Austria_missing_SDC_location_of_creation"
},
"P3170" : { "description" : "Cultural heritage monuments in Armenia",
"property" : "P3170",
"propertyname" : "Cultural Heritage Armenia ID",
"template" : "Cultural_Heritage_Armenia",
"trackercategory" : "Cultural_heritage_monuments_in_Armenia_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Armenia_with_known_IDs hastemplate:Cultural_Heritage_Armenia -haswbstatement:P180",
"designation" : "Q26884649",
"templateregex": "\\{\\{\\s*[cC]ultural Heritage Armenia\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Armenia_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Armenia_SDC_location_of_creation"
},
"P4120" : { "description" : "Ontario Heritage Act Register",
"property" : "P4120",
"propertyname" : "Ontario Heritage Act Register ID",
"template" : "Ontario_Heritage_Act_Register",
"trackercategory" : "Ontario_Heritage_Trust_sites_with_known_IDs",
"search" : "file: incategory:Ontario_Heritage_Trust_sites_with_known_IDs hastemplate:Ontario_Heritage_Act_Register -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*([oO]Ontario Heritage Act Register|OHAR)\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Ontario_Heritage_Trust_sites_missing_SDC_depicts",
"missinglocation" : "Ontario_Heritage_Trust_sites_missing_SDC_location_of_creation"
},
"P4166" : { "description" : "Georgian National Register of Monuments",
"property" : "P4166",
"propertyname" : "Georgian National Register of Monuments ID",
"template" : "Cultural_Heritage_Georgia",
"trackercategory" : "Cultural_heritage_monuments_in_Georgia_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Georgia_with_known_IDs hastemplate:Cultural_Heritage_Georgia -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[cC]ultural Heritage Georgia\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Georgia_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Georgia_SDC_location_of_creation"
},
"P4244" : { "description" : "Cultural heritage monuments in Bavaria",
"property" : "P4244",
"propertyname" : "Bavarian monument authority ID",
"template" : "Baudenkmal_Bayern",
"trackercategory" : "Cultural_heritage_monuments_in_Bavaria_with_known_IDs",
"search" : "file: incategory:Cultural_heritage_monuments_in_Bavaria_with_known_IDs hastemplate:Baudenkmal_Bayern -haswbstatement:P180",
"templateregex" : "\\{\\{\\s*[bB]audenkmal Bayern\\s*\\|(1=)?\\s*(?P<id>[^\\}]+)\\s*\\}\\}",
"missingdepicts" : "Cultural_heritage_monuments_in_Bavaria_missing_SDC_depicts",
"missinglocation" : "Cultural_heritage_monuments_in_Bavaria_missing_SDC_location_of_creation"
},
"P7135" : { "description" : "Dutch Rijksmonumentcomplexen",
"property" : "P7135",
"propertyname" : "Rijksmonument complex ID",
"template" : "Rijksmonumentcomplex",
"trackercategory" : "Rijksmonumentcomplexen_with_known_IDs",
"search" : "file: incategory:Rijksmonumentcomplexen_with_known_IDs hastemplate:Rijksmonumentcomplex -haswbstatement:P180",
"designation" : "Q13423591",
"templateregex" : "\\{\\{\\s*[rR]ijksmonumentcomplex\\s*\\|(1=)?\\s*(?P<id>\\d+)\\s*\\}\\}",
"missingdepicts" : "Rijksmonumentcomplexen_missing_SDC_depicts",
"missinglocation" : "Rijksmonumentcomplexen_missing_SDC_location_of_creation"
}
}