Wikidata:Property proposal/Mapy.cz ID

From Wikidata
Jump to navigation Jump to search

Mapy.cz ID[edit]

Originally proposed at Wikidata:Property proposal/Place

   Done: Mapy.cz ID (P8988) (Talk and documentation)
Descriptionidentifier for a point of interest in Mapy.cz
Data typeExternal identifier
Domainitem
Allowed values[area|base|coun|dist|muni|quar|regi|stre|ward]&id=[1-9]\d{0,6}
Example 1Olomouc (Q81137)muni&id=1
Example 2South Bohemian Region (Q188373)regi&id=1
Example 3Church of the Holy Spirit (Q17282)base&id=1933331
SourceMapy.CZ (Q12035233) provided a database dump.
External linksUse in sister projects: [ar][de][en][es][fr][he][it][ja][ko][nl][pl][pt][ru][sv][vi][zh][commons][species][wd][en.wikt][fr.wikt].
Planned useimport 34350 IDs provided by Mapy.CZ (Q12035233)
Expected completenessalways incomplete (Q21873886)
Formatter URLhttps://mapy.cz/zakladni?source=$1
Single-value constraintyes
Distinct-values constraintyes
Wikidata projectWikiProject Czech Republic (Q4587594)
Proposed byVojtěch Dostál (talk) 21:34, 14 December 2020 (UTC)[reply]

Motivation[edit]

This is a tricky one. Mapy.CZ (Q12035233), one of the largest Internet map providers in the world and the most used map provider in the Czech Republic, have given us a database dump of links between Wikidata and their "points of interest". This is complicated by the fact that each POI needs to be specified with a "source" ID, so two properties are needed. Examples are given above, eg. https://mapy.cz/zakladni?source=muni&id=1, where ID is "1" and source is "muni". Still, I believe we should try it and create two properties, one to be used in statements and the other as its mandatory qualifier. I understand this means that automatic formatting of URLs in Wikidata won't be possible for some time. Let's discuss alternatives. Vojtěch Dostál (talk) 21:34, 14 December 2020 (UTC)[reply]

Update: Per suggestion by @ArthurPSmith:, the proposal was amended. The two identifiers are now merged into one pseudo-identifier which is actually unique across the database and enables simple URL formatting.Vojtěch Dostál (talk) 08:54, 17 December 2020 (UTC)[reply]

Discussion[edit]

Tobias1984 Vojtěch Dostál YjM Jklamo Walter Klosse Sintakso Matěj Suchánek JAn Dudík Skim Frettie Jura1913 Mormegil Jedudedek marv1N Sapfan Daniel Baránek Draceane Michal Josef Špaček (WMCZ) The photonaut Hartasek Zelenymuzik Gumruch Shadster Dænča M.Rejha Janek Jan Kameníček Eva Vele Linda.jansova Lukša Packa Fukejs Hugo Xmorave2 J.Broukal Lenkakrizova Steam Flow Pavel Bednařík Sanqui

Notified participants of WikiProject Czech Republic Sending ping again, because it seems pings are not sent from page creation.

Tobias1984 Vojtěch Dostál YjM Jklamo Walter Klosse Sintakso Matěj Suchánek JAn Dudík Skim Frettie Jura1913 Mormegil Jedudedek marv1N Sapfan Daniel Baránek Draceane Michal Josef Špaček (WMCZ) The photonaut Hartasek Zelenymuzik Gumruch Shadster Dænča M.Rejha Janek Jan Kameníček Eva Vele Linda.jansova Lukša Packa Fukejs Hugo Xmorave2 J.Broukal Lenkakrizova Steam Flow Pavel Bednařík Sanqui

Notified participants of WikiProject Czech Republic Vojtěch Dostál (talk) 12:12, 15 December 2020 (UTC)[reply]

 Comment An external identifier should uniquely identify something. If it requires an additional qualifier than it's not an identifier. The combination of qualifer and proposed id can be used as a single string identifier, and we can create a wrapper to fix these somehow if a simple formatter URL doesn't work. There are many other cases where two components are combined into a single identifier for Wikidata purposes. ArthurPSmith (talk) 18:54, 15 December 2020 (UTC)[reply]
@ArthurPSmith: Do I understand correctly that you suggest to use long strings such as "base&id=1933331" for identifiers? Or how would your identifier look like? thanks, Vojtěch Dostál (talk) 21:00, 15 December 2020 (UTC)[reply]
@Vojtěch Dostál: That would be the simplest approach. However, we can also do something like was done with ITF tournament ID (P6841), separating the two pieces with a ':' for example, if there was a reason that would be preferable. ArthurPSmith (talk) 17:47, 16 December 2020 (UTC)[reply]
The proposal was amended to comply with this suggestion.Vojtěch Dostál (talk) 08:54, 17 December 2020 (UTC)[reply]
 Support Thanks, looks good to me. ArthurPSmith (talk) 13:17, 17 December 2020 (UTC)[reply]
 Support "pseudo-identifier" is reasonable.--Jklamo (talk) 11:15, 22 December 2020 (UTC)[reply]
@Vojtěch Dostál, ArthurPSmith, Jklamo: ✓ Done Mapy.cz ID (P8988) Pamputt (talk) 18:18, 28 December 2020 (UTC)[reply]

@ArthurPSmith: Hi! Currently the links in Wikidata items do not work because the identifier is being encoded when formatted into URL. Do you know if this can be prevented? Vojtěch Dostál (talk) 15:43, 29 December 2020 (UTC)[reply]