query-3c33e3e4d97e4b152d076b398c50c132
Monuments
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#>
#defaultView:Map
PREFIX target: <http://www.wikidata.org/entity/Q174>
SELECT
?geo
?monument ?monumentLabel ?monumentDescription
?image
WHERE {
?monument wdt:P31 / wdt:P279* wd:Q4989906 ;
wdt:P131 target: ;
wdt:P625 ?geo .
OPTIONAL { ?monument wdt:P18 ?image }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v2("?geo"):::projected
v3("?image"):::projected
v1("?monument"):::projected
a1((" "))
c3(["wd:Q4989906"]):::iri
c9(["bd:serviceParam"]):::iri
c5(["wd:Q174"]):::iri
c11(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P31"--> a1
a1 --"wdt:P279"--> c3
v1 --"wdt:P131"--> c5
v1 --"wdt:P625"--> v2
subgraph optional0["(optional)"]
style optional0 fill:#bbf,stroke-dasharray: 5 5;
v1 -."wdt:P18".-> v3
end
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c9 --"wikibase:language"--> c11
end