query-3333bb1a569f4b4775ce6b5ac3a6b638
Checking where entities are referred Is there a better way to answer the question "Does this show up anywhere but as a statement qualifier?" than the query
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?sub ?uri WHERE {
?sub ?pred wd:Q58425066.
BIND(str(?sub) as ?uri)
FILTER ( !regex(?uri, '/entity/statement/') )
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;
v3("?pred")
v2("?sub"):::projected
v4("?uri"):::projected
c4(["bd:serviceParam"]):::iri
c2(["wd:Q58425066"]):::iri
c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["not regex(?uri,'/entity/statement/')"]]
f0 --> v4
v2 -->v3--> c2
bind1[/"str(?sub)"/]
v2 --o bind1
bind1 --as--o v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end