query-04355097d73673f5f23c7a0cece9465b
Marxism concepts (work in progress)
Use at
- https://query.wikidata.org/sparql
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX wd: <http://www.wikidata.org/entity/>
SELECT ?item WHERE {
#?item wdt:P31 ?instance .
#VALUES ?instance {
# wd:Q151885
# wd:Q33104069
# wd:Q7257
# wd:Q12909644
# wd:Q1401304
#}
{
?item wdt:P361 ?current .
VALUES ?current {
wd:Q7272
wd:Q7264
wd:Q211930
wd:Q18127879
wd:Q167651
wd:Q181133
wd:Q6186
}
} UNION {
?item wdt:P135 ?movement .
VALUES ?movement {
wd:Q7272
wd:Q7264
wd:Q211930
wd:Q18127879
wd:Q167651
wd:Q181133
wd:Q6186
}
}
FILTER (NOT EXISTS { ?item wdt:P31 wd:Q5 })
FILTER (NOT EXISTS { ?item wdt:P31/wdt:P279* wd:Q43229 })
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?current")
v1("?item"):::projected
v4("?movement")
a1((" "))
c4(["wd:Q5"]):::iri
c3(["wd:Q43229"]):::iri
f0[["not "]]
subgraph f0e0["Exists Clause"]
e0v1 --"wdt:P31"--> e0a1
e0a1 --"wdt:P279"--> e0c3
e0v1("?item"):::projected
e0a1((" ")):::projected
e0c3(["wd:Q43229"]):::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"--> e1c2
e1v1("?item"):::projected
e1c2(["wd:Q5"]):::iri
end
f1--EXISTS--> f1e1
f1 --> v1
f1 --> c1
f1 --> c4
v1 --"wdt:P31"--> c4
subgraph union0[" Union "]
subgraph union0l[" "]
style union0l fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P135"--> v4
bind2[/VALUES ?movement/]
bind2-->v4
bind20(["wd:Q7272"])
bind20 --> bind2
bind21(["wd:Q7264"])
bind21 --> bind2
bind22(["wd:Q211930"])
bind22 --> bind2
bind23(["wd:Q18127879"])
bind23 --> bind2
bind24(["wd:Q167651"])
bind24 --> bind2
bind25(["wd:Q181133"])
bind25 --> bind2
bind26(["wd:Q6186"])
bind26 --> bind2
end
subgraph union0r[" "]
style union0r fill:#abf,stroke-dasharray: 3 3;
v1 --"wdt:P361"--> v3
bind3[/VALUES ?current/]
bind3-->v3
bind30(["wd:Q7272"])
bind30 --> bind3
bind31(["wd:Q7264"])
bind31 --> bind3
bind32(["wd:Q211930"])
bind32 --> bind3
bind33(["wd:Q18127879"])
bind33 --> bind3
bind34(["wd:Q167651"])
bind34 --> bind3
bind35(["wd:Q181133"])
bind35 --> bind3
bind36(["wd:Q6186"])
bind36 --> bind3
end
union0r <== or ==> union0l
end