query-6fe93464cb7ceef847f085fd472363cb
Commonscat no image 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 WHERE {
{ ?item wdt:P373 [] } UNION { ?item ^schema:about/schema:isPartOf <https://commons.wikimedia.org/> } .
MINUS { ?item wdt:P18 [] } .
MINUS { ?item wdt:P31 wd:Q4167836 } .
} LIMIT 2000
Query found at
- https://www.wikidata.org/wiki/User:GPSLeo/notes
- https://www.wikidata.org/wiki/Wikidata:Request_a_query/Archive/2019/05
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?item"):::projected
a1((" "))
a3((" "))
a2((" "))
c4([https://commons.wikimedia.org/]):::iri
c7(["wd:Q4167836"]):::iri
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
a2 --"schema:about"--> v1
a2 --"schema:isPartOf"--> c4
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P373"--> a1
end
union0r <== or ==> union0l
end
subgraph minus0["MINUS"]
style minus0 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P18"--> a3
end
subgraph minus1["MINUS"]
style minus1 stroke-width:6px,fill:pink,stroke:red;
v1 --"wdt:P31"--> c7
end