query-7525873d15a40d6a45c6c5a71c2fe62c
Wikidata storytelling: Cunningham's Law and Godwin's Law
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 rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
#defaultView:Graph
SELECT ?item1 ?image ?item1Label ?item2 ?image2 ?item2Label ?edgeLabel
WHERE {
{ SELECT ?item1 WHERE {
VALUES ?item1 {wd:Q154619 wd:Q2071976 wd:Q7637 wd:Q83 wd:Q171 wd:Q28778432 wd:Q180 wd:Q6686945}
} }
{SELECT (?item1 AS ?item2) WHERE { { SELECT ?item1 WHERE {
VALUES ?item1 {wd:Q154619 wd:Q2071976 wd:Q7637 wd:Q83 wd:Q171 wd:Q28778432 wd:Q180 wd:Q6686945}
} }} }?item1 ?prop ?item2.
?edge ?dummy ?prop ; rdf:type wikibase:Property
OPTIONAL {?item1 wdt:P18 ?image}
OPTIONAL {?item2 wdt:P18 ?image2}
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v5("?dummy")
v4("?edge")
v6("?image"):::projected
v7("?image2"):::projected
v2("?item1"):::projected
v2("?item2"):::projected
v3("?prop")
c2(["wikibase:Property"]):::iri
bind0[/VALUES ?item1/]
bind0-->v2
bind00(["wd:Q154619"])
bind00 --> bind0
bind01(["wd:Q2071976"])
bind01 --> bind0
bind02(["wd:Q7637"])
bind02 --> bind0
bind03(["wd:Q83"])
bind03 --> bind0
bind04(["wd:Q171"])
bind04 --> bind0
bind05(["wd:Q28778432"])
bind05 --> bind0
bind06(["wd:Q180"])
bind06 --> bind0
bind07(["wd:Q6686945"])
bind07 --> bind0
bind1[/VALUES ?item1/]
bind1-->v2
bind10(["wd:Q154619"])
bind10 --> bind1
bind11(["wd:Q2071976"])
bind11 --> bind1
bind12(["wd:Q7637"])
bind12 --> bind1
bind13(["wd:Q83"])
bind13 --> bind1
bind14(["wd:Q171"])
bind14 --> bind1
bind15(["wd:Q28778432"])
bind15 --> bind1
bind16(["wd:Q180"])
bind16 --> bind1
bind17(["wd:Q6686945"])
bind17 --> bind1
bind2[/"?item1"/]
v2 --o bind2
bind2 --as--o v2
v2 -->v3--> v2
v4 -->v5--> v3
v4 --"a"--> c2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v6
end
subgraph optional1["(optional)"]
style optional1 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P18".-> v7
end