Property talk:P771

From Wikidata
Jump to navigation Jump to search

Documentation

Swiss municipality code
identifier for a municipality in Switzerland
RepresentsSwiss Community Identification Number (Q70718), Community Identification Number (Q23003)
Data typeExternal identifier
Template parameter
Domainmunicipality of Switzerland (Q70208), territory shared by several municipalities of Switzerland (Q14872996), area not part of a municipality of Switzerland (Q14811181) or municipality of Liechtenstein (Q203300)
Allowed values^[1-9][0-9]*
ExampleVacallo (Q67470)5268
Cottens (Q57113)5478
Sourcehttps://www.bfs.admin.ch/bfs/de/home/grundlagen/agvch.html
https://www.bfs.admin.ch/bfs/de/home/grundlagen/agvch/historisiertes-gemeindeverzeichnis.html
Formatter URLhttps://ld.admin.ch/municipality/$1
Tracking: sameno label (Q28605270)
Tracking: differencesno label (Q24194660)
Tracking: usageCategory:Pages using Wikidata property P771 (Q24194662)
Tracking: local yes, WD nono label (Q24194658)
Related to country Switzerland (Q39) (See 76 others)
Lists
  • Items with the most statements of this property
  • Count of items by number of statements (chart)
  • Count of items by number of sitelinks (chart)
  • Items with the most identifier properties
  • Items with no other external identifier
  • Items with no other statements
  • Most recently created items
  • Items with novalue claims
  • Items with unknown value claims
  • Usage history (total)
  • Chart by item creation date
  • Database reports/Complex constraint violations/P771
  • Database reports/Constraint violations/P771
  • Map
  • Random list
  • Proposal discussionProposal discussion
    Current uses
    Total3,405
    Main statement3,402>99.9% of uses
    Qualifier2<0.1% of uses
    Reference1<0.1% of uses
    Search for values
    [create Create a translatable help page (preferably in English) for this property to be included here]
    Format “[0-679]\d{3}: value must be formatted using this pattern (PCRE syntax). (Help)
    List of violations of this constraint: Database reports/Constraint violations/P771#Format, hourly updated report, SPARQL
    Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (Help)
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P625, hourly updated report, SPARQL
    Distinct values: this property likely contains a value that is different from all other items. (Help)
    List of violations of this constraint: Database reports/Constraint violations/P771#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)
    Item “located in the administrative territorial entity (P131): Valais (Q834), Bern (Q11911), Canton of Geneva (Q11917), Glarus (Q11922), Grisons (Q11925), Solothurn (Q11929), Zug (Q11933), Canton of Zürich (Q11943), Aargau (Q11972), Appenzell Ausserrhoden (Q12079), Appenzell Innerrhoden (Q12094), Lucerne (Q12121), Basel-Landschaft (Q12146), Basel-Stadt (Q12172), Uri (Q12404), Schwyz (Q12433), Obwalden (Q12573), Nidwalden (Q12592), Canton of Fribourg (Q12640), Schaffhausen (Q12697), Thurgau (Q12713), Ticino (Q12724), Neuchâtel (Q12738), canton St. Gallen (Q12746), Jura (Q12755), canton Vaud (Q12771): Items with this property should also have “located in the administrative territorial entity (P131): Valais (Q834), Bern (Q11911), Canton of Geneva (Q11917), Glarus (Q11922), Grisons (Q11925), Solothurn (Q11929), Zug (Q11933), Canton of Zürich (Q11943), Aargau (Q11972), Appenzell Ausserrhoden (Q12079), Appenzell Innerrhoden (Q12094), Lucerne (Q12121), Basel-Landschaft (Q12146), Basel-Stadt (Q12172), Uri (Q12404), Schwyz (Q12433), Obwalden (Q12573), Nidwalden (Q12592), Canton of Fribourg (Q12640), Schaffhausen (Q12697), Thurgau (Q12713), Ticino (Q12724), Neuchâtel (Q12738), canton St. Gallen (Q12746), Jura (Q12755), canton Vaud (Q12771)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Constance (Q3834), Büsingen am Hochrhein (Q61698), Campione d'Italia (Q244207), Vaduz (Q1844), Triesen (Q49654), Balzers (Q49663), Triesenberg (Q49651), Schaan (Q49657), Planken (Q49660), Eschen (Q4540), Mauren (Q49661), Gamprin (Q49662), Ruggell (Q49659)
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P131
    Item “OpenStreetMap relation ID (P402): Items with this property should also have “OpenStreetMap relation ID (P402)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P402, search, SPARQL
    Item “locator map image (P242): Items with this property should also have “locator map image (P242)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P242, SPARQL
    Item “coat of arms image (P94): Items with this property should also have “coat of arms image (P94)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Q1252006, Q1780471, Q994276, Q1780472, Q1780473, Q389212, Q14497, Q14407, Q14426, Q14442, Q14429, Q14375, Q14509, Q14459, Q14465, Q14436, Q14381, Q688846, Q14505, Q14444, Q14507, Q682189, Q14448, Q4127, Q14418, Q14379, Q14472, Q6403
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P94, SPARQL
    Item “list of monuments (P1456): Items with this property should also have “list of monuments (P1456)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303). Known exceptions: Q1252006, Q1780471, Q994276, Q1780472, Q1780473, Q389212, Q14497, Q14407, Q14426, Q14442, Q14429, Q14375, Q14509, Q14459, Q14465, Q14436, Q14381, Q688846, Q14505, Q14444, Q14507, Q682189, Q14448, Q4127, Q14418, Q14379, Q14472, Q6403, Q141502, Q183441, Q1844, Q244207, Q286332, Q289534, Q3834, Q390482, Q429085, Q429962, Q4540, Q49651, Q49654, Q49655, Q49657, Q49659, Q49660, Q49661, Q49662, Q49663, Q512542, Q526602, Q541319, Q54450, Q597413, Q611382, Q61698, Q623277, Q643200, Q65502, Q65549, Q658739, Q659753, Q659822, Q659899, Q659907, Q659960, Q660047, Q660057, Q660093, Q660142, Q660153, Q660215, Q660974, Q660999, Q661369, Q662259, Q662273, Q662286, Q662405, Q662456, Q662541, Q664153, Q664221, Q666959, Q668239, Q668625, Q669152, Q669218, Q669229, Q669254, Q669280, Q669292, Q669310, Q669332, Q669360, Q669375, Q669400, Q669411, Q669424, Q669437, Q669445, Q669466, Q669488, Q674405, Q678690, Q678769, Q678787, Q678813, Q678901, Q678960, Q678991, Q68692, Q688652, Q689087, Q689487, Q689499, Q689575, Q689623, Q70477, Q70485, Q70683, Q7149, Q869534, Q64226, Q64229, Q64319, Q64328, Q64659, Q64682, Q64895, Q65073, Q65107, Q65361, Q65434, Q65708, Q65789, Q66036, Q66342, Q66489, Q67267, Q67286, Q67330, Q67389, Q67484, Q67544, Q67571, Q67662, Q67782, Q67962, Q68474, Q68612, Q68784, Q68829, Q69868, Q69940, Q70330, Q70345, Q70693, Q281137, Q378869, Q388657, Q435231, Q443653, Q473191, Q604580, Q622853, Q659815, Q661294, Q662247, Q662427, Q668163, Q669170, Q669306, Q669350, Q669386, Q672249, Q672274, Q674886, Q681652, Q689459, Q689538, Q689543, Q689549, Q689556, Q689567, Q689582, Q689592, Q689603, Q689629, Q689644, Q692767
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P1456, search, SPARQL
    Item “image (P18): Items with this property should also have “image (P18)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P18, SPARQL
    Item “time of earliest written record (P1249): Items with this property should also have “time of earliest written record (P1249)”. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#Item P1249, SPARQL
    Allowed entity types are Wikibase item (Q29934200): the property may only be used on a certain entity type (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#Entity types
    Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (Help)
    List of violations of this constraint: Database reports/Constraint violations/P771#Scope, hourly updated report, SPARQL
    Required qualifier “located in the administrative territorial entity (P131): this property should be used with the listed qualifier. (Help)
    Exceptions are possible as rare values may exist. Exceptions can be specified using exception to constraint (P2303).
    List of violations of this constraint: Database reports/Constraint violations/P771#mandatory qualifier, SPARQL
    Check all codes > 6806
    (Help)
    Violations query: SELECT ?item ?code { ?item wdt:P771 ?code. FILTER (xsd:integer(?code) > 6806) FILTER NOT EXISTS { ?item wdt:P31 wd:Q14811181 } FILTER NOT EXISTS { ?item wdt:P31 wd:Q23397 } FILTER NOT EXISTS { ?item wdt:P31 wd:Q203300 } FILTER NOT EXISTS { ?item wdt:P131 wd:Q12755 } FILTER NOT EXISTS { ?item wdt:P501 wd:Q39 } FILTER (?code != "7111") }
    List of this constraint violations: Database reports/Complex constraint violations/P771#Check all codes > 6806
    Picture
    (Help)
    Violations query: SELECT ?item ?pop { ?item p:P771 ?value. ?item wdt:P1082 ?pop. FILTER NOT EXISTS { ?item p:P18 [] } FILTER (?pop > 10000) }
    List of this constraint violations: Database reports/Complex constraint violations/P771#Picture

    please add formatterUrl[edit]

    The following URL provides further information to the Swiss Municipality ID: http://classifications.data.admin.ch/municipality/$id  – The preceding unsigned comment was added by L00mi (talk • contribs) at 08:33, 27 July 2017 (UTC).[reply]

    It doesn't seem to use the same format. I added it as 3rd party.
    --- Jura 17:47, 13 November 2017 (UTC)[reply]

    Administrative territorial entity[edit]

    The P131s are not necessarily the "cantons" and it is often the following case according to the "linked data" in RDF format. Example, Nyon (Q64027)located in the administrative territorial entity (P131)Nyon District (Q675501). Cordially. —Eihel (talk) 19:19, 9 October 2021 (UTC)[reply]

    • I think you were already blocked over this. Please just use ranks and/or add start/end dates if you want to add these temporary entities too. --- Jura 13:03, 29 October 2021 (UTC)[reply]