query-7a4c9cf39bcdce4765fb154ac082a896

rq turtle/ttl

Get all property-qualifier-target combinations that use a particular qualifier

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT DISTINCT ?property ?propertyLabel ?asObject ?asObjectLabel
WHERE
{
  ?prop pq:P794 ?asObject .

  ?item ?p ?prop . 
  ?property wikibase:claim ?p .  
  ?property wikibase:statementProperty ?ps .
  ?prop ?ps ?value .      
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en"  }    
}
ORDER BY ASC(?propertyLabel) 
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?asObject"):::projected v4("?item") v5("?p") v2("?prop") v6("?property"):::projected v1("?propertyLabel"):::projected v7("?ps") v8("?value") c5(["bd:serviceParam"]):::iri c7(["en"]):::literal v2 --"pq:P794"--> v3 v4 -->v5--> v2 v6 --"wikibase:claim"--> v5 v6 --"wikibase:statementProperty"--> v7 v2 -->v7--> v8 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end