query-0a3f88179e5df2a5b5b88a0feb5231db
Claims with item as value 14:20, 8 February 2016 (UTC)) talk (Jobu0101. --?item ?property wd:Q???????How do I list all items which have a claim with a certain item as value? Something like that: Pretty much as you wrote:
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 ?item ?itemLabel ?prop ?propLabel WHERE {
?prop wikibase:directClaim ?wt_prop .
?item ?wt_prop wd:Q1744
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .
}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?item"):::projected
v1("?prop"):::projected
v2("?wt_prop")
c2(["wd:Q1744"]):::iri
c4(["bd:serviceParam"]):::iri
c6(["en"]):::literal
v1 --"wikibase:directClaim"--> v2
v3 -->v2--> c2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c4 --"wikibase:language"--> c6
end