query-90e6cff2735ca126ab11e601c723bd0e

rq turtle/ttl

Sense with explicitly specified no COR.SEM

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdno: <http://www.wikidata.org/prop/novalue/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
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 (?lemma AS ?lexemeLabel)
  (CONCAT("#lexeme/", SUBSTR(STR(?lexeme), 32)) AS ?lexemeUrl)

  ?lexical_category ?lexical_categoryLabel
  (CONCAT("#lexicalcategory/", SUBSTR(STR(?lexical_category), 32)) AS ?lexical_categoryUrl)
  # ?lexical_categoryDescription

  (?lexeme AS ?wikidata)
  (CONCAT(SUBSTR(STR(?lexeme), 32), "&nbsp;↗") AS ?wikidataLabel)
  (CONCAT("https://www.wikidata.org/wiki/Lexeme:", SUBSTR(STR(?lexeme), 32)) AS ?wikidataUrl)

  (?lexeme AS ?ordia)
  ("Ordia&nbsp;↗" AS ?ordiaLabel)
  (CONCAT("https://ordia.toolforge.org/", SUBSTR(STR(?lexeme), 32)) AS ?ordiaUrl)

WHERE {
  ?lexeme wikibase:lexicalCategory ?lexical_category ;
          wikibase:lemma ?lemma ;
          ontolex:sense ?sense .
  ?sense rdf:type wdno:P12202 .
  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; v1("?gloss"):::projected v4("?lemma"):::projected v2("?lexeme"):::projected v7("?lexemeLabel") v8("?lexemeUrl") v3("?lexical_category"):::projected v9("?lexical_categoryUrl") v13("?ordia") v14("?ordiaLabel") v15("?ordiaUrl") v5("?sense"):::projected v6("?senseLabel") v10("?wikidata") v11("?wikidataLabel") v12("?wikidataUrl") c9(["bd:serviceParam"]):::iri c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal c6(["wdno:P12202"]):::iri v2 --"wikibase:lexicalCategory"--> v3 v2 --"wikibase:lemma"--> v4 v2 --"ontolex:sense"--> v5 v5 --"a"--> c6 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; c9 --"wikibase:language"--> c11 end bind0[/"substring(str(?sense),'32^^xsd:integer')"/] v5 --o bind0 bind0 --as--o v6 bind1[/"?lemma"/] v4 --o bind1 bind1 --as--o v7 bind2[/"concat('#lexeme/',substring(str(?lexeme),'32^^xsd:integer'))"/] v2 --o bind2 bind2 --as--o v8 bind3[/"concat('#lexicalcategory/',substring(str(?lexical_category),'32^^xsd:integer'))"/] v3 --o bind3 bind3 --as--o v9 bind4[/"?lexeme"/] v2 --o bind4 bind4 --as--o v10 bind5[/"concat(substring(str(?lexeme),'32^^xsd:integer'),'&nbsp;↗')"/] v2 --o bind5 bind5 --as--o v11 bind6[/"concat('https://www.wikidata.org/wiki/Lexeme:',substring(str(?lexeme),'32^^xsd:integer'))"/] v2 --o bind6 bind6 --as--o v12 bind7[/"?lexeme"/] v2 --o bind7 bind7 --as--o v13 bind8[/"'Ordia&nbsp;↗'"/] bind8 --as--o v14 bind9[/"concat('https://ordia.toolforge.org/',substring(str(?lexeme),'32^^xsd:integer'))"/] v2 --o bind9 bind9 --as--o v15