query-e3f5e2b0090870bb88d578b7792fc0da
TODO
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#>
#Manor estates of Shipley and Heaton and their connection to the Leviathan of Parsonstown and its depictions
#defaultView:Graph
SELECT ?item ?itemLabel ?ownerLabel ?work ?workLabel ?depictedLabel ?imageLabel ?ownerimageLabel ?workimageLabel #added a Label here
WHERE { ?item wdt:P31 wd:Q2116450 . #manor estates
?item wdt:P131 wd:Q22905 . #located in Bradford
?item wdt:P127 ?owner . #with owners
?owner wdt:P18 ?ownerimage . #image of owner
?owner wdt:P800 ?work . #has notable work
?work wdt:P18 ?workimage . #work has image
?work wdt:P1299 ?depicted .
OPTIONAL { ?depicted wdt:P18 ?image . }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } #added labelservice here
}
Limit 10
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v6("?depicted")
v7("?image")
v1("?item"):::projected
v2("?owner")
v3("?ownerimage")
v4("?work"):::projected
v5("?workimage")
c10(["bd:serviceParam"]):::iri
c2(["wd:Q2116450"]):::iri
c4(["wd:Q22905"]):::iri
c12(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> c2
v1 --"wdt:P131"--> c4
v1 --"wdt:P127"--> v2
v2 --"wdt:P18"--> v3
v2 --"wdt:P800"--> v4
v4 --"wdt:P18"--> v5
v4 --"wdt:P1299"--> v6
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v6 -."wdt:P18".-> v7
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c10 --"wikibase:language"--> c12
end