query-0038f4fb72dd0c60d3a5ec09d7fc7e0e
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#>
PREFIX target: <http://www.wikidata.org/entity/Q1305037>
SELECT
?lexemes
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32), "/grammaticalgender/", SUBSTR(STR(target:), 32)) AS ?languageUrl)
?languageDescription
WHERE {
{
SELECT
(COUNT(?lexeme) AS ?lexemes)
?language
WHERE {
?lexeme dct:language ?language ;
wdt:P5185 target: .
}
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
v4("?languageUrl")
v2("?lexeme")
v4("?lexemes"):::projected
c5(["bd:serviceParam"]):::iri
c3([http://www.wikidata.org/entity/Q1305037]):::iri
c7(["#91;AUTO_LANGUAGE#93;,mul,en"]):::literal
v2 --"dct:language"--> v3
v2 --"wdt:P5185"--> c3
bind1[/"count(?lexeme)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('#language/',substring(str(?language),'32^^xsd:integer'),'/grammaticalgender/',substring(str(http://www.wikidata.org/entity/Q1305037),'32^^xsd:integer'))"/]
v3 --o bind2
bind2 --as--o v4