query-c3437bf349724b2faa421e4ac501d197

rq turtle/ttl

self-portraits / autoportrety

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX ps: <http://www.wikidata.org/prop/statement/>
PREFIX pq: <http://www.wikidata.org/prop/qualifier/>
PREFIX p: <http://www.wikidata.org/prop/>
SELECT ?item ?KDM ?Lpl ?img WHERE { 
  ?item wdt:P170 wd:Q381238 . 
  ?item wdt:P136 wd:Q192110  . 
  OPTIONAL {
   ?item rdfs:label ?Lpl 
   FILTER((LANG(?Lpl)) = "pl")
  }
   optional{ ?item p:P528 [ pq:P972 wd:Q106425660; ps:P528 ?KDM] . }
   optional{ ?item wdt:P18 ?img. }
  minus{ ?item wdt:P31 wd:Q125191 }
} order by ?KDM

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?KDM"):::projected v2("?Lpl"):::projected v4("?img"):::projected v3("?item"):::projected a1((" ")) c13(["wd:Q125191"]):::iri c3(["wd:Q381238"]):::iri c5(["wd:Q192110"]):::iri c8(["wd:Q106425660"]):::iri v3 --"p:direct/P170"--> c3 v3 --"p:direct/P136"--> c5 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v3 -."rdfs:label".-> v2 end subgraph optional1["(optional)"] style optional1 fill:#bbf,stroke-dasharray: 5 5; a1 -."p:qualifier/P972".-> c8 a1 --"p:statement/P528"--> v1 v3 --"p:P528"--> a1 end subgraph optional2["(optional)"] style optional2 fill:#bbf,stroke-dasharray: 5 5; v3 -."p:direct/P18".-> v4 end subgraph minus0["MINUS"] style minus0 stroke-width:6px,fill:pink,stroke:red; v3 --"p:direct/P31"--> c13 end