query-1e6575fa45b8d0d93dad8df2af5ca07d

rq turtle/ttl

TODO

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
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 bd: <http://www.bigdata.com/rdf#>
SELECT ?item ?label ?image WHERE {
  ?item (wdt:P31/wdt:P279*) wd:Q170409.
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "pl,en,ru".
    ?item rdfs:label ?label.
  }
  FILTER(NOT EXISTS { ?item wdt:P117 ?image. })
}
GROUP BY ?item ?label ?image
ORDER BY ?label
LIMIT 1000

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?image"):::projected v2("?item"):::projected v1("?label"):::projected a1((" ")) c4(["wd:Q170409"]):::iri c6(["bd:serviceParam"]):::iri c8(["pl,en,ru"]):::literal f0[["not "]] subgraph f0e0["Exists Clause"] e0v1 --"wdt:P117"--> e0v2 e0v2("?image"):::projected e0v1("?item"):::projected end f0--EXISTS--> f0e0 f0 --> v2 f0 --> c1 f0 --> v3 v2 --"wdt:P117"--> v3 v2 --"wdt:P31"--> a1 a1 --"wdt:P279"--> c4 subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c6 --"wikibase:language"--> c8 v2 --"rdfs:label"--> v1 end