query-65dcdaec16243b3edcc800b249311b49

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?image ?depicts ?caption #(LANG(?caption) AS ?lang)
{
  ?item p:P18 [ wikibase:rank ?rank; ps:P18 ?image;
    pq:P180 ?depicts; pq:P2096 ?caption ] .
  FILTER( LANG( ?caption ) = 'ca' ) .
  #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("?caption"):::projected v4("?depicts"):::projected v3("?image"):::projected v5("?item"):::projected v2("?rank") a1((" ")) f0[["?caption = 'ca'"]] f0 --> v1 a1 --"wikibase:rank"--> v2 a1 --"p:statement/P18"--> v3 a1 --"p:qualifier/P180"--> v4 a1 --"p:qualifier/P2096"--> v1 v5 --"p:P18"--> a1