LinguaLibre
Difference between revisions of "Stats/Languages"
< LinguaLibre:Stats
(Marked this version for translation) |
WikiLucas00 (talk | contribs) (Slimming down the page, two queries were redundant) |
||
Line 1: | Line 1: | ||
<languages/> | <languages/> | ||
<translate> | <translate> | ||
− | == | + | == Languages by number of recordings == <!--T:5--> |
</translate> | </translate> | ||
− | <query _pagination="10" | + | <query _pagination="10" lang="<translate> Item (Language Qid)</translate>" langLabel="<translate> Language</translate>" code="<translate> ISO 639-3 code</translate>" nb="<translate> Number of records</translate>"> |
− | + | SELECT ?lang ?langLabel ?code ( count(DISTINCT ?record) as ?nb ) WHERE { | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | <translate> | ||
− | |||
− | </translate> | ||
− | |||
− | SELECT ?lang ?langLabel ( count(DISTINCT ?record) as ?nb ) WHERE { | ||
?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en"). | ?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en"). | ||
OPTIONAL { ?record prop:P4 ?lang ; prop:P2 entity:Q2 . } | OPTIONAL { ?record prop:P4 ?lang ; prop:P2 entity:Q2 . } | ||
+ | OPTIONAL { ?lang prop:P13 ?code } | ||
} | } | ||
− | GROUP BY ?lang ?langLabel | + | GROUP BY ?lang ?langLabel ?code |
ORDER BY DESC(?nb) | ORDER BY DESC(?nb) | ||
</query> | </query> | ||
<translate> | <translate> | ||
− | == Languages by | + | == Languages by number of speakers == <!--T:6--> |
</translate> | </translate> | ||
− | <query> | + | <query _pagination="10" lang="<translate> Item (Language Qid)</translate>" langLabel="<translate> Language</translate>" code="<translate> ISO 639-3 code</translate>" nb="<translate> Number of speakers</translate>"> |
− | SELECT ?lang ?langLabel ( count(DISTINCT ?recorder) as ?nb ) WHERE { | + | SELECT ?lang ?langLabel ?code ( count(DISTINCT ?recorder) as ?nb ) WHERE { |
?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en"). | ?lang prop:P2 entity:Q4 ; rdfs:label ?langLabel . FILTER (lang(?langLabel) = "en"). | ||
OPTIONAL { ?record prop:P4 ?lang ; prop:P5 ?recorder ; prop:P2 entity:Q2 . } | OPTIONAL { ?record prop:P4 ?lang ; prop:P5 ?recorder ; prop:P2 entity:Q2 . } | ||
+ | OPTIONAL { ?lang prop:P13 ?code } | ||
} | } | ||
− | GROUP BY ?lang ?langLabel | + | GROUP BY ?lang ?langLabel ?code |
ORDER BY DESC(?nb) | ORDER BY DESC(?nb) | ||
</query> | </query> |