diff --git a/wikidata-serch.md b/wikidata-serch.md new file mode 100644 index 0000000..52128e4 --- /dev/null +++ b/wikidata-serch.md @@ -0,0 +1,54 @@ +https://www.wikidata.org/w/index.php?title=Special:Search + +haswbstatement:P131=Q792819 haswbstatement:P31=Q108804646 + P131=Q792819 綾瀬市 + P31=Q108804646 都市公園 + +haswbstatement:P131=Q792819 -haswbstatement:P31=Q486972|Q5327369 + P131=Q792819 綾瀬市 + -P31=Q486972|Q5327369 地名をのぞく + + +Wikidata Query Service(https://query.wikidata.org/) + +ウィキデータの非推奨の理由の一覧 (Q52105174) + +``` +SELECT ?item ?itemLabel ?osm_tag +WHERE +{ + ?item wdt:P1282 'Key:religion'. # 「オープンストリートマップのタグ又はキー」を持つもの + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } +} + + +SELECT ?item ?itemLabel ?osm_tag +WHERE +{ + ?item wdt:P1282 ?osm_tag. # 「オープンストリートマップのタグ又はキー」を持つもの + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } +} + +``` + +SELECT ?park ?parkLabel ?propLabel ?position +WHERE +{ + ?park wdt:P131 wd:Q792819; + wdt:P31/wdt:P279* wd:Q22698. # 公園に分類されているもの + OPTIONAL { + ?park wdt:P361 ?prop. # 綾瀬市の公園 + ?park wdt:P625 ?position. # 位置座標 + } + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } +} + +# 海老名市の地図 +SELECT DISTINCT ?geo ?item ?itemLabel ?image WHERE { + ?item wdt:P131 wd:Q734390; # 海老名市にある + wdt:P625 ?geo . + OPTIONAL { + ?item wdt:P18 ?image. + } + SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE]". } +}