query-c6f33f7a6f4a0e36336db96570abe5a0
Languages
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?lexemes
(CONCAT("#language/", SUBSTR(STR(?language), 32), "/grammaticalgender") AS ?lexemesUrl)
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
?languageDescription
WHERE {
{
SELECT
(COUNT(?lexeme) AS ?lexemes)
?language
WHERE {
?lexeme dct:language ?language ;
wdt:P5185 [] .
}
GROUP BY ?language
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". }
}
ORDER BY DESC(?lexemes)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?language"):::projected
v5("?languageUrl")
v2("?lexeme")
v4("?lexemes"):::projected
v4("?lexemesUrl")
a1((" "))
c4(["bd:serviceParam"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"dct:language"--> v3
v2 --"wdt:P5185"--> a1
bind1[/"count(?lexeme)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end
bind2[/"concat('#language/',substring(str(?language),'32^^xsd:integer'),'/grammaticalgender')"/]
v3 --o bind2
bind2 --as--o v4
bind3[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v3 --o bind3
bind3 --as--o v5