Project:SPARQL/examples
Observations and their locations
#defaultView:Map
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT * WHERE {
?s wbt:P8 ?o .
}
}}
Observations within 5 km from Antwerp
#defaultView:Map
PREFIX wbt: <http://biodiversity.wiki.opencura.com/prop/direct/>
SELECT ?place ?placeLabel ?location
WHERE
{
# Berlin coordinates
?location wbt:P8 ?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" .
}
}