query-21304d70487004feae65d6b44dbf6fc0

rq turtle/ttl

Query 3: retrieval, works with 200k items SELECT ?item ?itemLabel WITH { SELECT ?item WHERE { ?item wdt:P31 wd:Q5 OPTIONAL { ?item wdt:P21 ?dummy } FILTER(!bound(?dummy) ) } LIMIT 200000 # OFFSET 200000 LIMIT 60000 } as %i WHERE { INCLUDE %i SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" }
}

Use at

PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#Query 3: retrieval, works with 200k items
SELECT ?item ?itemLabel
WHERE
{

{
  SELECT ?item 
  WHERE
  {
    ?item wdt:P31 wd:Q5
    OPTIONAL { ?item wdt:P21 ?dummy } FILTER(!bound(?dummy) )
  }
  LIMIT 200000
  # OFFSET 200000 LIMIT 60000
}  SERVICE wikibase:label { bd:serviceParam wikibase:language "ru" }          
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v1("?dummy") v2("?item"):::projected c5(["bd:serviceParam"]):::iri c7(["ru"]):::literal c2(["wd:Q5"]):::iri f0[["not bound(?dummy)"]] f0 --> v1 v2 --"wdt:P31"--> c2 subgraph optional0["(optional)"] style optional0 fill:#bbf,stroke-dasharray: 5 5; v2 -."wdt:P21".-> v1 end subgraph s1["http://wikiba.se/ontology#label"] style s1 stroke-width:4px; c5 --"wikibase:language"--> c7 end