Created
November 14, 2011 03:26
-
-
Save sawamur/1363165 to your computer and use it in GitHub Desktop.
ある緯度経度範囲内にある駅データをdbpediaから取得するSPARQLクエリ
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#> | |
PREFIX geo:<http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX geo:<http://www.w3.org/2003/01/geo/wgs84_pos#> | |
PREFIX dbpedia_ont: <http://dbpedia.org/ontology/> | |
SELECT * WHERE { | |
?link rdfs:label ?title; | |
rdfs:comment ?comment; | |
geo:lat ?lat; | |
geo:long ?long. | |
?link rdf:type dbpedia_ont:Station. | |
FILTER ( | |
?lat> 35.7 && | |
?lat< 35.9 && | |
?long> 139.5 && | |
?long< 139.6 && | |
lang(?comment) = "ja" && | |
lang(?title) = "ja" | |
) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment