Wikidata:Property proposal/placeholder text element ID

From Wikidata
Jump to navigation Jump to search

placeholder text element ID[edit]

Originally proposed at Wikidata:Property proposal/Commons

Descriptionunique identifier (id attribute) of the <text> or <tspan> element in the SVG file whose contents should be replaced by text described by the value of the claim
Representsid (Q98716652)
Data typeString
Domaintemplate SVG images at Wikimedia Commons, such as the files in c:Category:Template images.
Allowed values^[:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\x{2FF}\x{370}-\x{37D}\x{37F}-\x{1FFF}\x{200C}-\x{200D}\x{2070}-\x{218F}\x{2C00}-\x{2FEF}\x{3001}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFFD}\x{10000}-\x{EFFFF}][:A-Z_a-z\xC0-\xD6\xD8-\xF6\xF8-\x{2FF}\x{370}-\x{37D}\x{37F}-\x{1FFF}\x{200C}-\x{200D}\x{2070}-\x{218F}\x{2C00}-\x{2FEF}\x{3001}-\x{D7FF}\x{F900}-\x{FDCF}\x{FDF0}-\x{FFFD}\x{10000}-\x{EFFFF}.\-0-9\xB7\x{0300}-\x{036F}\x{203F}-\x{2040}]*$ [1]
Example 1 (M93171377)inscription mentions (P6568)road number (Q3241753)placeholder text element IDtspan884
Example 2 (M9527156)inscription mentions (P6568)road number (Q3241753)placeholder text element IDref
Example 3 (M9044590)inscription mentions (P6568)regional municipality of Ontario (Q14762890)placeholder text element IDtspan2868
Example 4 (M30047485)inscription mentions (P6568)state of Mexico (Q15149663)placeholder text element IDtspan3893
Format and edit filter validationOnly as a qualifier
Planned useQualifier on a inscription mentions (P6568) statement on every image referred to by a traffic sign template image (P8505) claim
Expected completenessalways incomplete (Q21873886)
See alsotraffic sign template image (P8505), inscription mentions (P6568), position within image

Motivation[edit]

As a follow-up to the successful proposal for traffic sign template image (P8505), this property would enable a data consumer to know what information to insert into an image specified by traffic sign template image (P8505) and where in the image to insert that information. This property would be used as a qualifier on inscription mentions (P6568) claims. Every template image is in SVG format, and virtually every template image assigns an id to the text (Q98716493) or tspan (Q98716502) that immediately surrounds the placeholder text in the image. Wiki pages and SPARQL queries are unable to manipulate the contents of an SVG file, but a tool could do so as a postprocessing step after running a SPARQL query. Listings such as OpenStreetMap:Custom Highway Shields#United States of America show that there is demand for an automated mechanism to discover replaceable text in image templates.

This property may also be useful for annotating a translatable SVG image with the meaning of each translatable piece of text in the image. However, that use case might require a property other than inscription mentions (P6568).

 – Minh Nguyễn 💬 02:06, 29 August 2020 (UTC)[reply]

Discussion[edit]

@Mxn, Arlo Barnes, Tinker Bell, JesseW: ✓ Done Created property placeholder text element ID (P9410). Probably some work on it is to be done. Lymantria (talk) 16:11, 4 April 2021 (UTC)[reply]

I added the examples and stability. Arlo Barnes (talk) 00:44, 5 April 2021 (UTC)[reply]