Community Wishlist Survey 2021/Bots and gadgets/ListeriaBot to add alias meta-column
ListeriaBot to add alias meta-column
- Problem : Wikidata Query and ListeriBot currently only knows "label", and "description" as standard item columns; "alias" is not recognised yet as a valid item header variable.
- Who would benefit: Everyone that automatically generates (Wikipedia) tables based on a Wikidata Query.
- Proposed solution: Add a pseudo-column "alias" that is automatically and transparently available for any individual query.
- More comments: Currently this can be simulated by explicitly adding a SPARQL variable
?alias
as:
OPTIONAL { ?item skos:altLabel ?alias. FILTER((LANG(?alias)) = "nl") }
This makes the Wikidata Query unnecessary complex, and leads to redundant user code in all Wikidata/LysteriaBot queries.
Actually, instead of enhancing Listeria, this alias could better be made available in Wikidata Query; just like itemLabel and itemDescription are a variable, itemAlias could be created as another default variable.
- Phabricator tickets:
- Proposer: Geert Van Pamel (WMBE) (talk) 11:10, 20 November 2020 (UTC)
Discussion
- You mean "ListeriaBot", right? --Matěj Suchánek (talk) 17:10, 20 November 2020 (UTC)
- Yes, I do. Geert Van Pamel (WMBE) (talk) 18:00, 20 November 2020 (UTC)
- renamed —TheDJ (talk • contribs) 12:30, 21 November 2020 (UTC)
- Yes, I do. Geert Van Pamel (WMBE) (talk) 18:00, 20 November 2020 (UTC)
- @Geertivp: Have you tried to file a request with the author of the tool, Magnus Manske https://github.com/magnusmanske/listeria_rs/issues ? —TheDJ (talk • contribs) 12:28, 21 November 2020 (UTC)
- Good idea. I did now. See https://github.com/magnusmanske/listeria_rs/issues/24 Geert Van Pamel (WMBE) (talk) 12:59, 21 November 2020 (UTC)
Done. --Magnus Manske (talk) 15:46, 9 December 2020 (UTC)
Voting
- Support Simpler coding Geert Van Pamel (WMBE) (talk) 19:01, 8 December 2020 (UTC)
- Support Silver hr (talk) 20:42, 8 December 2020 (UTC)
- Support Paul Hermans (talk) 08:22, 9 December 2020 (UTC)
- Support Libcub (talk) 18:14, 10 December 2020 (UTC)
- Support Help in creating tables by Wikidata Query. WikiFer msg 23:37, 10 December 2020 (UTC)
- Support big support হানিফ আলী (talk) 10:24, 11 December 2020 (UTC)
- Support BoldLuis (talk) 10:37, 11 December 2020 (UTC)
- Support Strainu (talk) 09:42, 12 December 2020 (UTC)
- Support Search gets optimized too. Conny (talk) 15:40, 12 December 2020 (UTC)
- Support Nashona (talk) 03:03, 18 December 2020 (UTC)
- Support VKG1985 (talk) 17:17, 18 December 2020 (UTC)
- Support Juan90264 (talk) 07:51, 21 December 2020 (UTC)