query-1c5ce82221aab001899c7c710efeec66

rq turtle/ttl

Getting all statements pointing to a specific item: panel from the wikidata resonatorFrom related itemsI want to query all Statments that have a specific entity as their value. Just like the and so on… (Q22898962)Template:Douglas Adams (P1423)template has topic (Q2473108)25924 Douglasadams (P138)named after (Q14473301)Tetramorium adamsi (P138)named after (Q3520623)The Digital Village (P112)founded by (Q285194)h2g2 (P112)founded by Referrer Property (Q42)Douglas Adams Related to 09:16, 20 September 2020 (UTC)) talk (Shismahow do I do that? --09:18, 20 September 2020 (UTC) Jura before the property. --- ^By adding 09:20, 20 September 2020 (UTC)) talk (ShismaI don't know the property at this point. --

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?prop ?propLabel ?item ?itemLabel ?itemDescription
WHERE
{


{
  SELECT *
  WHERE 
  {
    ?item ?wdt wd:Q42 .
    ?prop wikibase:directClaim ?wdt .
  } 
}  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; v1("?item"):::projected v3("?prop"):::projected v2("?wdt") c4(["bd:serviceParam"]):::iri c1(["wd:Q42"]):::iri c6(["#91;AUTO_LANGUAGE#93;,en"]):::literal v1 -->v2--> c1 v3 --"wikibase:directClaim"--> v2 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c4 --"wikibase:language"--> c6 end