query-5166eae96772a30c29f2ccbbafe9f8de
Propertiesfrom narrative universe (P1080)instance of (P31)subclass of (P279)
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 ?subject ?subjectLabel ?fu ?fuLabel WHERE {
?subject wdt:P1080 ?fu .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q196600} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q559618} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q9134} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q7058673} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q2475679} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q1667921} .
FILTER NOT EXISTS {?fu wdt:P31/wdt:P279* wd:Q277759} .
#
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("?fu"):::projected
v2("?subject"):::projected
a7((" "))
a6((" "))
a5((" "))
a4((" "))
a3((" "))
a2((" "))
a1((" "))
c5(["wd:Q2475679"]):::iri
c8(["wd:Q559618"]):::iri
c14(["en"]):::literal
c7(["wd:Q9134"]):::iri
c3(["wd:Q277759"]):::iri
c6(["wd:Q7058673"]):::iri
c12(["bd:serviceParam"]):::iri
c4(["wd:Q1667921"]):::iri
c9(["wd:Q196600"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0a1 --"wdt:P279"--> e0c3
e0v1("?fu"):::projected
e0a1((" ")):::projected
e0c3(["wd:Q277759"]):::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("?fu"):::projected
e1a1((" ")):::projected
e1c3(["wd:Q1667921"]):::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("?fu"):::projected
e2a1((" ")):::projected
e2c3(["wd:Q2475679"]):::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("?fu"):::projected
e3a1((" ")):::projected
e3c3(["wd:Q7058673"]):::iri
end
f3--EXISTS--> f3e3
f3 --> v1
f3 --> c1
f3 --> a4
f3 --> c2
f3 --> c6
v1 --"wdt:P31"--> a4
a4 --"wdt:P279"--> c6
f4[["not "]]
subgraph f4e4["Exists Clause"]
e4v1 --"wdt:P31"--> e4a1
e4a1 --"wdt:P279"--> e4c3
e4v1("?fu"):::projected
e4a1((" ")):::projected
e4c3(["wd:Q9134"]):::iri
end
f4--EXISTS--> f4e4
f4 --> v1
f4 --> c1
f4 --> a5
f4 --> c2
f4 --> c7
v1 --"wdt:P31"--> a5
a5 --"wdt:P279"--> c7
f5[["not "]]
subgraph f5e5["Exists Clause"]
e5v1 --"wdt:P31"--> e5a1
e5a1 --"wdt:P279"--> e5c3
e5v1("?fu"):::projected
e5a1((" ")):::projected
e5c3(["wd:Q559618"]):::iri
end
f5--EXISTS--> f5e5
f5 --> v1
f5 --> c1
f5 --> a6
f5 --> c2
f5 --> c8
v1 --"wdt:P31"--> a6
a6 --"wdt:P279"--> c8
f6[["not "]]
subgraph f6e6["Exists Clause"]
e6v1 --"wdt:P31"--> e6a1
e6a1 --"wdt:P279"--> e6c3
e6v1("?fu"):::projected
e6a1((" ")):::projected
e6c3(["wd:Q196600"]):::iri
end
f6--EXISTS--> f6e6
f6 --> v1
f6 --> c1
f6 --> a7
f6 --> c2
f6 --> c9
v1 --"wdt:P31"--> a7
a7 --"wdt:P279"--> c9
v2 --"wdt:P1080"--> v1
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c12 --"wikibase:language"--> c14
end