query-75635f2aa8f22216d33412bc8ffa0795
Authors describing lexeme in the 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
?lexemes
?author ?authorLabel
(CONCAT("#author/", SUBSTR(STR(?author), 32)) AS ?authorUrl)
?authorDescription
?example_lexeme
(SUBSTR(STR(?example_lexeme), 32) AS ?example_lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?example_lexeme), 32)) AS ?example_lexemeUrl)
WHERE{
{
SELECT
(COUNT(?lexeme) AS ?lexemes)
?author
(SAMPLE(?lexeme) AS ?example_lexeme)
WHERE {
?lexeme wdt:P1343 ?descriptor ;
dct:language target: .
?descriptor wdt:P50 ?author
}
GROUP BY ?author
} SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
ORDER BY DESC(?lexemes)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v4("?author"):::projected
v6("?authorUrl")
v3("?descriptor")
v5("?example_lexeme"):::projected
v7("?example_lexemeLabel")
v8("?example_lexemeUrl")
v2("?lexeme")
v5("?lexemes"):::projected
c3([http://www.wikidata.org/entity/Q9035]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wdt:P1343"--> v3
v2 --"dct:language"--> c3
v3 --"wdt:P50"--> v4
bind2[/"count(?lexeme)"/]
v2 --o bind2
bind2 --as--o v5
bind3[/"sample(?lexeme)"/]
v2 --o bind3
bind3 --as--o v5
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind4[/"concat('#author/',substring(str(?author),'32^^xsd:integer'))"/]
v4 --o bind4
bind4 --as--o v6
bind5[/"substring(str(?example_lexeme),'32^^xsd:integer')"/]
v5 --o bind5
bind5 --as--o v7
bind6[/"concat('#lexeme/',substring(str(?example_lexeme),'32^^xsd:integer'))"/]
v5 --o bind6
bind6 --as--o v8