Property talk:P939

From Wikidata
Jump to navigation Jump to search

Documentation

KSH code
identifier for every municipality (town and commune) in Hungary issued by the Hungarian Central Statistical Office
DescriptionCode of the Hungarian Central Statistical Office for every locality (town and commune) in Hungary
Applicable "stated in" valueDetailed Gazetteer of Hungary (Q88686710)
Data typeExternal identifier
Domainadministrative territorial entity of Hungary (Q2520520)
Allowed values\d{5} (numeric string of 5 digits)
ExampleMohács (Q320798)23959
Budapest District I (Q1094308)09566
Sourcehttps://www.ksh.hu/apps/shop.kiadvany?p_kiadvany_id=1039140
https://www.ksh.hu/apps/hntr.egyeb?p_lang=EN&p_sablon=TELEPULESEK_ABC
Formatter URLhttps://www.ksh.hu/apps/hntr.telepules?p_lang=EN&p_id=$1
https://www.ksh.hu/apps/hntr.telepules?p_lang=HU&p_id=$1
Tracking: sameno label (Q32085055)
Tracking: differencesno label (Q32085048)
Tracking: usageCategory:Pages using Wikidata property P939 (Q55282978)
Tracking: local yes, WD nono label (Q32085051)
Related to country Hungary (Q28) (See 57 others)
See alsoKSH code (historical) (P10559)
Lists
Proposal discussionProposal discussion
Current uses
Total9,531
Main statement3,180 out of 3,178 (100% complete)33.4% of uses
Qualifier2<0.1% of uses
Reference6,34966.6% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Single value: this property generally contains a single value. (Help)
List of violations of this constraint: Database reports/Constraint violations/P939#Single value, 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/P939#Unique value, hourly updated report, SPARQL (every item), SPARQL (by value)
Format “\d{5}: value must be formatted using this pattern (PCRE syntax). (Help)
List of violations of this constraint: Database reports/Constraint violations/P939#Format, hourly updated report, SPARQL
Item “country (P17): Hungary (Q28): Items with this property should also have “country (P17): Hungary (Q28)”. (Help)
List of violations of this constraint: Database reports/Constraint violations/P939#Item P17, hourly updated report, search, 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/P939#Item P625, hourly updated report, SPARQL
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/P939#Item P11620, search, SPARQL
Item “GeoNames ID (P1566): Items with this property should also have “GeoNames ID (P1566)”. (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/P939#Item P1566, search, SPARQL
Item “official website (P856): Items with this property should also have “official website (P856)”. (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/P939#Item P856, 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/P939#Entity types
Scope is as main value (Q54828448), as reference (Q54828450): the property must be used by specified way only (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/P939#Scope, SPARQL
Unexpected websites
Hungarian municipalities are expected to have websites named as <municipality name usually with diacritics removed>.hu or possibly <municipality name with diacritics removed>.asp.lgov.hu. Websites that don’t follow this scheme are often official websites regardless, but sometimes they are rather touristical websites, hobby sites etc. Or even typos that go nowhere. (Help)
Violations query: SELECT DISTINCT ?item ?website WHERE { ?item wdt:P31/wdt:P279* wd:Q14502790; wdt:P856 ?website. ?item rdfs:label ?itemLabel. FILTER(LANG(?itemLabel) = "hu"). BIND(LCASE(?itemLabel) AS ?lcaseLabel). BIND(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(REPLACE(?lcaseLabel, "á", "a"), "é", "e"), "í", "i"), "ó", "o"), "ö", "o"), "ő", "o"), "ú", "u"), "ü", "u"), "ű", "u") AS ?expected). FILTER(!REGEX(STR(?website), CONCAT("^https?:\\/\\/(www\\.)?(", ?expected, "\u007C", ?lcaseLabel, ")\\.hu\\/?$"))). FILTER(!REGEX(STR(?website), CONCAT("^https:\\/\\/", ?expected, "\\.asp\\.lgov\\.hu\\/?$"))). } ORDER BY ?itemLabel
List of this constraint violations: Database reports/Complex constraint violations/P939#Unexpected websites