LinguaLibre

Difference between revisions of "Stats/Languages"

< LinguaLibre:Stats

(Marked this version for translation)
(Merge two queries into a single one)
 
(23 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
<languages/>
 
<languages/>
 +
{{LinguaLibre:Stats/Menu}}
 
<translate>
 
<translate>
== Number of records per languages == <!--T:1-->
+
== Languages by number of recordings == <!--T:5-->
 
</translate>
 
</translate>
<query _pagination="10" language="<translate><!--T:2--> Item (Language Qid)</translate>" code="<translate><!--T:3--> ISO 639-3 code</translate>" nb="<translate><!--T:4--> Number of records</translate>">
+
<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 ?language ?languageLabel ?code (COUNT(DISTINCT ?record) as ?nb)
+
SELECT ?lang ?langLabel ?code ?numRecords ?numSpeakers WHERE {
where {
+
  {
  ?record prop:P2 entity:Q2 .
+
    SELECT ?lang (COUNT(?record) as ?numRecords) WHERE {
   ?record prop:P4 ?language .
+
      ?record prop:P4 ?lang ; prop:P2 entity:Q2
   OPTIONAL { ?language prop:P13 ?code }
+
    } GROUP BY ?lang
   OPTIONAL { ?language rdfs:label ?languageLabel . FILTER (lang(?languageLabel) = "en"). }
+
  }
}
+
 
GROUP BY ?language ?languageLabel ?code
+
   {
ORDER BY DESC(?nb)
+
    SELECT ?lang (COUNT(DISTINCT ?recorder) as ?numSpeakers) WHERE {
</query><!-- Just insert corresponding language code instead of "en" -->
+
      ?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>
== Languages by numbers of record == <!--T:5-->
+
== See also == <!--T:20--></translate>
</translate>
+
* [[LinguaLibre:List of languages]]
<query>
 
SELECT ?lang ?langLabel ( count(DISTINCT ?record) as ?nb ) WHERE {
 
  ?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en").
 
  OPTIONAL { ?record prop:P4 ?lang ; prop:P2 entity:Q2 . }
 
}
 
GROUP BY ?lang ?langLabel
 
ORDER BY DESC(?nb)
 
</query>
 
  
<translate>
+
[[Category:Lingua Libre:DataViz{{#translation:}}]]
== Languages by numbers of recorder == <!--T:6-->
 
</translate>
 
<query>
 
SELECT ?lang ?langLabel ( count(DISTINCT ?recorder) as ?nb ) WHERE {
 
  ?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en").
 
  OPTIONAL { ?record prop:P4 ?lang ; prop:P5 ?recorder ; prop:P2 entity:Q2 . }
 
}
 
GROUP BY ?lang ?langLabel
 
ORDER BY DESC(?nb)
 
</query>
 

Latest revision as of 17:27, 5 July 2024

Other languages:
Bahasa Indonesia • ‎Bahasa Melayu • ‎Deutsch • ‎English • ‎Esperanto • ‎Igbo • ‎Toki Pona • ‎brezhoneg • ‎euskara • ‎français • ‎galego • ‎occitan • ‎polski • ‎sicilianu • ‎svenska • ‎Ελληνικά • ‎башҡортса • ‎македонски • ‎русский • ‎עברית • ‎বাংলা • ‎தமிழ் • ‎తెలుగు
View statistics about:

Languages by number of recordings

... Loading ...

See also