query-a789c5a92da00b08bc2884f34ff2b2f0
Lexical categories(Q4833830)preposition (Q380057)adverb (Q147276)proper noun (Q24905)verb (Q34698)adjective (Q1084)noun
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?lexCat ?lexCatLabel (COUNT(?lexeme) AS ?count) WHERE {
?lexeme dct:language wd:Q150 ; wikibase:lexicalCategory ?lexCat .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
GROUP BY ?lexCat ?lexCatLabel
ORDER BY DESC(COUNT(?lexeme))
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?_anon_42b5416610844a34809f33a099ae9de191286")
v4("?count")
v2("?lexCat"):::projected
v1("?lexeme"):::projected
a1((" "))
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
c2(["wd:Q150"]):::iri
v1 --"dct:language"--> c2
v1 --"wikibase:lexicalCategory"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end
bind2[/"count(?lexeme)"/]
v1 --o bind2
bind2 --as--o v3
bind3[/"count(?lexeme)"/]
v1 --o bind3
bind3 --as--o v4