Help

Difference between revisions of "Create your own lists"

 
Line 70: Line 70:
 
;<translate>SPARQL assistant</translate>
 
;<translate>SPARQL assistant</translate>
 
<translate>You can use [https://spinach.genie.stanford.edu/ Standford University's SPARQL assistant Spinash] with variations of the following prompt :</translate>
 
<translate>You can use [https://spinach.genie.stanford.edu/ Standford University's SPARQL assistant Spinash] with variations of the following prompt :</translate>
:''« Hello Sparql Mentor ! How to find all the French commune from Finistere ?<br>Rename items as ?id, use `?id rdfs:label ?label`
+
:''« Hello Sparql Mentor ! How to find all the French commune from Finistere ?<br>Rename items as ?id, use `?id rdfs:label ?label` for labels, and filter for French labels only.<br>Append short inline comment to explain each line of the query. »''
for labels, and filter for French labels only.<br>Append short inline comment to explain each line of the query. »''
 
  
 
<translate>
 
<translate>

Latest revision as of 10:42, 11 December 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

# List communes of Manche department in Lingua Libre friendly table with ?id and ?label
# https://w.wiki/CNrm
SELECT ?id ?label
WHERE {
  ?id wdt:P31/wdt:P279* wd:Q484170;  # item is `commune de france` (Q484170)
      wdt:P131 wd:Q12589.      # item is `located in administrative entity` (P131) of `Manche` (Q12589)
  ?id rdfs:label ?label.       # fetch labels
  FILTER(lang(?label) = "fr")  # only French labels
}
SPARQL assistant

You can use Standford University's SPARQL assistant Spinash with variations of the following prompt :

« Hello Sparql Mentor ! How to find all the French commune from Finistere ?
Rename items as ?id, use `?id rdfs:label ?label` for labels, and filter for French labels only.
Append short inline comment to explain each line of the query. »
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}}