Jump to content

Wikifunctions:Type proposals/Wikidata lexeme senses

From Wikifunctions

Done- Z6006

Summary

For whatever reason the Abstract Wikipedia team didn't include a type for lexeme senses in Wikifunctions:Type proposals/Wikidata based types, so here's a proposal for that type.

Uses

The proposed Lexeme sense type is needed to finish representing linguistic knowledge that is available on Wikidata.

Lexeme sense

A Lexeme sense represents a sense as described in the Wikidata lexicographic data model. It represents a particular meaning of a lexeme in a given language, such as meaning "place where one lives" of the English word "house", as opposed to the meanings "legislative chamber" or "audience in a theatrical performance" or "dynasty" of that same English word.

Keys

A Lexeme sense consists of the following Keys with the given value Types.

Keys of the Lexeme sense type
KeyLabelType
K1identityZfff/Lexeme sense
K2lexemeZlll/Lexeme
K3glossesZ12/Multilingual Text
K4statementsTyped list( Zsss/Wikidata statement )Stretch goal

Example values

Value for the sense "answer to a question" on the Turkish lexeme "cevap":

{
  "type": "Lexeme sense",
  "identity": "L1124154S1",
  "lexeme": "L1124154",
  "glosses": {
    "type": "Multilingual text",
    "texts": ["Monolingual text",
      {
        "type": "Monolingual text",
        "language": "Bengali",
        "text": "(প্রশ্নের) উত্তর"
      },
      {
        "type": "Monolingual text",
        "language": "English",
        "text": "answer"
      },
      {
        "type": "Monolingual text",
        "language": "Turkish",
        "text": "sorulan bir soruya verilen karşılık"
      }
    ]
  },
  "statements": ["Wikidata statement"]
}
{
  "Z1K1": "Zfff",
  "ZfffK1": "L1124154S1",
  "ZfffK2": "L1124154",
  "ZfffK3": {
    "Z1K1": "Z12",
    "Z12K1": ["Z11",
      {
        "Z1K1": "Z11",
        "Z11K1": "Z1011",
        "Z11K2": "(প্রশ্নের) উত্তর"
      },
      {
        "Z1K1": "Z11",
        "Z11K1": "Z1002",
        "Z11K2": "answer"
      },
      {
        "Z1K1": "Z11",
        "Z11K1": "Z1237",
        "Z11K2": "sorulan bir soruya verilen karşılık"
      }
    ]
  },
  "ZfffK4": ["Zsss"]
}

Validator

The validator ensures that:

Identity

Two Lexeme senses are the same if their identity is the same.

Converting to code

Python

A Python dictionary that follows the structure of the ZObject.

JavaScript

A JavaScript object that follows the structure of the ZObject.

Renderer

Initially, we don't have a bespoke renderer. We plan to add one later when we understand better how the Type works.

Parsers

Initially, we don't have a bespoke parser. We plan to add one later when we understand better how the Type works.

Comments

Discussion

(proposed by Mahir256 (talk) 19:02, 17 July 2024 (UTC))[reply]

Let's just put this on Wikifunctions:Type proposals/Wikidata based types so they are all together? Jdforrester (WMF) (talk) 19:45, 17 July 2024 (UTC)[reply]