Translations

Difference between revisions of "LinguaLibre:Stats/7/fr"

(Created page with "BIND( IF( isBLANK(?lang), entity:Q4, ?lang ) as ?language ). SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" ....")
 
 
Line 1: Line 1:
BIND( IF( isBLANK(?lang), entity:Q4, ?lang ) as ?language ).
+
where {
     
+
  ?record prop:P2 entity:Q2 .
        SERVICE wikibase:label {
+
  ?record prop:P4 ?language .
            bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
+
  OPTIONAL { ?language prop:P13 ?code }
            ?language rdfs:label ?languageLabel.
+
  OPTIONAL { ?language rdfs:label ?languageLabel . FILTER (lang(?languageLabel) = "fr"). }
        }
+
}
    }
+
GROUP BY ?language ?languageLabel ?code
    GROUP BY ?language ?languageLabel
+
ORDER BY DESC(?nb)
    ORDER BY DESC(?nb)
+
</query><!-- Just insert corresponding language code instead of "en" -->
</query>
 

Latest revision as of 23:47, 10 October 2020

where {

 ?record prop:P2 entity:Q2 .
 ?record prop:P4 ?language .
 OPTIONAL { ?language prop:P13 ?code }
 OPTIONAL { ?language rdfs:label ?languageLabel . FILTER (lang(?languageLabel) = "fr"). }

} GROUP BY ?language ?languageLabel ?code ORDER BY DESC(?nb) </query>