query-9f74ce650db04bf04812b5fac712f2af
Most described lexemes for language
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/Q9035>
SELECT
?number_of_descriptors
?lexeme (?lemma AS ?lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
?example_descriptor ?example_descriptorLabel
(CONCAT("#lexemedescriptor/", SUBSTR(STR(?example_descriptor), 32)) AS ?example_descriptorUrl)
WHERE {
{
SELECT
?lexeme
(COUNT(?descriptor) AS ?number_of_descriptors)
(SAMPLE(?descriptor) AS ?example_descriptor)
WHERE {
?lexeme dct:language target: ;
wdt:P1343 ?descriptor .
}
GROUP BY ?lexeme
ORDER BY DESC(?number_of_descriptors)
LIMIT 200
} ?lexeme wikibase:lemma ?lemma
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?number_of_descriptors)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?descriptor")
v4("?example_descriptor"):::projected
v8("?example_descriptorUrl")
v5("?lemma"):::projected
v2("?lexeme"):::projected
v6("?lexemeLabel")
v7("?lexemeUrl")
v4("?number_of_descriptors"):::projected
c2([http://www.wikidata.org/entity/Q9035]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"dct:language"--> c2
v2 --"wdt:P1343"--> v3
bind2[/"count(?descriptor)"/]
v3 --o bind2
bind2 --as--o v4
bind3[/"sample(?descriptor)"/]
v3 --o bind3
bind3 --as--o v4
v2 --"wikibase:lemma"--> v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"?lemma"/]
v5 --o bind4
bind4 --as--o v6
bind5[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v2 --o bind5
bind5 --as--o v7
bind6[/"concat('#lexemedescriptor/',substring(str(?example_descriptor),'32^^xsd:integer'))"/]
v4 --o bind6
bind6 --as--o v8