query-fc8997f7dc858b6dfd329841971a904e
Lexemes
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
PREFIX target: <http://www.wikidata.org/entity/Q36484>
SELECT
?lexeme (?lemma AS ?lexemeLabel)
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
(CONCAT(?cor_lemma_, " ↗") AS ?cor_lemma)
(CONCAT("https://ordregister.dk/id/", ?cor_lemma_) AS ?cor_lemmaUrl)
?lexical_category ?lexical_categoryLabel
(CONCAT("#lexicalcategory/", SUBSTR(STR(?lexical_category), 32)) AS ?lexical_categoryUrl)
# ?lexical_categoryDescription
(?lexeme AS ?wikidata)
(CONCAT(SUBSTR(STR(?lexeme), 32), " ↗") AS ?wikidataLabel)
(CONCAT("https://www.wikidata.org/wiki/Lexeme:", SUBSTR(STR(?lexeme), 32)) AS ?wikidataUrl)
(?lexeme AS ?ordia)
("Ordia ↗" AS ?ordiaLabel)
(CONCAT("https://ordia.toolforge.org/", SUBSTR(STR(?lexeme), 32)) AS ?ordiaUrl)
WHERE {
BIND(target: AS ?lexical_category)
?lexeme wikibase:lexicalCategory target: ;
wikibase:lemma ?lemma ;
wdt:P10831 ?cor_lemma_ .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v7("?cor_lemma")
v8("?cor_lemmaUrl")
v4("?cor_lemma_"):::projected
v3("?lemma"):::projected
v2("?lexeme"):::projected
v5("?lexemeLabel")
v6("?lexemeUrl")
v1("?lexical_category"):::projected
v9("?lexical_categoryUrl")
v13("?ordia")
v14("?ordiaLabel")
v15("?ordiaUrl")
v10("?wikidata")
v11("?wikidataLabel")
v12("?wikidataUrl")
c6(["bd:serviceParam"]):::iri
c2([http://www.wikidata.org/entity/Q36484]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
bind0[/"http://www.wikidata.org/entity/Q36484"/]
bind0 --as--o v1
v2 --"wikibase:lexicalCategory"--> c2
v2 --"wikibase:lemma"--> v3
v2 --"wdt:P10831"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end
bind1[/"?lemma"/]
v3 --o bind1
bind1 --as--o v5
bind2[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v2 --o bind2
bind2 --as--o v6
bind3[/"concat(?cor_lemma_,' ↗')"/]
v4 --o bind3
bind3 --as--o v7
bind4[/"concat('https://ordregister.dk/id/',?cor_lemma_)"/]
v4 --o bind4
bind4 --as--o v8
bind5[/"concat('#lexicalcategory/',substring(str(?lexical_category),'32^^xsd:integer'))"/]
v1 --o bind5
bind5 --as--o v9
bind6[/"?lexeme"/]
v2 --o bind6
bind6 --as--o v10
bind7[/"concat(substring(str(?lexeme),'32^^xsd:integer'),' ↗')"/]
v2 --o bind7
bind7 --as--o v11
bind8[/"concat('https://www.wikidata.org/wiki/Lexeme:',substring(str(?lexeme),'32^^xsd:integer'))"/]
v2 --o bind8
bind8 --as--o v12
bind9[/"?lexeme"/]
v2 --o bind9
bind9 --as--o v13
bind10[/"'Ordia ↗'"/]
bind10 --as--o v14
bind11[/"concat('https://ordia.toolforge.org/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v2 --o bind11
bind11 --as--o v15