query-3ff072299def4a4f125e127dfb6a11f7
Propertiesinstance of (P31)subclass of (P279)characters (P674)
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 ps: <http://www.wikidata.org/prop/statement/>
PREFIX bd: <http://www.bigdata.com/rdf#>
SELECT ?work ?cm ?cmLabel WHERE {
?work ps:P674 ?cm .
FILTER NOT EXISTS {?cm wdt:P31/wdt:P279* wd:Q14897293} .
FILTER NOT EXISTS {?cm wdt:P31/wdt:P279* wd:Q21070598} .
FILTER NOT EXISTS {?cm wdt:P31/wdt:P279* wd:Q4271324} .
FILTER NOT EXISTS {?cm wdt:P31/wdt:P279* wd:Q5} .
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("?cm"):::projected
v2("?work"):::projected
a4((" "))
a3((" "))
a2((" "))
a1((" "))
c6(["wd:Q14897293"]):::iri
c9(["bd:serviceParam"]):::iri
c5(["wd:Q21070598"]):::iri
c3(["wd:Q5"]):::iri
c4(["wd:Q4271324"]):::iri
c11(["en"]):::literal
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0a1 --"wdt:P279"--> e0c3
e0v1("?cm"):::projected
e0a1((" ")):::projected
e0c3(["wd:Q5"]):::iri
end
f0--EXISTS--> f0e0
f0 --> v1
f0 --> c1
f0 --> a1
f0 --> c2
f0 --> c3
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
f1[["not "]]
subgraph f1e1["Exists Clause"]
e1v1 --"wdt:P31"--> e1a1
e1a1 --"wdt:P279"--> e1c3
e1v1("?cm"):::projected
e1a1((" ")):::projected
e1c3(["wd:Q4271324"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c1
f1 --> a2
f1 --> c2
f1 --> c4
v1 --"wdt:P31"--> a2
a2 --"wdt:P279"--> c4
f2[["not "]]
subgraph f2e2["Exists Clause"]
e2v1 --"wdt:P31"--> e2a1
e2a1 --"wdt:P279"--> e2c3
e2v1("?cm"):::projected
e2a1((" ")):::projected
e2c3(["wd:Q21070598"]):::iri
end
f2--EXISTS--> f2e2
f2 --> v1
f2 --> c1
f2 --> a3
f2 --> c2
f2 --> c5
v1 --"wdt:P31"--> a3
a3 --"wdt:P279"--> c5
f3[["not "]]
subgraph f3e3["Exists Clause"]
e3v1 --"wdt:P31"--> e3a1
e3a1 --"wdt:P279"--> e3c3
e3v1("?cm"):::projected
e3a1((" ")):::projected
e3c3(["wd:Q14897293"]):::iri
end
f3--EXISTS--> f3e3
f3 --> v1
f3 --> c1
f3 --> a4
f3 --> c2
f3 --> c6
v1 --"wdt:P31"--> a4
a4 --"wdt:P279"--> c6
v2 --"ps:P674"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end