Wikidata:Property proposal/Mapy.cz ID
Mapy.cz ID
[edit]Originally proposed at Wikidata:Property proposal/Place
Description | identifier for a point of interest in Mapy.cz |
---|---|
Data type | External identifier |
Domain | item |
Allowed values | [area|base|coun|dist|muni|quar|regi|stre|ward]&id=[1-9]\d{0,6} |
Example 1 | Olomouc (Q81137) → muni&id=1 |
Example 2 | South Bohemian Region (Q188373) → regi&id=1 |
Example 3 | Church of the Holy Spirit (Q17282) → base&id=1933331 |
Source | Mapy.CZ (Q12035233) provided a database dump. |
External links | Use 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 use | import 34350 IDs provided by Mapy.CZ (Q12035233) |
Expected completeness | always incomplete (Q21873886) |
Formatter URL | https://mapy.cz/zakladni?source=$1 |
Single-value constraint | yes |
Distinct-values constraint | yes |
Wikidata project | WikiProject Czech Republic (Q4587594) |
Proposed by | Vojtěch Dostál (talk) 21:34, 14 December 2020 (UTC) |
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)
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)
Discussion
[edit]Notified participants of WikiProject Czech Republic Sending ping again, because it seems pings are not sent from page creation.
Notified participants of WikiProject Czech Republic Vojtěch Dostál (talk) 12:12, 15 December 2020 (UTC)
- 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)
- @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)
- @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)
- The proposal was amended to comply with this suggestion.Vojtěch Dostál (talk) 08:54, 17 December 2020 (UTC)
- @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)
- @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)
- Support Thanks, looks good to me. ArthurPSmith (talk) 13:17, 17 December 2020 (UTC)
- Support "pseudo-identifier" is reasonable.--Jklamo (talk) 11:15, 22 December 2020 (UTC)
- @Vojtěch Dostál, ArthurPSmith, Jklamo: Done Mapy.cz ID (P8988) Pamputt (talk) 18:18, 28 December 2020 (UTC)
@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)
- @Vojtěch Dostál: Sorry about that, I've put in a link via the redirector that will fix the encoding; it may take some time to take effect though. Wait a few hours and let's try again. ArthurPSmith (talk) 19:58, 30 December 2020 (UTC)
- @ArthurPSmith: Thank you Arthur! It's working in some items already.Vojtěch Dostál (talk) 16:57, 31 December 2020 (UTC)