LinguaLibre
Difference between revisions of "Stats/Languages"
< LinguaLibre:Stats
(adding translate tags) |
WikiLucas00 (talk | contribs) (Merge two queries into a single one) |
||
(24 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
+ | {{LinguaLibre:Stats/Menu}} | ||
<translate> | <translate> | ||
− | == | + | == Languages by number of recordings == <!--T:5--> |
</translate> | </translate> | ||
− | <query _pagination="10" | + | <query _pagination="10" lang="<translate> <!--T:7--> Item (Language Qid)</translate>" langLabel="<translate> <!--T:8--> Language</translate>" code="<translate> <!--T:9--> ISO 639-3 code</translate>" numRecords="<translate> <!--T:10--> Number of records</translate>" numSpeakers="<translate> <!--T:14--> Number of speakers</translate>"> |
− | + | SELECT ?lang ?langLabel ?code ?numRecords ?numSpeakers WHERE { | |
− | + | { | |
− | + | SELECT ?lang (COUNT(?record) as ?numRecords) WHERE { | |
− | ?record prop:P4 ? | + | ?record prop:P4 ?lang ; prop:P2 entity:Q2 |
− | OPTIONAL { ? | + | } GROUP BY ?lang |
− | + | } | |
− | } | + | |
− | + | { | |
− | ORDER BY DESC(? | + | SELECT ?lang (COUNT(DISTINCT ?recorder) as ?numSpeakers) WHERE { |
− | </query | + | ?record prop:P2 entity:Q2 ; |
+ | prop:P4 ?lang ; | ||
+ | prop:P5 ?recorder | ||
+ | } GROUP BY ?lang | ||
+ | } | ||
+ | |||
+ | ?lang prop:P2 entity:Q4 | ||
+ | |||
+ | OPTIONAL { ?lang prop:P13 ?code } | ||
+ | |||
+ | SERVICE wikibase:label { | ||
+ | bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" . | ||
+ | ?lang rdfs:label ?langLabel . | ||
+ | } | ||
+ | } ORDER BY DESC(?numRecords) | ||
+ | </query> | ||
<translate> | <translate> | ||
− | == | + | == See also == <!--T:20--></translate> |
− | </translate> | + | * [[LinguaLibre:List of languages]] |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | [[Category:Lingua Libre:DataViz{{#translation:}}]] | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | |||
− | |||
− |