Zum Inhalt springen

Erweiterung:WikibaseLexeme/Datenmodell

aus AufEinWort, der freien Forschung

https://www.mediawiki.org/wiki/Extension:WikibaseLexeme/Data_Model/de

The data model of WikibaseLexeme describes the structure of the data that is handled as "Lexemes" in Wikibase, such as words and phrases. While it would be theoretically possible to model these things using Items, a more expressive specialized model helps to reduce complexity, and improve re-use and mappings to other vocabularies. This data model is conceptual ("Which information do we have to support?") and does not specify how this data should be represented technically ("Which data structures should the software use?") or syntactically ("How should the data be expressed in a file?"). Separate documents describe the serialization of the Wikibase data model in JSON (JavaScript Object Notation) and in RDF (Resource Description Framework). The Lexeme data model defines basic concepts and relationships needed to describe lexemes, which act as a fixed ontology. This ontology provides a minimal scaffolding that allows Items and Statements to be used for detailed modeling of a lexeme. The specification of the Lexeme data model is based on the Wikibase data model, so the Wikidata glossary and the Wikibase data model primer may be helpful in understanding this document. The Lexeme data model aims to align with the LEMON model by the Ontolex W3C community group, where useful and practical. However, in the spirit of Wikibase, the Lexeme model is designed to be simple and flexible enough for casual collaborative editing, as opposed to the more formalized approach taken by LEMON.

Lexeme

Ein Lexem ist ein lexikalisches element einer Sprache, wie zum Beispiel ein Wort, ein Ausdruck (Phrase) oder ein Präfix (siehe Lexem in der Wikipedia). Lexeme sind Entititäten im Sinne des Wikibase Datenmodells. Ein Lexem wird mit folgenden Informationen beschrieben:

  • Einer ID. Lexeme haben IDs, beginnend mit "L" gefolgt von einer natürlichen Zahl in Dezimalschreibweise, z.B. L3746552. Diese IDs sind eindeutig innerhalb des Repositories, welches die Lexeme verwaltet. Die ID kann mit der konzeptuellen Basis-URI eines Repositories kombiniert werden um eine eindeutige URI für das Lexem zu bilden.
  • Ein Lemma als menschenlesbare Darstellung für das Lexem z.B. "run".
  • * Die Sprache zu der das Lexem gehört. Diese ist ein Verweis auf ein  Item, z.B. Q1860 für Englisch.
  • * Die Lexical category zu der das Lexem gehört. Dies ist auch ein Verweis auf ein konkretes Item, z.B. Q34698 für Adjektiv.
  • Eine Liste von Statements, die Eigenschaften des Lexems beschreiben, die nicht spezifisch zu Form oder Bedeutung gehören (z.B. abgeleitet von oder grammatikalisches Geschlecht oder syntaktische Funktion)
  • Eine Liste von Formen, üblicherweise eine für jede relevante Kombination aus grammatikalischen Eigenschaften, wie zum Beispiel Zweite Person / Einzahl / Präteritum.
  • Eine Liste von Bedeutungen, die die verschiedenen möglichen Interpretationen des Lexems beschreiben (z.B. "Finanzinstitut" und "Sitzgelegenheit für mehrere Personen nebeneinander" für das deutsche Substantiv Bank).

Lexeme statements

Instance of

In Wikidata they generally use the most general lexical category possible, e.g. affix and then instead describe which type of affix it is using an instance of-statement.

Usage examples

In Wikidata the community decided to have usage examples in one place on the lexeme because then they know where to look for them.

They have to demonstrate two properties: form (d:Property:P5830) and sense (d:Property:P6072).

They can have multiple examples from different time periods e.g. different centuries and for formality/informality and written/spoken.

Lemma

The lemma is a human readable representation of the lexeme (see Lemma on Wikipedia). Typically, the canonical form of the lexeme (e.g. the infinitive form of verbs) will be used as the lemma (see also lemon:canonicalForm).

Lemmas sind keine einfachen Strings sondern MultilingualTextValues, da das gleiche Lemma mehrere Schreibweisen haben kann. Das ist insbesondere wichtig für sprachen, die mehrere Skripte benutzen, zum Beispiel Serbisch und Japanisch.

Wikibase/DataModel/Example

Ein Lemma kann nicht komplett leer sein, mindestens eine Form muss angegeben sein.

Lemmata sind nicht eindeutig, auch nicht die Kombination aus Lemma, Sprache und lexikalischer Kategorie. Zwei unterschiedliche Lexeme mit der selben lexischen Kategorie können in der gleichen Sprache existieren, wenn sie verschiedene Daten haben, dies könnte Geschlecht, Etymologie, Morphologie (verschiedene Formen) und so weiter sein.

Wikibase/DataModel/Example

Form

The morphology of the lexeme is understood as a set of Forms. Each form defines how a lexeme changes based on a specific syntactic role or mode it may take in a sentence (see also lemon:Form).

Wikibase/DataModel/Example

Eine Form wird mit folgenden Informationen beschrieben:

  • Einer ID. Formen haben haben IDs beginnend mit der ID des Lexems, zu dem sie gehören, gefolgt von einem Bindestrich ("-") und einem "F", gefolgt von einer natürlichen Zahl in Dezimalschreibweise: z.B. L3746552-F7. Diese IDs sind eindeutig innerhalb des Repositories, welches die Lexeme verwaltet. Die ID kann mit der konzeptuellen Basis-URI eines Repositories kombiniert werden um eine eindeutige URI für diese Form zu erhalten.
  • Einer Darstellung, die die Form als String ausschreibt.
  • Eine Liste von grammatikalischen Eigenschaften die definieren, für welche syntaktischen Rollen eine Form gilt. Diese sind als Verweise zu bestimmten Items gegeben, z.B. Q814722 für Partizip.
  • Eine Liste von Statements, die die Form weiter beschreiben oder sie in Relation zu anderen Formen oder Items setzen (z.B. Aussprache (Audio), reimt sich auf, benutzt bis, benutzt in Region)

Wikibase/DataModel/Future

Darstellung

A form's Representation is its written form, as used in a text (compare lemon:writtenRep). Just like Lemmas, Representations are not simple strings, but MultilingualTextValues, since the same form may have multiple spellings, possibly in multiple scripts.

Eine Darstellung kann nicht komplett leer sein, mindestens eine Variante muss angegeben sein.

Multiple forms with the same representation are allowed to enable adding usage examples demonstrating each of them. Beispiel in Wikidata

Grammatisches Merkmal

A form's grammatical features specify under which conditions or in which syntactic role that form is used (see lexinfo:morphosyntacticProperty and grammatical category on Wikipedia). Multiple grammatical features can be combined to express under which conditions the language's grammar requires a given form to be used. Grammatical features are represented as references to Items.

Wikibase/DataModel/Example

Wikibase/DataModel/Editorial Note Wikibase/DataModel/Editorial Note

Sinn

The senses of a lexeme are different meanings which it may represent in a text. The senses are given as natural language definitions or glosses (compare intensional definitions on Wikipedia).

A sense is described using the following information:

  • An ID. Senses have IDs starting with the ID of the Lexeme they belong to, followed by a hyphen ("-") and an "S", followed by a natural number in decimal notation: e.g. L3746552-S4. These IDs are unique within the repository that manages the Lexeme. The ID can be combined with a repository's concept base URI to form a unique URI for the Sense.
  • A Gloss, defining the meaning of the Sense using natural language.
  • A list of Statements further describing the Sense and its relations to Senses and Items (e.g. item for this sense, synonym, antonym, connotation, register, denotes, evokes).

In Wikidata image is also added to provide a culturally adapted image of the sense, e.g. of a letterbox or color that can vary greatly between cultures.

Wikibase/DataModel/Editorial Note

Wikibase/DataModel/Editorial Note

Wikibase/DataModel/Future

Glossar

A sense's gloss gives a natural definition of the sense (see Gloss on Wikipedia and skos:definition). Glosses cannot be referenced.

Similar to Lemmas, Glosses are not simple strings, but MultilingualTextValues. However, the reason is not providing support for variants, but to allow the gloss to be given in entirely different languages.

E.g. it would be quite useful for a German learning French to have a German gloss for a French sense.

A Gloss cannot be entirely empty, at least one language has to be provided. A good gloss provides little or no space for ambiguity about the meaning. Lexemes with multiple senses should have glosses that are easily distinguishable from each other.

Short glosses of only a single or a few words should be avoided as it leaves too much space for interpretation of the meaning.

In Wikidata Glosses are often very similar to carefully crafted descriptions on Q-items. E.g. for apple the Q-items English description fruit of the apple tree is copied as gloss when using tools like MachtSinn to match lexemes and Q-items together and create missing senses.