query-89dc155e590908d558ae07d394131884
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#>
SELECT DISTINCT ?item ?itemLabel ?coordinates
WHERE
{
?item wdt:P17 wd:Q17. # Limit to a single country to avoid timeouts
?item wdt:P625 ?coordinates.
?item wdt:P18 ?image1.
?item wdt:P18 ?image2.
FILTER(?image1 != ?image2)
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;
v4("?coordinates"):::projected
v1("?image1")
v2("?image2")
v3("?item"):::projected
c2(["wd:Q17"]):::iri
c6(["bd:serviceParam"]):::iri
c8(["#91;AUTO_LANGUAGE#93;,en"]):::literal
f0[["?image1 != ?image2"]]
f0 --> v1
f0 --> v2
v3 --"wdt:P17"--> c2
v3 --"wdt:P625"--> v4
v3 --"wdt:P18"--> v1
v3 --"wdt:P18"--> v2
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c6 --"wikibase:language"--> c8
end