query-828d482fefd0549c52a71aadda106255

rq turtle/ttl

Unfortunately, while this works, the performance is terrible for items that have many inlinks. I have tried various alternatives. The best I have found so far is:

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT * WHERE {
        VALUES ?x { wd:Q42 }
              # N3: It fulfills a structural need, for example: it is needed to make statements made in other items more useful.
              BIND(EXISTS { # ?notability3_strong
                #hint:Query hint:optimizer "None" .
                ?property wikibase:directClaim ?p .
                #hint:Prior hint:runFirst true .
                ?other ?p ?x  .
                FILTER(?other != ?x)
              } AS ?notability3_strong)
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v2("?notability3_strong"):::projected v1("?x"):::projected bind0[/VALUES ?x/] bind0-->v1 bind00(["wd:Q42"]) bind00 --> bind0 f1[["?other != ?x"]] f1 --> null f1 --> v1 null --"wikibase:directClaim"--> null null -->null--> v1 bind2[/" "/] subgraph bind2e0["Exists Clause"] e0f0[["?other != ?x"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v3 --"wikibase:directClaim"--> e0v4 e0v1 -->e0v4--> e0v2 e0v1("?other"):::projected e0v4("?p"):::projected e0v3("?property"):::projected e0v2("?x"):::projected end bind2--EXISTS--> bind2e0 null --o bind2 v1 --o bind2 null --o bind2 null --o bind2 null --o bind2 bind2 --as--o v2