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.

Discussion

Done. --Magnus Manske (talk) 15:46, 9 December 2020 (UTC)[reply]

Voting