query-9bf8eeefc490319ca66ddcfa5e6f49c9
title Different parts of speech in Russian lexemes, without nouns Select ?cat ?catLabel ?cnt ?lems where { {SELECT ?cat (count(*) as ?cnt) (GROUP_CONCAT(DISTINCT ?lem; SEPARATOR=", ") AS ?lems) WHERE { ?l http://purl.org/dc/terms/language wd:Q7737. ?l wikibase:lexicalCategory ?cat. MINUS { ?l wikibase:lexicalCategory wd:Q1084 } ?l wikibase:lemma ?lem. } group by ?cat}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru". } } ORDER BY DESC(?cnt)
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#title Different parts of speech in Russian lexemes, without nouns
Select ?cat ?catLabel ?cnt ?lems where {
{SELECT ?cat (count(*) as ?cnt) (GROUP_CONCAT(DISTINCT ?lem; SEPARATOR=", ") AS ?lems) WHERE {
?l <http://purl.org/dc/terms/language> wd:Q7737.
?l wikibase:lexicalCategory ?cat.
MINUS { ?l wikibase:lexicalCategory wd:Q1084 }
?l wikibase:lemma ?lem.
} group by ?cat}
SERVICE wikibase:label { bd:serviceParam wikibase:language "ru". }
}
ORDER BY DESC(?cnt)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?cat"):::projected
v5("?cnt"):::projected
v2("?l")
v4("?lem")
v5("?lems"):::projected
c7(["bd:serviceParam"]):::iri
c9(["ru"]):::literal
c4(["wd:Q1084"]):::iri
c2(["wd:Q7737"]):::iri
v2 --http://purl.org/dc/terms/language--> c2
v2 --"wikibase:lexicalCategory"--> v3
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v2 --"wikibase:lexicalCategory"--> c4
end
v2 --"wikibase:lemma"--> v4
bind3[/"count(*)"/]
bind3 --as--o v5
bind4[/"?lem"/]
v4 --o bind4
bind4 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c7 --"wikibase:language"--> c9
end