söndag 31 juli 2016

Geospatial Question -


# Query Find people in WikiTree
# 200 km from Q1035422 Caraquet
#
#defaultView:Map
SELECT  ?placeOfBirthLabel ?person ?personLabel ?personDescription ?WikiTree ?chicagoLoc ?pic  ?location WHERE {
    {
    wd:Q1035422 wdt:P625 ?locCaraquet . #Find location Caraquet

     ?person  wdt:P19 ?placeOfBirth.
     ?person  wdt:P2949 ?WikiTreeID.
    SERVICE wikibase:around {
      ?placeOfBirth wdt:P625 ?location .
      bd:serviceParam wikibase:center ?locCaraquet .
      bd:serviceParam wikibase:radius "200" .
      bd:serviceParam wikibase:distance ?dist.
    }                    

    OPTIONAL {?person wdt:P18 ?pic}         # If Wikidata has a illustration use that

#    BIND (URI(CONCAT("http://www.wikitree.com/wiki/",?WikiTreeID)) AS ?WikiTree)

 }
  SERVICE wikibase:label { bd:serviceParam wikibase:language "en"}
}
LIMIT 10000

Inga kommentarer:

Skicka en kommentar