query-81992fa1fb1302bd048bafdf362e8eb8

rq turtle/ttl

Incoming linksI want to detect whether an item is linked to by another item. I originally used:

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
            ?statement ?ps ?x .
            ?other ?p ?statement .
            ?prop wikibase:claim ?p .
            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 -->null--> v1 null -->null--> null null --"wikibase:claim"--> null bind2[/" "/] subgraph bind2e0["Exists Clause"] e0f0[["?other != ?x"]] e0f0 --> e0v1 e0f0 --> e0v2 e0v3 -->e0v4--> e0v2 e0v1 -->e0v5--> e0v3 e0v6 --"wikibase:claim"--> e0v5 e0v1("?other"):::projected e0v5("?p"):::projected e0v6("?prop"):::projected e0v4("?ps"):::projected e0v3("?statement"):::projected e0v2("?x"):::projected end bind2--EXISTS--> bind2e0 null --o bind2 v1 --o bind2 null --o bind2 null --o bind2 null --o bind2 null --o bind2 null --o bind2 bind2 --as--o v2