query-9a0a8427adb80da99dca6fbcc79c51af
Some Sutras/Thangkas connections
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#>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Graph
SELECT ?item1 ?image ?item1Label ?item2 ?image2 ?item2Label ?edgeLabel ?logo2Label
WHERE {
{ SELECT ?item1 WHERE {
VALUES ?item1 {wd:Q111171184 wd:Q111170960 wd:Q111171497 wd:Q178885 wd:746709 wd:Q1628487 wd:Q916651 wd:Q213322 wd:Q10475001 wd:Q5849500 wd:Q29520 wd:Q17269 wd:Q9441
wd:Q916651 wd:Q83562042 wd:Q111141400 wd:Q110936104 wd:Q3754962 wd:Q112063538 wd:Q178149 wd:Q209680 wd:Q7650112 wd:Q160236 wd:Q17 wd:Q42063 wd:Q1348317 wd:Q746709} #list of things depicted and connected, deities, museums, countries etc
} }
{SELECT (?item1 AS ?item2) WHERE { { SELECT ?item1 WHERE {
VALUES ?item1 {wd:Q111171184 wd:Q111170960 wd:Q111171497 wd:Q178885 wd:746709 wd:Q1628487 wd:Q916651 wd:Q213322 wd:Q10475001 wd:Q5849500 wd:Q29520 wd:Q17269 wd:Q9441
wd:Q916651 wd:Q83562042 wd:Q111141400 wd:Q110936104 wd:Q3754962 wd:Q112063538 wd:Q178149 wd:Q209680 wd:Q7650112 wd:Q160236 wd:Q17 wd:Q42063 wd:Q1348317 wd:Q746709} #list of things depicted and connected, deities, museums, countries etc
} }} }?item1 ?prop ?item2.
?edge ?dummy ?prop ; rdf:type wikibase:Property
OPTIONAL {?item1 wdt:P18 ?image}
OPTIONAL {?item2 wdt:P18 ?image2}
OPTIONAL {?item2 wdt:P154 ?logo2}
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;
v5("?dummy")
v4("?edge")
v6("?image"):::projected
v7("?image2"):::projected
v2("?item1"):::projected
v2("?item2"):::projected
v8("?logo2")
v3("?prop")
c6(["bd:serviceParam"]):::iri
c2(["wikibase:Property"]):::iri
c8(["en"]):::literal
bind0[/VALUES ?item1/]
bind0-->v2
bind00(["wd:Q111171184"])
bind00 --> bind0
bind01(["wd:Q111170960"])
bind01 --> bind0
bind02(["wd:Q111171497"])
bind02 --> bind0
bind03(["wd:Q178885"])
bind03 --> bind0
bind04(["wd:746709"])
bind04 --> bind0
bind05(["wd:Q1628487"])
bind05 --> bind0
bind06(["wd:Q916651"])
bind06 --> bind0
bind07(["wd:Q213322"])
bind07 --> bind0
bind08(["wd:Q10475001"])
bind08 --> bind0
bind09(["wd:Q5849500"])
bind09 --> bind0
bind010(["wd:Q29520"])
bind010 --> bind0
bind011(["wd:Q17269"])
bind011 --> bind0
bind012(["wd:Q9441"])
bind012 --> bind0
bind013(["wd:Q916651"])
bind013 --> bind0
bind014(["wd:Q83562042"])
bind014 --> bind0
bind015(["wd:Q111141400"])
bind015 --> bind0
bind016(["wd:Q110936104"])
bind016 --> bind0
bind017(["wd:Q3754962"])
bind017 --> bind0
bind018(["wd:Q112063538"])
bind018 --> bind0
bind019(["wd:Q178149"])
bind019 --> bind0
bind020(["wd:Q209680"])
bind020 --> bind0
bind021(["wd:Q7650112"])
bind021 --> bind0
bind022(["wd:Q160236"])
bind022 --> bind0
bind023(["wd:Q17"])
bind023 --> bind0
bind024(["wd:Q42063"])
bind024 --> bind0
bind025(["wd:Q1348317"])
bind025 --> bind0
bind026(["wd:Q746709"])
bind026 --> bind0
bind1[/VALUES ?item1/]
bind1-->v2
bind10(["wd:Q111171184"])
bind10 --> bind1
bind11(["wd:Q111170960"])
bind11 --> bind1
bind12(["wd:Q111171497"])
bind12 --> bind1
bind13(["wd:Q178885"])
bind13 --> bind1
bind14(["wd:746709"])
bind14 --> bind1
bind15(["wd:Q1628487"])
bind15 --> bind1
bind16(["wd:Q916651"])
bind16 --> bind1
bind17(["wd:Q213322"])
bind17 --> bind1
bind18(["wd:Q10475001"])
bind18 --> bind1
bind19(["wd:Q5849500"])
bind19 --> bind1
bind110(["wd:Q29520"])
bind110 --> bind1
bind111(["wd:Q17269"])
bind111 --> bind1
bind112(["wd:Q9441"])
bind112 --> bind1
bind113(["wd:Q916651"])
bind113 --> bind1
bind114(["wd:Q83562042"])
bind114 --> bind1
bind115(["wd:Q111141400"])
bind115 --> bind1
bind116(["wd:Q110936104"])
bind116 --> bind1
bind117(["wd:Q3754962"])
bind117 --> bind1
bind118(["wd:Q112063538"])
bind118 --> bind1
bind119(["wd:Q178149"])
bind119 --> bind1
bind120(["wd:Q209680"])
bind120 --> bind1
bind121(["wd:Q7650112"])
bind121 --> bind1
bind122(["wd:Q160236"])
bind122 --> bind1
bind123(["wd:Q17"])
bind123 --> bind1
bind124(["wd:Q42063"])
bind124 --> bind1
bind125(["wd:Q1348317"])
bind125 --> bind1
bind126(["wd:Q746709"])
bind126 --> 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
subgraph optional2["(optional)"]
style optional2 fill:#bbf,stroke-dasharray: 5 5;
v2 -."wdt:P154".-> v8
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end