query-03aec44cf2f5decc0d3e357edf91993b
Everything query
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
WHERE {
{ SELECT ?item1 WHERE {
VALUES ?item1 {
#People
wd:Q49961
wd:Q118190251
#Manors
wd:Q105790135 #Camberwell Manor
wd:Q105776206 #Hatcham Barn Manor
wd:Q105788137 #Dulwich Manor
wd:Q105796944 #Lambeth Manor
wd:Q105784643 #Croydon Manor
wd:Q105782382 #Lewisham Manor
wd:Q105785755 #Beckenham Manor
wd:Q105790055 #Hatcham Manor
#The woods
wd:Q1231487 #Great North Wood
wd:Q48699807 #Spa Wood
wd:Q4877512 #Beaulieu Heights
wd:Q5595750 #Grangewood Park
wd:Q116453252 #Stambourne Woods
#Flora
wd:Q158513 #Hornbeam
wd:Q61105 #Cedar of Lebanon
wd:Q623489 #Atlas Cedar
wd:Q44789 #Mulberry
wd:Q159570 #Tree of heaven
}
} }
{SELECT (?item1 AS ?item2) WHERE { { SELECT ?item1 WHERE {
VALUES ?item1 {
#People
wd:Q49961
wd:Q118190251
#Manors
wd:Q105790135 #Camberwell Manor
wd:Q105776206 #Hatcham Barn Manor
wd:Q105788137 #Dulwich Manor
wd:Q105796944 #Lambeth Manor
wd:Q105784643 #Croydon Manor
wd:Q105782382 #Lewisham Manor
wd:Q105785755 #Beckenham Manor
wd:Q105790055 #Hatcham Manor
#The woods
wd:Q1231487 #Great North Wood
wd:Q48699807 #Spa Wood
wd:Q4877512 #Beaulieu Heights
wd:Q5595750 #Grangewood Park
wd:Q116453252 #Stambourne Woods
#Flora
wd:Q158513 #Hornbeam
wd:Q61105 #Cedar of Lebanon
wd:Q623489 #Atlas Cedar
wd:Q44789 #Mulberry
wd:Q159570 #Tree of heaven
}
} }} }?item1 ?prop ?item2.
?edge ?dummy ?prop ; rdf:type wikibase:Property
OPTIONAL {?item1 wdt:P18 ?image}
OPTIONAL {?item2 wdt:P18 ?image2}
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
v3("?prop")
c5(["bd:serviceParam"]):::iri
c2(["wikibase:Property"]):::iri
c7(["en"]):::literal
bind0[/VALUES ?item1/]
bind0-->v2
bind00(["wd:Q49961"])
bind00 --> bind0
bind01(["wd:Q118190251"])
bind01 --> bind0
bind02(["wd:Q105790135"])
bind02 --> bind0
bind03(["wd:Q105776206"])
bind03 --> bind0
bind04(["wd:Q105788137"])
bind04 --> bind0
bind05(["wd:Q105796944"])
bind05 --> bind0
bind06(["wd:Q105784643"])
bind06 --> bind0
bind07(["wd:Q105782382"])
bind07 --> bind0
bind08(["wd:Q105785755"])
bind08 --> bind0
bind09(["wd:Q105790055"])
bind09 --> bind0
bind010(["wd:Q1231487"])
bind010 --> bind0
bind011(["wd:Q48699807"])
bind011 --> bind0
bind012(["wd:Q4877512"])
bind012 --> bind0
bind013(["wd:Q5595750"])
bind013 --> bind0
bind014(["wd:Q116453252"])
bind014 --> bind0
bind015(["wd:Q158513"])
bind015 --> bind0
bind016(["wd:Q61105"])
bind016 --> bind0
bind017(["wd:Q623489"])
bind017 --> bind0
bind018(["wd:Q44789"])
bind018 --> bind0
bind019(["wd:Q159570"])
bind019 --> bind0
bind1[/VALUES ?item1/]
bind1-->v2
bind10(["wd:Q49961"])
bind10 --> bind1
bind11(["wd:Q118190251"])
bind11 --> bind1
bind12(["wd:Q105790135"])
bind12 --> bind1
bind13(["wd:Q105776206"])
bind13 --> bind1
bind14(["wd:Q105788137"])
bind14 --> bind1
bind15(["wd:Q105796944"])
bind15 --> bind1
bind16(["wd:Q105784643"])
bind16 --> bind1
bind17(["wd:Q105782382"])
bind17 --> bind1
bind18(["wd:Q105785755"])
bind18 --> bind1
bind19(["wd:Q105790055"])
bind19 --> bind1
bind110(["wd:Q1231487"])
bind110 --> bind1
bind111(["wd:Q48699807"])
bind111 --> bind1
bind112(["wd:Q4877512"])
bind112 --> bind1
bind113(["wd:Q5595750"])
bind113 --> bind1
bind114(["wd:Q116453252"])
bind114 --> bind1
bind115(["wd:Q158513"])
bind115 --> bind1
bind116(["wd:Q61105"])
bind116 --> bind1
bind117(["wd:Q623489"])
bind117 --> bind1
bind118(["wd:Q44789"])
bind118 --> bind1
bind119(["wd:Q159570"])
bind119 --> 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 s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end