query-2a82a9ea2052fe4f575c990dd53818d9
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 ?sitelink WHERE {
?item ^schema:about [ schema:isPartOf <https://commons.wikimedia.org/>; schema:name ?sitelink ] .
MINUS { ?item wdt:P373 [] } .
MINUS { ?item wdt:P31 wd:Q4167836 } .
FILTER( STRSTARTS( ?sitelink, 'Category:' ) ) .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?item"):::projected
v1("?sitelink"):::projected
a2((" "))
a1((" "))
c3([https://commons.wikimedia.org/]):::iri
c8(["wd:Q4167836"]):::iri
f0[["starts-with(?sitelink,'Category:')"]]
f0 --> v1
a1 --"schema:isPartOf"--> c3
a1 --"schema:name"--> v1
a1 --"schema:about"--> v2
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P373"--> a2
end
subgraph minus2["MINUS"]
style minus2 stroke-width:6px,fill:pink,stroke:red;
v2 --"wdt:P31"--> c8
end