Stuff near you in wikipedia

    oever's picture
    2008
    27
    Aug

    A while back I blogged about querying dbpedia with sparql. The queries in that blog were pretty simple. Today, I present a more complicated example.

    SELECT ?a, ?long, ?lat WHERE {
    ?centerlong ;
    ?centerlat .
    ?a ?long ;
    ?lat .
    FILTER ( -(?long - ?centerlong)*(?long - ?centerlong) - (?lat - ?centerlat)*(?lat - ?centerlat) > -0.01 )
    }

    This query gives you all items in the english Wikipedia near where I live.

    You could also look for stuff near Gran Canaria or Berlin.