query-b5990d9e5286c3c7c0b711176aa7ea96
TODO
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
PREFIX schema: <http://schema.org/>
SELECT ?item ?cat {
  ?item schema:dateModified ?date .
  FILTER( NOW() - ?date < 1 ) . # modified during last 24 hours
  ?item ^schema:about [ schema:isPartOf <https://commons.wikimedia.org/>; schema:name ?sitelink ] .
  MINUS { ?item wdt:P373 [] } .
  MINUS { ?item wdt:P31 wd:Q4167410 } .
  MINUS { ?item wdt:P31 wd:Q4167836 } .
  FILTER( STRSTARTS( ?sitelink, 'Category:' ) ) .
  BIND( STRAFTER( ?sitelink, 'Category:' ) AS ?cat ) .
  MINUS { ?cat ^wdt:P373 [] } .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
  v4("?cat"):::projected 
  v2("?date")
  v3("?item"):::projected 
  v1("?sitelink")
  a2((" "))
  a3((" "))
  a1((" "))
  c10(["wd:Q4167410"]):::iri 
  c5([https://commons.wikimedia.org/]):::iri 
  c11(["wd:Q4167836"]):::iri 
  f0[["starts-with(?sitelink,'Category:')"]]
  f0 --> v1
  f1[["NOW() - ?date < '1^^xsd:integer'"]]
  f1 --> v2
  v3 --"schema:dateModified"-->  v2
  a1 --"schema:isPartOf"-->  c5
  a1 --"schema:name"-->  v1
  a1 --"schema:about"-->  v3
  subgraph minus2["MINUS"]
    style minus2 stroke-width:6px,fill:pink,stroke:red;
    v3 --"wdt:P373"-->  a2
  end
  subgraph minus3["MINUS"]
    style minus3 stroke-width:6px,fill:pink,stroke:red;
    v3 --"wdt:P31"-->  c10
  end
  subgraph minus4["MINUS"]
    style minus4 stroke-width:6px,fill:pink,stroke:red;
    v3 --"wdt:P31"-->  c11
  end
  bind5[/"substring-after(?sitelink,'Category:')"/]
  v1 --o bind5
  bind5 --as--o v4
  subgraph minus6["MINUS"]
    style minus6 stroke-width:6px,fill:pink,stroke:red;
    a3 --"wdt:P373"-->  v4
  end