Property talk:P939
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
identifier for every municipality (town and commune) in Hungary issued by the Hungarian Central Statistical Office
[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, SPARQLDistinct 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) List of violations of this constraint: Database reports/Constraint violations/P939#Format, hourly updated report, SPARQL
Type “administrative territorial entity of Hungary (Q2520520)”: item must contain property “instance of (P31)” with classes “administrative territorial entity of Hungary (Q2520520)” or their subclasses (defined using subclass of (P279)). (Help)
List of violations of this constraint: Database reports/Constraint violations/P939#Type Q2520520, hourly updated report, SPARQLItem “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, SPARQLItem “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, SPARQLItem “Hungarian National Namespace place ID (new) (P11620)”: Items with this property should also have “Hungarian National Namespace place ID (new) (P11620)”. (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 P11620, search, 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 P1566, search, SPARQL
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:
List of this constraint violations: Database reports/Complex constraint violations/P939#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
This property is being used by:
Please notify projects that use this property before big changes (renaming, deletion, merge with another property, etc.) |
|
Categories:
- Hungary-related properties
- All Properties
- Properties with external-id-datatype
- Properties used on 10000+ items
- Properties with single value constraints
- Properties with unique value constraints
- Properties with format constraints
- Properties with constraints on type
- Properties with constraints on items using them
- Properties with entity type constraints
- Properties with scope constraints
- Properties with complex constraints