query-2ecb52da8b6225c2daed113eaddfb41b

rq turtle/ttl

Get a list of lexemes with sense that seems to be broken. this query: gave me TweetsFactsAndQueriesHello! Some months ago I made this request and @ Theklan

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/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?lexeme (GROUP_CONCAT(?lemma; separator = "/") AS ?lemmata) ?sampleSense (SAMPLE(?gloss) AS ?anyGloss)
WHERE {
   {
  SELECT ?lexeme (SAMPLE(?sense) AS ?sampleSense) WHERE {
    SERVICE bd:sample {
      ?lexeme dct:language wd:Q8752.
      bd:serviceParam bd:sample.limit 20 .
    }
    OPTIONAL { ?lexeme ontolex:sense ?sense. }
  }
  GROUP BY ?lexeme
}
  ?lexeme wikibase:lemma ?lemma.
  OPTIONAL { ?sampleSense skos:definition ?gloss. }
}
GROUP BY ?lexeme ?sampleSense

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v7("?anyGloss") v5("?gloss"):::projected v4("?lemma"):::projected v6("?lemmata") v1("?lexeme"):::projected v3("?sampleSense"):::projected v2("?sense") c3(["wd:Q8752"]):::iri c4(["bd:serviceParam"]):::iri c6(["20^^xsd:integer"]):::literal subgraph s1["http://www.bigdata.com/rdf#sample"] style s1 stroke-width:4px; v1 --"dct:language"--> c3 c4 --"bd:sample.limit"--> c6 end subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v1 -."ontolex:sense".-> v2 end bind1[/"sample(?sense)"/] v2 --o bind1 bind1 --as--o v3 v1 --"wikibase:lemma"--> v4 subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; v3 -."skos:definition".-> v5 end bind4[/"?lemma"/] v4 --o bind4 bind4 --as--o v6 bind5[/"sample(?gloss)"/] v5 --o bind5 bind5 --as--o v7