query-afad7150815177600053f4be40d89aaf
Lexemes per language
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q1084>
# Count of number of lexemes used for a specified lexical category
# wrt. language
SELECT
?count
(CONCAT("#lexicalcategory/", SUBSTR(STR(target:), 32), "/language/", SUBSTR(STR(?language), 32)) AS ?countUrl)
# (CONCAT("#language/", SUBSTR(STR(?language), 32), "/lexicalcategory/", SUBSTR(STR(target:), 32)) AS ?countUrl)
?language ?languageLabel
(CONCAT("#language/", SUBSTR(STR(?language), 32)) AS ?languageUrl)
?languageDescription
{
{
SELECT (COUNT(*) AS ?count) ?language {
[] wikibase:lexicalCategory target: ;
dct:language ?language .
}
GROUP BY ?language
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?count)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?count"):::projected
v3("?countUrl")
v2("?language"):::projected
v4("?languageUrl")
a1((" "))
c5(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q1084]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
a1 --"wikibase:lexicalCategory"--> c2
a1 --"dct:language"--> v2
bind1[/"count(*)"/]
bind1 --as--o v3
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"concat('#lexicalcategory/',substring(str(http://www.wikidata.org/entity/Q1084),'32^^xsd:integer'),'/language/',substring(str(?language),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v3
bind3[/"concat('#language/',substring(str(?language),'32^^xsd:integer'))"/]
v2 --o bind3
bind3 --as--o v4