Вікідані:Лексикографічні дані/Документація
Це головна сторінка документації щодо лексикографічних даних у Вікіданих. Вона має на меті описати загальну інформацію про лексеми Вікіданих: те, як вони структуровані, як їх можна редагувати та що можна додати для їх збагачення.
Зауважте, що хоча інформація з цієї сторінки може широко застосовуватись до більшості мов, те, що працює для моделювання однієї мови, не завжди працюватиме для моделювання іншої мови. Щоб отримати інформацію про моделювання лексем для певних мов, відвідайте сторінки документації для них.
Більше технічної документації можна знайти окремо для розширення WikibaseLexeme для MediaWiki, яке забезпечує підтримку лексем у Вікіданих.
Доступний глосарій лексикографічних термінів Вікіданих.
Модель даних
Модель даних WikibaseLexeme описує структуру даних, які обробляються у Вікіданих як "Лексеми". Нижче наведено короткий огляд; для отримання детальнішої інформації див. відповідну сторінку документації WikibaseLexeme.
Лексема (lexeme) — це лексичний елемент мови, такий як слово, словосполучення або префікс. (Більше інформації про лексеми загалом можна знайти у Вікіпедії.) Лексеми, як і елементи та властивості, також є сутностями Вікібази; вони також мають індивідуальні ідентифікатори, і до них можна окремо звертатися та запитувати.
Є сім компонент лексеми, описаних у кожному з наступних підрозділів:
- її LID;
- її леми;
- її мова;
- її лексична категорія;
- її твердження (найвищого рівня);
- її смисли;
- її форми.
Ідентифікатор ID лексеми
Лексеми мають ідентифікатори, що починаються з "L" і продовжуються числом з використанням цифр 0-9, наприклад L3746552
. Ці ідентифікатори (їх часто позначають "LID", від "lexeme identifiers") є унікальними у Вікіданих і призначаються автоматично під час створення нової лексеми.
RDF URI для лексеми формується як http://www.wikidata.org/entity/
, після чого йде ідентифікатор лексеми.
Леми лексеми
Леми (lemmata, в однині lemma) лексеми переважно використовуються як зрозумілі для людини представлення лексеми. Кожна лема складається з рядка, що супроводжується дійсним тегом мови IETF. Зазвичай леми — це письмові форми слова, словосполучення чи афікса, які можна знайти в словнику, що їх описує, незалежно від того, вважаються вони морфологічно «базовою формою» чи «основою».
- e.g. the English lexeme Lexeme:L3435 has the lemma 'umbrella' because most English dictionaries provide information about this lexeme under the heading 'umbrella' and not under something like 'umbrellas' or "umbrella's" or "umbrellas'".
- e.g. the Italian lexeme Lexeme:L1196965 has the lemma 'volare' because most Italian dictionaries provide information about it under that heading and not under something like 'volo', 'volante', or 'volato'.
- e.g. the Korean lexeme Lexeme:L17 has the lemma '먹다' because most Korean dictionaries provide information about it under that form, rather than something like '먹-', '먹어', or even '먹습니다'.
Lexemes can have several lemmata, particularly when there are differences in the writing system or other orthographic conventions within a given language. Different lemmata are indicated with different language tags, and a lexeme may only have one lemma for a given language tag.
- e.g. the Hindustani lexeme Lexeme:L641622 has two lemmata, 'चाचा' with code
hi
and 'چاچا' with codeur
, which are representations of the same dictionary form (pronounced /t͡ʃɑː.t͡ʃɑː/) in the Devanagari script (used for Hindi) and the Arabic script (used for Urdu). - e.g. the Hebrew lexeme Lexeme:L63672 has two lemmata, 'אדום' with code
he
and 'אָדֹם' with codehe-x-Q21283070
, which reflect differences in how the same word form is spelt depending on whether diacritics are present. - e.g. the Southern Min lexeme Lexeme:L308008 has three lemmata, '城市' with code
nan-hani
, 'siânn-tshī' with codenan-x-Q56929
, and 'siâⁿ-chhī' with codenan-x-Q559173
. These represent using either Chinese characters or one of two romanization systems, each corresponding to the same word form.
Note that some of the language codes above contain an '-x-' in them. There are two main reasons this would be present in a language code:
- For languages whose language codes are not yet supported, a last-resort option for a language code to use would involve adding a private-use subtag, containing the QID for the Wikidata item for the language, with the
mis
base code.- e.g. lexemes in Polabian (Q36741), such as Lexeme:L1089491, have a lemma with the code
mis-x-Q36741
. - e.g. lexemes in Soyot (Q4426878), such as Lexeme:L1015954, have a lemma with the code
mis-x-Q4426878
. - e.g. lexemes in Láadan (Q35757), such as Lexeme:L623039, have a lemma with the code
mis-x-Q35757
.
- e.g. lexemes in Polabian (Q36741), such as Lexeme:L1089491, have a lemma with the code
- If a language has a supported language code, but a variation whose language code is not supported, the private-use subtag may be attached directly to the existing supported code.
- e.g. lexemes in the Varendri (Q48726757) of Bengali, such as Lexeme:L672268, have a lemma with the code
bn-x-Q48726757
(where 'bn' is the existing supported code). - e.g. lemmata in Devanagari Sindhi (Q116688933) for lexemes in Sindhi use the language code
sd-x-q116688933
(where 'sd' is the existing supported code). - e.g. lemmata in the Adlam (Q19606346) for lexemes in Fula use the language code
ff-x-q19606346
(where 'ff' is the existing supported code).
- e.g. lexemes in the Varendri (Q48726757) of Bengali, such as Lexeme:L672268, have a lemma with the code
Lexeme lemmata are what are displayed when using the {{L}}
template to link to a lexeme on Wikidata (including later on this page).
Мова лексеми
Мова, до якої належить лексема, є посиланням на елемент Вікіданих для мови.
Для більшості мов це є простим визначенням: English (Q1860), Thai (Q9217), Manchu (Q33638) і Gun (Q3111668) є лише чотирма можливостями з багатьох, оскільки вони підтримують мовні коди en
, th
, mnc
і guw
.
Однак деякі мови почали вимагати використання певних мовних елементів для своїх лексем; див. сторінки документації для цих мов для отримання додаткової інформації.
Лексична категорія
The lexical category to which a lexeme belongs is a reference to a Wikidata item for a particular group of words with specific syntactic behavior in a language. This usually corresponds with the "part of speech" of the lexeme: nouns, verbs, adjectives, adverbs, and so on.
The lexical category of a lexeme should be somewhat more general than any other more appropriate but more specific description thereof, as a broader reflection of how the lexeme behaves syntactically in its language. Other items like count noun (Q1520033), separable verb (Q3254028), and relative pronoun (Q1050744), where applicable, should be added as the values of instance of (P31) statements instead.
Different languages may necessarily use different lexical categories, but some are frequent enough across languages that a comparison may be made; see the full documentation page on lexical categories for a table comparing such categories across languages.
Твердження лексеми
Lexemes, like items or properties, have statements (claims) that provide information about the lexeme that is not specific to one of its forms or senses. Depending on how a particular language works, and depending on the lexical category of the lexeme, some statements will be more applicable to a given lexeme than others.
Many common properties applicable directly to lexemes are listed in Template:Lexicographical properties.
Смисли лексеми
Senses describe the different meanings of a lexeme.
A sense consists of three parts: 1) the sense ID, 2) glosses, and 3) statements.
- The sense ID starts with the ID of the lexeme it belongs 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 Wikidata; when a new sense is created within a lexeme, an entirely new sense ID is provided for it. Like an LID, a sense ID may be appended tohttp://www.wikidata.org/entity/
to form a unique URI for the sense. - Glosses define the meaning of the sense using natural language. For a lexeme in a given language X, the gloss in language X should be a more detailed explanation of the meaning of the sense, while the glosses in other languages Y and Z may be less detailed, so long as they are clear enough to speakers of Y and Z what the meaning of the sense is.
- Like lexemes, items, and properties, senses can have statements further describing the sense and its relations to other senses and to Wikidata items.
Many common properties applicable to lexeme senses are listed in Template:Lexicographical properties.
Форми лексеми
Forms describe the different realizations of a lexeme in speech or writing.
Depending on how a language behaves morphologically, there may be exactly one form of a lexeme or there may be multiple forms. In general, the more isolating or analytic or the more agglutinative or polysynthetic a language is, the more it may benefit from having one form per lexeme. Lexemes in many fusional languages typically have multiple forms for particular combinations of grammatical features.
A form consists of four parts: 1) the form ID, 2) form representations, 3) grammatical features, and 4) statements.
- The form ID starts with the ID of the lexeme it belongs to, followed by a hyphen ("-") and an "F", followed by a natural number in decimal notation: e.g.
L3746552-F4
. These IDs are unique within Wikidata; when a new form is created within a lexeme, an entirely new form ID is provided for it. Like an LID or a sense ID, a form ID may be appended tohttp://www.wikidata.org/entity/
to form a unique URI for the form. - Form representations are strings, accompanied with language tags, that signify how a particular form is used. As with lemmata, there may be multiple representations on a single form to handle differences in writing system or orthographic variation within a language.
- Grammatical features are references to Wikidata items that define the syntactic circumstances in which a given form applies.
- Like lexemes, senses, items, and properties, forms can have statements further describing the form and its relations to other forms and to Wikidata items.
Many common properties applicable to lexeme forms are listed in Template:Lexicographical properties.
Критерії включення лексеми
In some cases or languages, there may be multiple entities for related words, whereas in other language there may be just one. The below table provides an overview of how nouns in particular may be linked:
difference in | 1 lexeme | 2+ lexemes | |||
---|---|---|---|---|---|
sense | add several senses | add applicable sense to lexeme | link other(s) with homograph lexeme | duplicate forms on each | |
etym. | add etym. to each sense | add etym. to lexeme base | link other(s) with homograph lexeme | duplicate forms on each | |
gender | add gender to each sense | add gender to lexeme base | link other(s) with homograph lexeme | duplicate forms on each | |
common/proper | add several senses | use lexical category "noun" | add applicable sense to lexeme | link other(s) with homograph lexeme | duplicate forms on each |
caps/lowercase | add several forms | qualify forms to applicable senses | add applicable sense to lexeme | link other(s) with homograph lexeme | add only applicable forms |
singular/plural | add several forms | qualify forms to applicable senses | add applicable sense | if possible link other(s) with homograph lexeme | add only applicable forms |
pronunciation | add the same form twice | qualify forms to applicable senses, add prononciation | add applicable sense | if possible link other(s) with homograph lexeme | add form and applicable pronunciation |
forms/spelling | add several forms or alternate forms | qualify forms to applicable senses | add applicable sense | if possible link other(s) with homograph lexeme | add only applicable forms |
For a given language and criterion (first column), just one of the two might apply
Інтерфейс
The following section details steps to take in Wikidata's user interface to perform common tasks involving editing lexemes.
Лексеми
Створити нову лексему
- Go to Special:NewLexeme.
- Under Lemma, enter a lemma (see #Lexeme lemmata for more information).
- Under Lexeme's language, enter the language of the lexeme, either by typing the name of the language or its QID (see #Lexeme language for more information).
- If you are prompted to do so, under Spelling variant of the Lemma, enter the language code of the lemma (see #Lexeme lemmata for more information).
- Under Lexical category, enter the lexical category of the lexeme, either by typing its name or its QID (see #Lexical category for more information).
- Click "Create" to save your changes.
You have now created a lexeme with the most basic information. Because it is very empty, it cannot meaningfully be used until more information is added to it, such as statements, senses, and forms (for which see later in this page).
Редагувати леми, мову або лексичну категорію лексеми
- Next to the lemmata, click the 'edit' button.
- Lemmata may be edited as follows:
- To add a lemma, first select the "+" that appears beside the lemmata.
- In the new lemma, under Lemma, add the representation of the new lemma.
- Also in the new lemma, under Spelling variant, add the language code of the new lemma.
- To remove a particular lemma, simply select the "x" appearing beside Lemma in that lemma.
- To change the language of the lexeme, use the search box appearing beside Language to pick an item for a language.
- To change the lexical category of the lexeme, use the search box appearing beside Lexical category to pick an item for a lexical category.
- Click "publish" to save your changes.
Додати, редагувати або видалити твердження лексеми
Adding a statement to a lexeme entails the following steps:
- Click "add statement"
- Enter a property, typing its name in the property field (such as
derived from lexeme
) and selecting it in the suggester. - Enter a value for the property.
Примітка: Wikidata property for lexicographic senses (Q54275340), такі як translation (P5972) або synonym (P5973), наразі не підтримують пошуку смислів за допомогою лем лексем чи глос смислів. Це означає, що для введення значення твердження вам треба ввести точний ідентифікатор ID смислу для смислу, який ви хочете ввести як значення.Як видно тут, Вікідані не можуть знайти лексеми та їхні смисли під час пошуку за їхньою назвою. Проте пошук за точним ідентифікатором смислу лексеми повертає наглядний результат. - Якщо ви хочете додати кваліфікатори та посилання до твердження, не соромтеся це робити.
- Save the statement by clicking "publish".
- To edit a statement, click "edit".
- To delete a statement, click "edit", then click "remove".
Видалити лексему
To delete a lexeme, you may request its deletion at Wikidata:Requests for deletions, just as is done with items. If you have the Merge gadget enabled, you may submit deletion requests for lexemes using it.
Пошук лексеми
To look for lexemes via Special:Search or the search box on any page, you may use its LID, one of its lemmata, or a representation of one of its forms.
The simplest way to do this is to prefix "L:" to one of these, and you will automatically see results in the lexeme namespace for your search. For example, lexeme L301993 has the lemma "হৃদয়" and one of its forms has the representation "হৃদয়েতে". Searching for "L:L301993", "L:হৃদয়", or "L:হৃদয়েতে" will return the same lexeme in the results.
You may alternatively search without the "L:" prefix (e.g. using "L301993", "হৃদয়", or "হৃদয়েতে"), then select the "Lexeme" namespace in the Search in: and rerun the search to get the same lexeme returned.
Note that the selector (the drop-down menu that pops up to suggest results) does not support the lexeme namespace yet. Pressing Enter or clicking the search icon after typing your keyword, however, will show you the results.
Смисли
Створити новий смисл
- In the Senses section of a lexeme, click "add Sense".
- Under Language, enter a language code for the gloss.
- Under Gloss, enter the gloss.
- To add new glosses, click "add" and repeat steps 2 and 3.
- Click "publish" to save your changes.
Редагувати глоси смислів
- Next to the sense glosses, click "edit".
- To add a new gloss, do the following:
- Underneath the existing sense glosses, click the smaller "add" link. (Be careful that you do not accidentally click on the add statement or add Sense links used to add a new statement or sense instead!)
- Under Language, enter a language code for the new gloss.
- Under Gloss, enter the new gloss.
- Repeat these steps for each new gloss you wish to add.
- To remove a gloss, click "remove" next to the gloss.
- Click "publish" to save your changes.
Видалити смисл
- Next to the sense glosses, click "edit".
- Click "remove".
Форми
Створити нову форму
- In the Forms section of a lexeme, click "add Form".
- Under Representation, fill in a representation for the new form.
- Under Spelling variant, fill in the language code for that representation.
- To add more representations, click the "+" next to the existing representations and repeat steps 2 and 3 for the new representation.
- Next to Grammatical features, enter one or several grammatical features, by typing their name and selecting them in the list of items that appears.
- Click "publish" to save your changes.
Редагувати репрезентації або граматичні ознаки форми
- Next to the form's representations, click "edit".
- Representations may be edited as follows:
- To add a representation, first select the "+" that appears beside the representations.
- In the new representation, under Representation, add the new representation for the form.
- Also in the new representation, under Spelling variant, add the language code for that representation.
- To remove a particular representation, simply select the "x" appearing beside Representation in that representation.
- To add a grammatical feature, type its name at the end of the text box and select the appropriate item in the list of items that appears.
- To remove a grammatical feature, click the "x" that appears next to it.
- Click "publish" to save your changes.
Видалити форму
- Next to the form's representations, click "edit".
- Click "remove".
Характеристики
Див. також: Вікідані:Лексикографічні дані/Розробка
Що входить у першу версію
- New datatypes: Lexeme, Form
- Add, edit, delete Lexemes
- Add, edit, delete Forms
- Add, edit, delete statements
- Add, edit, delete qualifiers
- Add, edit, delete references
- Linking to an Item from a Lexeme or a Form
- Linking to another Lexeme from a Lexeme, a Form or an Item
- Search and suggestions when entering a value
- Basic internal APIs (used for UI, you should not use them)
Що буде додане в майбутньому
Ordered from near to long-term plans
- Search for content with Special:Search Done
- Display the lemma in the history pages, recent changes and watchlist Done
- Add, edit, delete Senses Done
- RDF support and ability to query the data on query.wikidata.org Done
- Better API support
- Automatic generation of Forms
- Data access on clients (other Wikimedia projects) Done
- Editing data directly from Wiktionary