Project:SPARQL/examples: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 8: Line 8:
}
}
}}
}}
</syntaxhighlight>
== Observations within 5 km from Antwerp ==
<syntaxhighlight>
#defaultView:Map
SELECT ?place ?placeLabel ?location
WHERE
{
  # Berlin coordinates
  wd:Q64 wdt:P625 ?berlinLoc .
  SERVICE wikibase:around {
    ?observation wbt:P8 ?location .
    bd:serviceParam wikibase:center ?berlinLoc .
    bd:serviceParam wikibase:radius "10" .
  } .
  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en" .
  }
}
</syntaxhighlight>
</syntaxhighlight>
Bots, Bureaucrats, emailconfirmed, Administrators
603,740

edits