Help

Difference between revisions of "Create your own lists"

(Marked this version for translation)
(Adding query for lexemes with specific forms, Puno Quechua example)
 
(17 intermediate revisions by 6 users not shown)
Line 11: Line 11:
 
{{Colapse|1=<translate><!--T:3--> Lists sorted by language code</translate>|2={{Special:AllPages|namespace=142}}}}
 
{{Colapse|1=<translate><!--T:3--> Lists sorted by language code</translate>|2={{Special:AllPages|namespace=142}}}}
  
 +
{{Clickable button 3|<translate><!--T:23--> Consult the page listing all lists</translate>|url=https://lingualibre.org/wiki/Special:AllPages?from=&to=&namespace=142|class=mw-ui-progressive}}
 
<translate>
 
<translate>
 +
 
== Create a new list == <!--T:4-->
 
== Create a new list == <!--T:4-->
  
 
<!--T:10-->
 
<!--T:10-->
Lists are stored on Lingua Libre as standard wikipages. Their names are standardized; it starts with the code ISO 639-3 ([https://iso639-3.sil.org/code_tables/639/data complete list available here]) of the language used in the list, the slash "/" punctuation mark, and at last the name you want to give to your word list. For example, for a list of vegetables in English: <code>Eng/Vegetables</code>.
+
Lists are stored on Lingua Libre as standard wikipages. Their names are standardized; it starts with the code ISO 639-3 ([<tvar|1>https://iso639-3.sil.org/code_tables/639/data</> complete list available here]) of the language used in the list, the slash "/" punctuation mark, and at last the name you want to give to your word list. For example, for a list of vegetables in English: <code>Eng/Vegetables</code>.
  
 
<!--T:5-->
 
<!--T:5-->
 
Enter the name of your list (as explained in the previous paragraph) in the textbox below to create your list. You will then be able to add words to it. It should be formated as follow:
 
Enter the name of your list (as explained in the previous paragraph) in the textbox below to create your list. You will then be able to add words to it. It should be formated as follow:
 
* One word per line;
 
* One word per line;
* Words can be preceded by a single <code>#</code> or <code>*</code>;
+
* Words can be preceded by a single <code>#</code>;
 
* Do not leave any comments inside your list, otherwise they will be treated as words to record.
 
* Do not leave any comments inside your list, otherwise they will be treated as words to record.
 
</translate>
 
</translate>
 
  
 
<inputbox>
 
<inputbox>
Line 33: Line 34:
 
placeholder= <translate><!--T:8--> Eng/Name of the list</translate>
 
placeholder= <translate><!--T:8--> Eng/Name of the list</translate>
 
</inputbox>
 
</inputbox>
 +
<translate>
  
<translate>
 
 
== Generate lists from queries == <!--T:11-->
 
== Generate lists from queries == <!--T:11-->
  
Line 45: Line 46:
 
* click on the button "External tools" on the bottom right corner
 
* click on the button "External tools" on the bottom right corner
 
* in the dialog window that appears, you can add the link of a Wikidata query and choose the number of words you want to get from it
 
* in the dialog window that appears, you can add the link of a Wikidata query and choose the number of words you want to get from it
</translate>
 
  
[[File:Screenshot generate list from Wikidata.png|600px|center]]
 
 
<translate>
 
 
<!--T:14-->
 
<!--T:14-->
 
;Requirements for the query:
 
;Requirements for the query:
Line 55: Line 52:
 
* The link must be a link to the query interface (not the direct result) and should not be shortened
 
* The link must be a link to the query interface (not the direct result) and should not be shortened
  
<!--T:15-->
+
=== Examples of queries that you can use or edit === <!--T:15-->
;Examples of queries that you can use or edit:
 
  
 
<!--T:16-->
 
<!--T:16-->
* For items:</translate> [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%0A%7B%0A%20%20%3Fid%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ484170%20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP131%20wd%3AQ12589.%0A%20%20%3Fid%20rdfs%3Alabel%20%3Flabel.%0A%20%20FILTER%28lang%28%3Flabel%29%20%3D%20%22fr%22%29.%0A%7D <translate><!--T:22--> List of communes of France located in the department of Manche</translate>]
+
* For items:</translate> [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%0A%7B%0A%20%20%3Fid%20wdt%3AP31%2Fwdt%3AP279%2a%20wd%3AQ484170%20%3B%0A%20%20%20%20%20%20%20%20wdt%3AP131%20wd%3AQ12589.%0A%20%20%3Fid%20rdfs%3Alabel%20%3Flabel.%0A%20%20FILTER%28lang%28%3Flabel%29%20%3D%20%22fr%22%29.%0A%7D <translate><!--T:22--> List of communes located in the department of Manche</translate>]
 +
<syntaxhighlight lang="sparql">
 +
SELECT ?id ?label
 +
{
 +
  ?id wdt:P31/wdt:P279* wd:Q484170 ;
 +
        wdt:P131 wd:Q12589.
 +
  ?id rdfs:label ?label.
 +
  FILTER(lang(?label) = "fr").
 +
}
 +
</syntaxhighlight>
  
 
<translate>
 
<translate>
 
<!--T:17-->
 
<!--T:17-->
 
* For Lexemes:</translate> [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%20WHERE%20%7B%0A%20%20%3Fl%20a%20ontolex%3ALexicalEntry%20%3B%20dct%3Alanguage%20wd%3AQ150%20%3B%20wikibase%3AlexicalCategory%20wd%3AQ1084%20%3B%20ontolex%3AlexicalForm%20%3Fid%20.%0A%20%20%3Fid%20ontolex%3Arepresentation%20%3Flabel%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fid%20wdt%3AP443%20%3Faudio.%20%7D%0A%7D <translate><!--T:21--> List of French nouns that have no audio recording added</translate>]
 
* For Lexemes:</translate> [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%20WHERE%20%7B%0A%20%20%3Fl%20a%20ontolex%3ALexicalEntry%20%3B%20dct%3Alanguage%20wd%3AQ150%20%3B%20wikibase%3AlexicalCategory%20wd%3AQ1084%20%3B%20ontolex%3AlexicalForm%20%3Fid%20.%0A%20%20%3Fid%20ontolex%3Arepresentation%20%3Flabel%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fid%20wdt%3AP443%20%3Faudio.%20%7D%0A%7D <translate><!--T:21--> List of French nouns that have no audio recording added</translate>]
<nowiki>SELECT ?id ?label WHERE {
+
 
 +
<syntaxhighlight lang="sparql">
 +
SELECT ?id ?label
 +
WHERE {
 
   ?l a ontolex:LexicalEntry ; dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
 
   ?l a ontolex:LexicalEntry ; dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
 
   ?id ontolex:representation ?label .
 
   ?id ontolex:representation ?label .
 
   FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
 
   FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
}</nowiki>
+
}
 +
</syntaxhighlight>
 
* [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%20WHERE%20%7B%0A%20%20%3Fl%20a%20ontolex%3ALexicalEntry%20%3B%20dct%3Alanguage%20wd%3AQ1860%20%3B%20wikibase%3AlexicalCategory%20wd%3AQ1084%20%3B%20ontolex%3AlexicalForm%20%3Fid%20.%0A%20%20%3Fid%20ontolex%3Arepresentation%20%3Flabel%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fid%20wdt%3AP443%20%3Faudio.%20%7D%0A%7D <translate><!--T:18--> List of English nouns that have no audio recording added</translate>]
 
* [https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%20WHERE%20%7B%0A%20%20%3Fl%20a%20ontolex%3ALexicalEntry%20%3B%20dct%3Alanguage%20wd%3AQ1860%20%3B%20wikibase%3AlexicalCategory%20wd%3AQ1084%20%3B%20ontolex%3AlexicalForm%20%3Fid%20.%0A%20%20%3Fid%20ontolex%3Arepresentation%20%3Flabel%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fid%20wdt%3AP443%20%3Faudio.%20%7D%0A%7D <translate><!--T:18--> List of English nouns that have no audio recording added</translate>]
<nowiki>SELECT ?id ?label WHERE {
+
<syntaxhighlight lang="sparql">
 +
SELECT ?id ?label
 +
WHERE {
 
   ?l a ontolex:LexicalEntry ; dct:language wd:Q1860 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
 
   ?l a ontolex:LexicalEntry ; dct:language wd:Q1860 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
 
   ?id ontolex:representation ?label .
 
   ?id ontolex:representation ?label .
 
   FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
 
   FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
}</nowiki>
+
}
 +
</syntaxhighlight>
  
 
<translate>
 
<translate>
 +
* For Lexemes with specific forms: </translate>[https://query.wikidata.org/#SELECT%20%3Fid%20%3Flabel%20WHERE%20%7B%0A%20%20%3Fl%20a%20ontolex%3ALexicalEntry%20%3B%20%0A%20%20%20%20%20%20%20dct%3Alanguage%20wd%3AQ5218%20%3B%20%0A%20%20%20%20%20%20%20wikibase%3AlexicalCategory%20wd%3AQ24905%20%3B%20%0A%20%20%20%20%20%20%20ontolex%3AlexicalForm%20%3Fid%20.%0A%20%20%3Fid%20ontolex%3Arepresentation%20%3Flabel%20.%0A%20%20FILTER%20NOT%20EXISTS%20%7B%20%3Fid%20wdt%3AP443%20%3Faudio.%20%7D%20%20%0A%20%20FILTER%20%28LANG%28%3Flabel%29%20%3D%20%22qu-x-q7260479%22%29.%20%23%20retrieve%20Puno%20Quechua%20lexemes%2Fforms%3A%20qu-x-Q7260479%20%21%21Lowercase%0A%7D <translate> List of Puno Quechua lexeme-forms that have no audio recording added</translate>]
 +
<syntaxhighlight lang="sparql">
 +
SELECT ?id ?label WHERE {
 +
  ?l a ontolex:LexicalEntry ; dct:language wd:Q5218 ; wikibase:lexicalCategory wd:Q24905 ; ontolex:lexicalForm ?id .
 +
  ?id ontolex:representation ?label .
 +
  FILTER NOT EXISTS { ?id wdt:P443 ?audio. } 
 +
  FILTER (LANG(?label) = "qu-x-q7260479"). # retrieve Puno Quechua lexemes/forms: qu-x-Q7260479 !!Lowercase
 +
}
 +
</syntaxhighlight>
 +
<translate>
 +
 
== Multi-lingual wordlist == <!--T:19-->
 
== Multi-lingual wordlist == <!--T:19-->
  
 
<!--T:20-->
 
<!--T:20-->
 
Multi-lingual wordlist --wordlist including the translation of target words-- are not supported at the moment. An issue have been opened on LinguaLibre developments and bugs tracking system ([https://phabricator.wikimedia.org/T211086 T211086]).</translate>
 
Multi-lingual wordlist --wordlist including the translation of target words-- are not supported at the moment. An issue have been opened on LinguaLibre developments and bugs tracking system ([https://phabricator.wikimedia.org/T211086 T211086]).</translate>
 +
 +
<translate>
 +
== See also == <!--T:24-->
 +
</translate>
 +
{{Helps}}

Latest revision as of 18:38, 5 May 2024

Other languages:
Deutsch • ‎English • ‎Igbo • ‎brezhoneg • ‎español • ‎français • ‎norsk bokmål • ‎occitan • ‎português do Brasil • ‎sicilianu • ‎svenska • ‎македонски • ‎עברית • ‎தமிழ் • ‎日本語 • ‎ꯃꯤꯇꯩ ꯂꯣꯟ
This page is overlaping with Help:Lists. Merging or differentiation welcome.

The RecordWizard allow anyone to import words to record from already existing word lists. Those lists are wiki pages stored in the List namespace. Thus, any logged contributor can create its own lists or edit existing one.

Explore existing lists

Lists sorted by language code

Consult the page listing all lists

Create a new list

Lists are stored on Lingua Libre as standard wikipages. Their names are standardized; it starts with the code ISO 639-3 (complete list available here) of the language used in the list, the slash "/" punctuation mark, and at last the name you want to give to your word list. For example, for a list of vegetables in English: Eng/Vegetables.

Enter the name of your list (as explained in the previous paragraph) in the textbox below to create your list. You will then be able to add words to it. It should be formated as follow:

  • One word per line;
  • Words can be preceded by a single #;
  • Do not leave any comments inside your list, otherwise they will be treated as words to record.

Generate lists from queries

It is possible to generate lists coming from Wikidata Items or Lexemes (using Wikidata's Query Service) or Petscan.

To generate lists from Wikidata
  • go to the 3rd step of the Record Wizard ("Details")
  • click on the button "External tools" on the bottom right corner
  • in the dialog window that appears, you can add the link of a Wikidata query and choose the number of words you want to get from it
Requirements for the query
  • The query must return the Qid (or the Lid-Fid for Forms) in a column named "?id", and the corresponding text in a column named "?label"
  • The link must be a link to the query interface (not the direct result) and should not be shortened

Examples of queries that you can use or edit

SELECT ?id ?label
{
  ?id wdt:P31/wdt:P279* wd:Q484170 ;
        wdt:P131 wd:Q12589.
  ?id rdfs:label ?label.
  FILTER(lang(?label) = "fr").
}
SELECT ?id ?label
WHERE {
  ?l a ontolex:LexicalEntry ; dct:language wd:Q150 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
  ?id ontolex:representation ?label .
  FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
}
SELECT ?id ?label
WHERE {
  ?l a ontolex:LexicalEntry ; dct:language wd:Q1860 ; wikibase:lexicalCategory wd:Q1084 ; ontolex:lexicalForm ?id .
  ?id ontolex:representation ?label .
  FILTER NOT EXISTS { ?id wdt:P443 ?audio. }
}
SELECT ?id ?label WHERE {
  ?l a ontolex:LexicalEntry ; dct:language wd:Q5218 ; wikibase:lexicalCategory wd:Q24905 ; ontolex:lexicalForm ?id .
  ?id ontolex:representation ?label .
  FILTER NOT EXISTS { ?id wdt:P443 ?audio. }  
  FILTER (LANG(?label) = "qu-x-q7260479"). # retrieve Puno Quechua lexemes/forms: qu-x-Q7260479 !!Lowercase
}

Multi-lingual wordlist

Multi-lingual wordlist --wordlist including the translation of target words-- are not supported at the moment. An issue have been opened on LinguaLibre developments and bugs tracking system (T211086).

See also

Lingua Libre Help pages
General help pages Help:InterfaceHelp:Your first recordHelp:Choosing a microphoneHelp:Configure your microphoneHelp:TranslateHelp:LangtagsLinguaLibre:Language codes systems used across LinguaLibreLinguaLibre:List of languages
Linguistic help pages Help:Add a new languageHelp:HomographsHelp:List translationHelp:Ethics
Lists help pages Help:Create your own listsHelp:How to create a frequency list?Help:Why wordlists matter?Help:Swadesh listsHelp:ListsHelp:Create a new generator
Events, Outreach Lingualibre:EventsLingualibre:RolesLingualibre:WorkshopsLingualibre:HackathonLingualibre:Interested communitiesLingualibre:Events/2022 Public Relations CampaignLingualibre:MailingLingualibre:JargonLingualibre:AppsLingualibre:CitationsService civique 2022-2023
Strategy Lingualibre 2022 Review (including outreach)2022-2023 Lingualibre wishlist • {{Wikimedia Language Diversity/Projects}} • Speakers map • Voices gender • StatsLingua Libre SignIt/2022 report • {{Grants}}