query-73481b063c3ec1e4b835dc6f1f95babf

rq turtle/ttl

TODO

Use at

PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?categoryitem ?commonscategory 


WHERE {
   { 
  SELECT ?item ?categoryitem WHERE {
    ?item wdt:P910 ?categoryitem . 
  } LIMIT 200000 OFFSET 0
}.
  ?commonscategory schema:about ?item . 
  ?commonscategory schema:isPartOf <https://commons.wikimedia.org/> . 
  FILTER (STRSTARTS(STR(?commonscategory), "https://commons.wikimedia.org/wiki/Category:")) . 
}

Query found at

graph TD classDef projected fill:lightgreen; classDef literal fill:orange; classDef iri fill:yellow; v3("?categoryitem"):::projected v1("?commonscategory"):::projected v2("?item"):::projected c5([https://commons.wikimedia.org/]):::iri f0[["starts-with(str(?commonscategory),'https://commons.wikimedia.org/wiki/Category:')"]] f0 --> v1 v2 --"wdt:P910"--> v3 v1 --"schema:about"--> v2 v1 --"schema:isPartOf"--> c5