Wikidata:Property proposal/KML file

Wikimedia KML file edit

Originally proposed at Wikidata:Property proposal/Sister projects

   Done: KML file (P3096) (Talk and documentation)
DescriptionRelated wikimedia page containing text of a relevant KML file
RepresentsKeyhole Markup Language (Q79587)
Data typeItem
DomainLinear geographic features, for example anything that is instance of (P31): road (Q34442), or transport service itinerary (Q1067164), or canal (Q12284), etc.
Allowed valuesinstance of (P31): Wikimedia KML file (Q26267864)
ExampleGreat Eastern Highway (Q1544264)Template:Attached KML/Great Eastern Highway (Q26267859)
SourceTransclusions 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)[reply]

Discussion