query-76908f2502e89b8f3913546b11baf3c4
Lexeme senses
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT
?sense
(SUBSTR(STR(?sense), 32) AS ?senseLabel)
?gloss
?lexeme ?lexemeLabel
(CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)
?lexical_category ?lexical_categoryLabel
?corsem
(CONCAT(?corsem, " ↗") AS ?corsemLabel)
(CONCAT("https://ordregister.dk/id/", ?corsem) AS ?corsemUrl)
WHERE {
?lexeme wikibase:lemma ?lexemeLabel ;
wikibase:lexicalCategory ?lexical_category;
ontolex:sense ?sense .
?sense wdt:P12202 ?corsem .
OPTIONAL {
?sense skos:definition ?gloss .
FILTER (LANG(?gloss) = "da")
}
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;
v6("?corsem"):::projected
v9("?corsemLabel")
v10("?corsemUrl")
v1("?gloss"):::projected
v2("?lexeme"):::projected
v3("?lexemeLabel"):::projected
v8("?lexemeUrl")
v4("?lexical_category"):::projected
v5("?sense"):::projected
v7("?senseLabel")
c8(["bd:serviceParam"]):::iri
c10(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v2 --"wikibase:lemma"--> v3
v2 --"wikibase:lexicalCategory"--> v4
v2 --"ontolex:sense"--> v5
v5 --"wdt:P12202"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v5 -."skos:definition".-> v1
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end
bind0[/"substring(str(?sense),'32^^xsd:integer')"/]
v5 --o bind0
bind0 --as--o v7
bind1[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/]
v2 --o bind1
bind1 --as--o v8
bind2[/"concat(?corsem,' ↗')"/]
v6 --o bind2
bind2 --as--o v9
bind3[/"concat('https://ordregister.dk/id/',?corsem)"/]
v6 --o bind3
bind3 --as--o v10