Wikidata:Property proposal/KML file
Wikimedia KML file edit
Originally proposed at Wikidata:Property proposal/Sister projects
Description | Related wikimedia page containing text of a relevant KML file |
---|---|
Represents | Keyhole Markup Language (Q79587) |
Data type | Item |
Domain | Linear geographic features, for example anything that is instance of (P31): road (Q34442), or transport service itinerary (Q1067164), or canal (Q12284), etc. |
Allowed values | instance of (P31): Wikimedia KML file (Q26267864) |
Example | Great Eastern Highway (Q1544264) → Template:Attached KML/Great Eastern Highway (Q26267859) |
Source | Transclusions of Template:Attached KML (Q6690822) (around 9600 transclusions on English Wikipedia) |
- Motivation
Phab:T28059 (Add support for KML/KMZ filetype) doesn't look like it will be resolved any time soon. In the mean time, we should be associating the existing KML files (stored as wikitext in template subpages on individual projects) with their corresponding items. As well as potentially making it easier to move everything to Commons if/when KML support is added, this will allow Template:Attached KML (Q6690822) templates to be rewritten in Lua, pulling data from wikidata – this will allow any wiki (particularly smaller wikis) to make use of KML files that already exist on other projects.
Taking the above example: Template:Attached KML (Q6690822) of some wiki, placed on that wiki's Great Eastern Highway (Q1544264) page, could (using a lua module) check the linked wikidata item, find that it has "Property:Wikimedia KML file" → Template:Attached KML/Great Eastern Highway (Q26267859), then checking that item find that there is an en
sitelink for Template:Attached KML/Great Eastern Highway
, and thus produce the same links as on the enwiki page (see box at w:en:Great Eastern Highway#External_links) - with localised versions of the links' text.
I'm not a bot coder, but creating and linking items for existing KML files seems suitable for a bot task. - Evad37 [talk] 08:29, 15 August 2016 (UTC)
- Discussion
- Support—this would be a good first step to an eventual KML migration and consolidation. Imzadi 1979 →
- Support per Imzadi. Thryduulf (talk) 08:47, 15 August 2016 (UTC)
- Support This doesn't necessarily require a bot - feel free to drop me an email for details. (It does require some Google Docs work, which has to be done offwiki). --Rschen7754 18:19, 15 August 2016 (UTC)
- Support Hmm, this might be an interesting solution pattern for other currently unsupported datatypes. I wonder if we should query the developers about any concerns they may have? Anyway KML is important, so I support this. ArthurPSmith (talk) 18:51, 15 August 2016 (UTC)
- @ArthurPSmith: Do you mean Wikidata developers, or those who've commented on (or are watching) the phabricator task? (Or others?) - Evad37 [talk] 08:04, 17 August 2016 (UTC)
- Yes the Wikidata developers. If complex datatypes can be represented somehow by wikidata items that link to a Commons file, that allows for all sorts of things (time series data for instance) that might be difficult to handle otherwise. ArthurPSmith (talk) 14:42, 17 August 2016 (UTC)
- Thanks for the clarification, I've left a note at Wikidata:Contact_the_development_team#KML_file_property_proposal. - Evad37 [talk] 15:06, 17 August 2016 (UTC)
- Yes the Wikidata developers. If complex datatypes can be represented somehow by wikidata items that link to a Commons file, that allows for all sorts of things (time series data for instance) that might be difficult to handle otherwise. ArthurPSmith (talk) 14:42, 17 August 2016 (UTC)
- @ArthurPSmith: Do you mean Wikidata developers, or those who've commented on (or are watching) the phabricator task? (Or others?) - Evad37 [talk] 08:04, 17 August 2016 (UTC)
- Support Sure--Ymblanter (talk) 06:50, 16 August 2016 (UTC)
- Support Awesome. This will solve a lot of problems. -- The Anome (talk) 11:55, 17 August 2016 (UTC)
- @The Anome, Imzadi1979, Evad37, Ymblanter, ArthurPSmith: done. Please make good use of it.
--- Jura 12:34, 23 August 2016 (UTC)- @Jura1, Imzadi1979, Evad37, Ymblanter, ArthurPSmith: I'll see whether I can gather and collate the data needed to add these statements, at least from enwiki, although I don't think I have the time to use a bot to add it myself. Over time, this can be expanded to other language wikis. If I data-mine the source data, would anyone be willing to add the necessary statements? -- The Anome (talk) 15:34, 24 August 2016 (UTC)
- @The Anome: for enwiki, quite a lot has already been done. Very efficient! There are some at sv:Special:PrefixIndex/Wikipedia:KML/ and cs:Kategorie:Části šablony Obsahuje KML that don't have an item yet.
--- Jura 15:51, 24 August 2016 (UTC)- I probably should have mentioned that I've already done almost all of enwiki using categories, petscan, and quickstatements - Evad37 [talk] 23:40, 24 August 2016 (UTC)
- @The Anome: see Property talk:P3096#Progress by wiki for what's been done and what's left to do - Evad37 [talk] 01:11, 27 August 2016 (UTC)
- @Evad37: Awesome. It looks like you and the rest of the community are doing this just as well, or better, than I could, and I don't think I can really contribute any tools that work better, so I think I'll let this one go for now, and work on other things. -- The Anome (talk) 08:59, 27 August 2016 (UTC)
- @The Anome: Thanks for offering to help anyway. If you ever have time for some (potentially) complicated bot programming, there's Meta:Talk:KML_files#Idea:_Multi-wiki_KML_bot - Evad37 [talk] 09:12, 27 August 2016 (UTC)
- @Evad37: Awesome. It looks like you and the rest of the community are doing this just as well, or better, than I could, and I don't think I can really contribute any tools that work better, so I think I'll let this one go for now, and work on other things. -- The Anome (talk) 08:59, 27 August 2016 (UTC)
- @The Anome: see Property talk:P3096#Progress by wiki for what's been done and what's left to do - Evad37 [talk] 01:11, 27 August 2016 (UTC)
- I probably should have mentioned that I've already done almost all of enwiki using categories, petscan, and quickstatements - Evad37 [talk] 23:40, 24 August 2016 (UTC)
- @The Anome: for enwiki, quite a lot has already been done. Very efficient! There are some at sv:Special:PrefixIndex/Wikipedia:KML/ and cs:Kategorie:Části šablony Obsahuje KML that don't have an item yet.
- @Jura1, Imzadi1979, Evad37, Ymblanter, ArthurPSmith: I'll see whether I can gather and collate the data needed to add these statements, at least from enwiki, although I don't think I have the time to use a bot to add it myself. Over time, this can be expanded to other language wikis. If I data-mine the source data, would anyone be willing to add the necessary statements? -- The Anome (talk) 15:34, 24 August 2016 (UTC)