Create a gist now

Instantly share code, notes, and snippets.

公共図書館の緯度経度を取得するSPARQL式.NDLのISIL試行版LODデータセットが対象.http://mdlab.slis.tsukuba.ac.jp/sparql で検索可能.
prefix schema: <http://schema.org/>
prefix org: <http://www.w3.org/ns/org#>
prefix geo: <http://www.w3.org/2003/01/geo/wgs84_pos#>
SELECT ?library ?name ?long ?lat
FROM <http://mdlab.slis.tsukuba.ac.jp/graph/isilpublic>
WHERE {
?library schema:name ?name .
OPTIONAL {
?library org:hasSite/geo:long ?long .
?library org:hasSite/geo:lat ?lat .
}
FILTER ( lang(?name) = 'ja' )
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment