我知道我可以像这样从维基数据查询维基百科页面:
SELECT ?place ?article WHERE {
SERVICE wikibase:box {
?place wdt:P625 ?location .
# looks like cornerwest must be south of cornereast
# otherwise you go around the globe
# this is lng lat
bd:serviceParam wikibase:cornerWest "Point(1 12)"^^geo:wktLiteral .
bd:serviceParam wikibase:cornerEast "Point(2 13)"^^geo:wktLiteral .
}
?article schema:about ?place .
?article schema:isPartOf [ wikibase:wikiGroup "wikipedia" ] .
}
而且我知道——给定一个文章标题——我可以像这样使用维基百科 API 查询它的图像:
https://pl.wikipedia.org/w/api.php?action=query&titles=Pearl_Harbor&format=json&prop=images
(link 到结果)。
我想一次性完成——这可能吗?