query-010010f135475e60db97881fec7c839e
TODO
Use at
- https://query.wikidata.org/sparql
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#>
SELECT ?painting ?paintingLabel ?creator ?creatorLabel
{
?painting wdt:P31 wd:Q3305213 .
?painting wdt:P170 ?creator .
# not human
filter not exists {?creator wdt:P31 wd:Q5 .} .
# not artist collective
filter not exists {?creator wdt:P31 wd:Q1400264 .} .
# anonymous is OK
filter (?creator != wd:Q4233718) .
SERVICE wikibase:label {
bd:serviceParam wikibase:language "en" .} .
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v1("?creator"):::projected
v2("?painting"):::projected
c5(["wd:Q3305213"]):::iri
c8(["bd:serviceParam"]):::iri
c4(["wd:Q5"]):::iri
c10(["en"]):::literal
c3(["wd:Q1400264"]):::iri
f0[["?creator != 'wd:Q4233718'"]]
f0 --> v1
f1[["not "]]
subgraph f1e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0c2
e0v1("?creator"):::projected
e0c2(["wd:Q1400264"]):::iri
end
f1--EXISTS--> f1e0
f1 --> v1
f1 --> c2
f1 --> c3
v1 --"wdt:P31"--> c3
f2[["not "]]
subgraph f2e1["Exists Clause"]
e1v1 --"wdt:P31"--> e1c2
e1v1("?creator"):::projected
e1c2(["wd:Q5"]):::iri
end
f2--EXISTS--> f2e1
f2 --> v1
f2 --> c2
f2 --> c4
v1 --"wdt:P31"--> c4
v2 --"wdt:P31"--> c5
v2 --"wdt:P170"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c8 --"wikibase:language"--> c10
end