User:Andree.sk/Wikidata Tests

wikidata query for WP:en around the item:

SELECT ?place ?placeLabel ?location WHERE { wd:Q1544186 wdt:P625 ?mainLoc. SERVICE wikibase:around { # Looking for items with coordinate locations(P625) ?place wdt:P625 ?location. # That are in a circle with a centre of ?mainLoc bd:serviceParam wikibase:center ?mainLoc. # Where the circle has a radius of 10km bd:serviceParam wikibase:radius "2". }
 * 1) Select the ItemId, label and coordinate location
 * 1) Select the coordinate location(P625) of Q1544186 as the centeral coordinate ?mainLoc
 * 1) Use the around service

FILTER EXISTS { ?article schema:about ?place. ?article schema:isPartOf . } SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 20
 * 1) Use the label service to get the English label

SELECT ?place ?placeLabel ?location WHERE { wd:Q11811375 wdt:P625 ?mainLoc. SERVICE wikibase:around { # Looking for items with coordinate locations(P625) ?place wdt:P625 ?location. # That are in a circle with a centre of ?mainLoc bd:serviceParam wikibase:center ?mainLoc. # Where the circle has a radius of 10km bd:serviceParam wikibase:radius "15". }
 * 1) Select the ItemId, label and coordinate location
 * 1) Select the coordinate location(P625) of Q1544186 as the centeral coordinate ?mainLoc
 * 1) Use the around service

FILTER EXISTS { ?article schema:about ?place. ?article schema:isPartOf . } MINUS{?place wdt:P31/wdt:P279? wd:Q15284} MINUS{?place wdt:P31/wdt:P279? wd:Q123964505} SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } } LIMIT 200
 * 1) Use the label service to get the English label


 * dynamic maps with 'best of' -> https://commons.wikimedia.org/wiki/User:Spinster/Map_test / https://phabricator.wikimedia.org/T188291