query-7978fc61bb933535d9951c331569dd36
SPARQL examplesThe SPARQL service allows images to be embedded in its visualisation modes. Can you tell what each of these shows before (or after) running the query?
Use at
- https://query.wikidata.org/sparql
PREFIX wikibase: <http://wikiba.se/ontology#>
PREFIX wdt: <http://www.wikidata.org/prop/direct/>
PREFIX bd: <http://www.bigdata.com/rdf#>
#defaultView:Map{"layer":"?countryLabel"}
SELECT ?s ?sLabel ?coord ?countryLabel ?pic
WHERE
{
?s wdt:P4640 ?pic ;
wdt:P625 ?coord ;
wdt:P17 ?country .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" }
}
LIMIT 1000
Query found at
graph TD
classDef projected fill:lightgreen;
classDef literal fill:orange;
classDef iri fill:yellow;
v3("?coord"):::projected
v4("?country")
v2("?pic"):::projected
v1("?s"):::projected
c5(["bd:serviceParam"]):::iri
c7(["#91;AUTO_LANGUAGE#93;,en"]):::literal
v1 --"wdt:P4640"--> v2
v1 --"wdt:P625"--> v3
v1 --"wdt:P17"--> v4
subgraph s1["http://wikiba.se/ontology#label"]
style s1 stroke-width:4px;
c5 --"wikibase:language"--> c7
end