Property talk:P8988

From Wikidata
Jump to navigation Jump to search

Documentation

Mapy.cz ID
identifier for a point of interest in Mapy.cz
Applicable "stated in" valueMapy.CZ (Q12035233)
Data typeExternal identifier
Domaingeographical feature (Q618123), mine (Q820477), brewery (Q131734), cultural institution (Q3152824), battle (Q178561), human-geographic territorial entity (Q15642541), sculpture (Q860861), occurrence (Q1190554), remarkable tree (Q811534) or horse stud farm (Q108696)
Allowed values(addr|area|base|cada|coun|dist|muni|quar|regi|stre|ward|osm|pubt|firm|traf)&id=[1-9][0-9]{0,9}
ExampleOlomouc (Q81137)muni&id=1
South Bohemian Region (Q188373)regi&id=1
Church of the Holy Spirit (Q17282)base&id=1933331
Chrudim (Q17750104)pubt&id=15211585
Vrané nad Vltavou municipal office (Q90566244)firm&id=354837
Národní (Q2993762)stre&id=121110
Mlýnské nábřeží 41 (Q37019250)addr&id=8916407
Formatter URLhttps://wikidata-externalid-url.toolforge.org/?p=8988&url_prefix=https://mapy.cz/zakladni?source=&id=$1
https://mapy.cz/zakladni?source=$1
Related to country Czech Republic (Q213) (See 159 others)
See alsoground level 360 degree view URL (P5282), Mapcarta ID (P12966)
Lists
Proposal discussionProposal discussion
Current uses
Total210,911
Main statement210,22399.7% of uses
Qualifier7<0.1% of uses
Reference6810.3% of uses
Search for values
[create Create a translatable help page (preferably in English) for this property to be included here]
Format “(addr|area|base|cada|coun|dist|muni|quar|regi|stre|ward|osm|pubt|firm|traf)&id=[1-9][0-9]{0,9}: value must be formatted using this pattern (PCRE syntax). (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/P8988#Format, SPARQL
Distinct values: this property likely contains a value that is different from all other items. (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/P8988#Unique value, SPARQL (every item), SPARQL (by value)
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/P8988#Scope, 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/P8988#Entity types
Item “instance of (P31): Items with this property should also have “instance of (P31)”. (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/P8988#Item P31, 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/P8988#Item P131, search, SPARQL
Item “country (P17): Items with this property should also have “country (P17)”. (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/P8988#Item P17, search, SPARQL
Item “coordinate location (P625): Items with this property should also have “coordinate location (P625)”. (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/P8988#Item P625, SPARQL

Style of external ID

[edit]

I am personally against of this style of ids ("muni&id=1", "regi&id=1", "base&id=1933331"). There is mix of things: part of URI vs numeric identifier. I am proposing to split this identifier to multiple identifiers with proper numeric id. Skim (talk) 15:56, 30 December 2020 (UTC)[reply]

The discussion (for which you were notified) decided otherwise... Vojtěch Dostál (talk) 07:28, 2 February 2021 (UTC)[reply]

@ArthurPSmith, Vojtěch Dostál, Skim, Jklamo, Mike Peel: This solution would be elegant if it worked. Unfortunately, there are some technical problems with this format. E.g. for Road III/2565 (Q112046119), the correct link should be:

https://mapy.cz/zakladni?source=area&id=932114

However, the Wikidata page generates the link:

https://wikidata-externalid-url.toolforge.org/?p=8988&url_prefix=https://mapy.cz/zakladni?source=&id=area%26id%3D932114

where is "source=&id=area" instead of "source=area". Nevertheless, the link works correctly and the resulting link is correct:

https://mapy.cz/zakladni?source=area&id=932114

Commons:Template:Wikidata Infobox uses this URL format pattern, but it generates

https://wikidata-externalid-url.toolforge.org/?p=8988&url_prefix=https://mapy.cz/zakladni?source=area&id=932114

The problem with double "&id=" doesn't occur here, but this string at its correct place is not decoded and it returns:

https://mapy.cz/zakladni?source=area932114

on the resulted page and the link doesn't work. The string "&id=" is somehow lost.

Before I tried to correct the long URL format pattern, the resulting link was:

https://mapy.cz/zakladni?source=932114

and didn't work as well. The whole string "area&id=" disappeared.

Is somebody able to fix this problem? --ŠJů (talk) 01:21, 2 June 2022 (UTC)[reply]


@ArthurPSmith, Vojtěch Dostál, Skim, Jklamo, Mike Peel: I don't know if anyone was trying to fix something, but shortly after my comment, the Wikidata link also stopped working. --ŠJů (talk) 16:31, 6 June 2022 (UTC)[reply]

@ŠJů Could it be your edit? https://www.wikidata.org/w/index.php?title=Property%3AP8988&type=revision&diff=1652409421&oldid=1651667713 Vojtěch Dostál (talk) 16:37, 6 June 2022 (UTC)[reply]
@Vojtěch Dostál: This my edit caused the change in behavior I described above (the wrong link from the infobox https://mapy.cz/zakladni?source=932114 changed to wrong link https://mapy.cz/zakladni?source=area932114. The link from Wikidata then worked for about next day, but it is possible that my change was reflected in it and disrupted the function later. --ŠJů (talk) 16:50, 6 June 2022 (UTC)[reply]
I reverted that my edit, but https://wikidata-externalid-url.toolforge.org responds to changes in the formatting pattern with a delay. --ŠJů (talk) 16:56, 6 June 2022 (UTC)[reply]

As far as I can tell, it was working right in the first place, at least here? On the Wikidata Infobox site, I think it's urldecoding where it shouldn't do, so it's passing multiple "&id=" parameters where it shouldn't. But the Infobox is undergoing a big rewrite at the moment, so solving this there needs to wait until that process is further along. Thanks. Mike Peel (talk) 20:08, 6 June 2022 (UTC)[reply]

@ArthurPSmith, Vojtěch Dostál, Skim, Jklamo, Mike Peel: The problem with erroneous encoding of two-parameter URL adresses is further discussed at Commons:Template talk:Wikidata Infobox#Mapy.cz ID etc. (April – July 2022). --ŠJů (talk) 15:33, 29 July 2022 (UTC)[reply]

@ŠJů Actually rather here: :commons:Template_talk:Wikidata_Infobox#Mapy.cz_ID_etc. Vojtěch Dostál (talk) 18:16, 29 July 2022 (UTC)[reply]

Katastr

[edit]

Přidal jsem identifikátor cada pro katastrální území. Nově je klikatelné při zapnutí vrstvy katastrálních dat. Otázka, jestli nějak ta data nespárovat s kú. na WD, nicméně pak bude třeba nějak ošetřit duplicity s identifikátorem area. — Draceane talkcontrib. 11:20, 25 April 2024 (UTC)[reply]

Příklad: https://mapy.cz/zakladni?source=cada&id=7212. — Draceane talkcontrib. 11:21, 25 April 2024 (UTC)[reply]

subject type constraint

[edit]

Subject type constraint makes no sense with point of interest. Die Eigenschaftseinschränkung „Typ“ macht meiner Meinung nach keinen Sinn bei den Poi's von Mapy.cz. Lutzto (talk) 13:56, 23 June 2024 (UTC)[reply]