LinguaLibre
Difference between revisions of "List of languages"
Supported languages on LinguaLibre can be found via the research tool, example: Search:Cantonese for this specific language. You can also browse the lists below for fast overview of all supported languages. The lists below includes values useful to bots and developers.
(bad linebreaks) |
|||
(58 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
− | {{#Subtitle:'''Supported languages on LinguaLibre''' can be found via the | + | {{#Subtitle:<translate><!--T:1--> '''Supported languages on LinguaLibre''' can be found via the research tool, example: [{{SERVER}}/Special:Search?search=Cantonese Search:Cantonese] for this specific language. You can also browse the lists below for fast overview of all supported languages. The lists below includes values useful to bots and developers.</translate>}} |
+ | <languages/> | ||
+ | <translate> | ||
+ | == List of languages with recordings == <!--T:2--></translate> | ||
+ | {| style="width:100%" | ||
+ | |- style="vertical-align:top;padding:.5em;" | ||
+ | | style="padding-right:.5em;"| | ||
+ | <query _pagination="100" language="<translate><!--T:3--> LinguaLibre Qid</translate>" languageLabel="<translate><!--T:14--> Language name</translate>" wikidata="<translate><!--T:4--> Wikidata Qid</translate>" code="<translate><!--T:5--> ISO 639-3 code</translate>" wiki="<translate><!--T:6--> Wikis</translate>" records="<translate><!--T:7--> Records</translate>" words="<translate><!--T:16--> Words</translate>" percent="%"> | ||
+ | SELECT | ||
+ | ?language (SAMPLE(?wikidataGroup) as ?wikidata) | ||
+ | (SAMPLE(?languageLabelGroup) as ?languageLabel) (SAMPLE(?codeGroup) as ?code) (SAMPLE(?wikiGroup) as ?wiki) | ||
+ | (SAMPLE(ROUND(1000*?words/?records)/10) AS ?percent) | ||
+ | WHERE { | ||
+ | { | ||
+ | SELECT ?language (SAMPLE(?recordLabelGroup) as ?words) | ||
+ | (COUNT(?record) AS ?records) { | ||
+ | { | ||
+ | SELECT ?language (COUNT(DISTINCT ?recordLabel) as ?recordLabelGroup) WHERE { | ||
+ | ?record prop:P4 ?language . # Filter: P4 'language' is Q21 'French' | ||
− | + | FILTER EXISTS { | |
+ | ?language prop:P2 entity:Q4 .# Filter: P2 'instance of' is Q4 'language' | ||
+ | ?record prop:P2 entity:Q2 . # Filter: P2 'instance of' is Q2 'record' | ||
+ | } | ||
− | + | ?record rdfs:label ?recordLabel. # Assign value: label to ?itemLabel | |
− | select ?language ? | + | } GROUP BY ?language |
+ | } | ||
+ | |||
+ | ?record prop:P4 ?language . # Filter: P4 'language' is Q21 'French' | ||
+ | ?record prop:P2 entity:Q2 . # Filter: P2 'instance of' is Q2 'record' | ||
+ | } GROUP BY ?language | ||
+ | } | ||
+ | |||
+ | ?language rdfs:label ?languageLabelGroup FILTER | ||
+ | (lang(?languageLabelGroup) = "[AUTO_LANGUAGE]"). | ||
+ | OPTIONAL { ?language prop:P12 ?wikidataGroup } # Assign value: language's P12 'wikidata id' into ?wikidata | ||
+ | OPTIONAL { ?language prop:P13 ?codeGroup } # Assign value: language's P13 'ISO 639-3' into ?wikidata | ||
+ | OPTIONAL { ?language prop:P17 ?wikiGroup } | ||
+ | } | ||
+ | GROUP BY ?language | ||
+ | ORDER BY DESC(?records) | ||
+ | </query> | ||
+ | | | ||
+ | <query _pagination="100" languages="<translate><!--T:19--> Number of languages</translate>" records="<translate><!--T:20--> Number of records</translate>"> | ||
+ | select (COUNT(DISTINCT ?language) as ?languages) (COUNT(?record) as ?records) | ||
where { | where { | ||
?record prop:P2 entity:Q2 . | ?record prop:P2 entity:Q2 . | ||
?record prop:P4 ?language . | ?record prop:P4 ?language . | ||
− | OPTIONAL { ?language prop:P12 ?wikidata } | + | } |
− | OPTIONAL { ?language prop:P13 ?code } | + | </query> |
− | OPTIONAL { ?language rdfs:label ?languageLabel . FILTER (lang(?languageLabel) = " | + | |} |
+ | <translate> | ||
+ | == List of languages for which you can record == <!--T:8--></translate> | ||
+ | |||
+ | {| style="width:100%" | ||
+ | |- style="vertical-align:top;padding:.5em;" | ||
+ | | style="padding-right:.5em;"| | ||
+ | <query _pagination="100" language="<translate><!--T:9--> LinguaLibre Qid</translate>" languageLabel="<translate><!--T:18--> Language name</translate>" wikidata="<translate><!--T:10--> Wikidata Qid</translate>" code="<translate><!--T:11--> ISO 639-3 code</translate>"> | ||
+ | select ?language ?wikidata ?languageLabel ?code | ||
+ | where { | ||
+ | ?language prop:P2 entity:Q4 . # Filter: P2 'instance of' is Q4 'language' | ||
+ | OPTIONAL { ?language prop:P12 ?wikidata } # Assign value: language's P12 'wikidata id' into ?wikidata | ||
+ | OPTIONAL { ?language prop:P13 ?code } # Assign value: language's P13 'ISO 639-3' into ?wikidata | ||
+ | OPTIONAL { ?language rdfs:label ?languageLabel . # Assign value: label into ?languageLabel | ||
+ | FILTER (lang(?languageLabel) = "[AUTO_LANGUAGE]"). } | ||
} | } | ||
GROUP BY ?language ?wikidata ?languageLabel ?code | GROUP BY ?language ?wikidata ?languageLabel ?code | ||
− | ORDER BY | + | ORDER BY ASC(?languageLabel) |
+ | </query> | ||
+ | | | ||
+ | <query _pagination="100" languages="<translate><!--T:21--> Number of languages</translate>" records="<translate><!--T:22--> Number of records</translate>"> | ||
+ | select (COUNT(?lang) as ?languages) | ||
+ | where { | ||
+ | ?lang prop:P2 entity:Q4. | ||
+ | } | ||
</query> | </query> | ||
+ | |} | ||
+ | <translate> | ||
+ | == See also == <!--T:12--> | ||
+ | |||
+ | <!--T:13--> | ||
+ | * [[<tvar|1>Special:MyLanguage/LinguaLibre:Language codes systems used across LinguaLibre</>|LinguaLibre:Language codes systems used across LinguaLibre]] | ||
+ | * [[<tvar|2>Special:MyLanguage/Help:Add a new language</>|Help:Add a new language]] | ||
+ | * [[<tvar|3>Special:MyLanguage/Help:Querying Lingua Libre</>|Help:Querying Lingua Libre]] | ||
+ | * [[<tvar|4>Special:MyLanguage/Help:Sparql</>|Help:Sparql]] | ||
+ | * [[<tvar|5>Special:ListProperties</>|Special:ListProperties]] | ||
+ | * [[<tvar|6>Special:MyLanguage/LinguaLibre:Speakers</>|LinguaLibre:Speakers]] | ||
+ | * [[<tvar|7>Special:MyLanguage/LinguaLibre:Records</>|LinguaLibre:Records]] | ||
+ | * [[<tvar|8>Special:MyLanguage/LinguaLibre:Stats/Languages</>|LinguaLibre:Stats/Languages]]</translate> | ||
− | + | {{Helps}} | |
− | + | [[Category:Lingua Libre:DataViz{{#translation:}}]] |
Latest revision as of 12:45, 19 May 2023
List of languages with recordings
|
|
List of languages for which you can record
|
|
See also
- LinguaLibre:Language codes systems used across LinguaLibre
- Help:Add a new language
- Help:Querying Lingua Libre
- Help:Sparql
- Special:ListProperties
- LinguaLibre:Speakers
- LinguaLibre:Records
- LinguaLibre:Stats/Languages