query-ecae372e6f5556e1f3e2fbf155172da5

rq turtle/ttl

title:Senses on Turkish noun lexemes, showing their English glosses if they exist and an empty string otherwise SELECT ?lexeme ?sense ?gloss { ?lexeme dct:language wd:Q256 . ?lexeme wikibase:lexicalCategory wd:Q1084 . ?lexeme ontolex:sense ?sense . OPTIONAL { ?sense skos:definition ?gloss . FILTER(LANG(?gloss)="en") } }

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX ontolex: <http://www.w3.org/ns/lemon/ontolex#>
PREFIX dct: <http://purl.org/dc/terms/>
#title:Senses on Turkish noun lexemes, showing their English glosses if they exist and an empty string otherwise
SELECT ?lexeme ?sense ?gloss {
    ?lexeme dct:language wd:Q256 .
    ?lexeme wikibase:lexicalCategory wd:Q1084 .
    ?lexeme ontolex:sense ?sense .
    OPTIONAL { ?sense skos:definition ?gloss .
               FILTER(LANG(?gloss)="en") }
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?gloss"):::projected v2("?lexeme"):::projected v3("?sense"):::projected c3(["wd:Q256"]):::iri c5(["wd:Q1084"]):::iri v2 --"dct:language"--> c3 v2 --"wikibase:lexicalCategory"--> c5 v2 --"ontolex:sense"--> v3 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:definition".-> v1 end