Wikidata:Property proposal/road name formatter

From Wikidata
Jump to navigation Jump to search

road name formatter

[edit]

Originally proposed at Wikidata:Property proposal/Transportation

Descriptiontemplate from which “$1” can be automatically replaced by a bare road number to obtain the full name of a numbered road
Representsstreet name (Q1640962)
Data typeMonolingual text
Template parameter
Domainhighway system (Q25631158)
Allowed values.*\$1.*
Example 1Interstate Highway System (Q94247)Interstate $1 (English)
Example 2Interstate Highway System (Q94247)Interestatal $1 (Spanish)
Example 3United States Numbered Highway System (Q408192)U.S. Route $1 (English)
Example 4United States Numbered Highway System (Q408192)U.S. Highway $1 (English)
valid in place (P3005)Wisconsin (Q1537)
valid in place (P3005)Minnesota (Q1527)
valid in place (P3005)Iowa (Q1546)
Example 5Ohio state routes (Q96348143)State Route $1 (English)
Example 6Appalachian Development Highway System (Q800055)Corridor $1 (English)
Example 7autoroutes of Quebec (Q2873026)Autoroute $1 (French)
Example 8Federal Roads in Brazil (Q25712298)BR-$1 (multilingual)
Sourceen:Special:PrefixIndex/Module:Road data/strings
Planned useFederated SPARQL queries with OpenStreetMap data
See alsoroad number formatter (P8498), road number (P1824), formatter URL (P1630)

Motivation

[edit]

Many of Wikipedia's road network articles have infoboxes that display the format of individual road names that belong to the network, in cases where the roads are referred to by their numbers. These road names reflect the names used officially or colloquially, without any of the prefixes or suffixes that Wikipedia requires in article titles for disambiguation. These name formats are also found in the en:Module:Road data/strings system of modules for reusability. Perhaps once this property comes into use, the modules could even draw some of their data from Wikidata.

In OpenStreetMap, route relations are tagged with the network and ref keys. A search engine or turn-by-turn navigation engine that needs to refer to the route by a name containing the number, rather than an alphanumeric code, would need to maintain its own correspondence table. Compiling this table from the various road data modules on Wikipedia is time-consuming; it would be much more convenient to query Wikidata for them.

Road networks with idiosyncratic road names would not claim a road name formatter, or any claim(s) would be qualified so that data consumers would know not to apply it blindly.

 – Minh Nguyễn 💬 01:35, 11 July 2020 (UTC)[reply]

Discussion

[edit]
@Mxn, Arlo Barnes, Tinker Bell, Jura1: ✓ Done road name formatter (P8898) Pamputt (talk) 21:03, 30 November 2020 (UTC)[reply]