Last active
March 1, 2020 13:52
-
-
Save tsunagun/41fed0770fa00bcbf961 to your computer and use it in GitHub Desktop.
日本国内の図書館の緯度経度を取得するSPARQL式。NDLのISIL試行版LODデータセット( https://www.ndl.go.jp/jp/dlib/standards/opendataset/index.html#ISIL_trial )が対象。エンドポイントURLは https://lib-lod.tsunagun.org/sparql/isil-lod-jp/query 。Webブラウザ上で利用する場合は https://tsunagun.github.io/lib-lod/sparql/ にアクセスし、下図に従って操作してください。
This file contains hidden or 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 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 ?lat ?long | |
WHERE { | |
?library schema:name ?name . | |
OPTIONAL { | |
?library org:hasSite/geo:lat ?lat . | |
?library org:hasSite/geo:long ?long . | |
} | |
FILTER ( lang(?name) = 'ja' ) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Webブラウザ上で使用する場合は、 https://tsunagun.github.io/lib-lod/sparql/ を開き、下記の手順でSPARQL式を実行します。