query-815c46e5958eb5a98617e21f73c419af

rq turtle/ttl

Format the url of a property valueI have this query : Sorry to ask this question. I have searched the examples and the archives but I find nothing.

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT DISTINCT ?item ?url WHERE 
{ 
  ?item wdt:P4606 [] . 
  ?item p:P4606 ?statement .
  ?statement ps:P4606 ?url .
  MINUS {?statement pq:P407 [] . } 
  }

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?item"):::projected v2("?statement") v3("?url"):::projected a1((" ")) a2((" ")) v1 --"p:direct/P4606"--> a1 v1 --"p:P4606"--> v2 v2 --"p:statement/P4606"--> v3 subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v2 --"p:qualifier/P407"--> a2 end