query-30dd044920a3d3cd740942e52154e0d6
Lexemes
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
PREFIX target: <http://www.wikidata.org/entity/Q9035>
SELECT
(SAMPLE(?forms_) AS ?forms)
?lexeme
(GROUP_CONCAT(?lemma; separator=", ") AS ?lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
("Ordia ↗" AS ?ordia)
(CONCAT("https://ordia.toolforge.org/", SUBSTR(STR(?lexeme), 32)) AS ?ordiaUrl)
WHERE {
{
SELECT
(COUNT(*) AS ?forms_)
?lexeme
WHERE {
?lexeme dct:language target: ;
ontolex:lexicalForm [] .
}
GROUP BY ?lexeme
ORDER BY DESC(?forms_)
LIMIT 500
} ?lexeme wikibase:lemma ?lemma ;
}
GROUP BY ?lexeme
ORDER BY DESC(?forms)
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?forms")
v4("?forms_"):::projected
v4("?lemma"):::projected
v3("?lexeme"):::projected
v5("?lexemeLabel")
v6("?lexemeUrl")
v7("?ordia")
v8("?ordiaUrl")
a1((" "))
c2([http://www.wikidata.org/entity/Q9035]):::iri
v3 --"dct:language"--> c2
v3 --"ontolex:lexicalForm"--> a1
bind1[/"count(*)"/]
bind1 --as--o v4
v3 --"wikibase:lemma"--> v4
bind4[/"sample(?forms_)"/]
v4 --o bind4
bind4 --as--o v5
bind5[/"?lemma"/]
v4 --o bind5
bind5 --as--o v5
bind6[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v3 --o bind6
bind6 --as--o v6
bind7[/"'Ordia ↗'"/]
bind7 --as--o v7
bind8[/"concat('https://ordia.toolforge.org/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v3 --o bind8
bind8 --as--o v8