[英]How to find all geographical places in a country in Freebase by using MQL Query?
我想使用MQL從freebase獲取所有城市,地區,河流,山脈,村庄,地區。
現在,我僅使用以下查詢來獲取所有城市和地區:
[{"type": "/location/location",
"containedby": "Germany",
"name": null}]
目前,我不了解如何獲取德國的其他地理信息。
我現在通過執行2個不同的查詢找到了該解決方案,因為我沒有找到如何在mql中執行UNION:
[{
"type": "/location/location",
"partially_containedby": "Germany",
"de:name": {
"lang": "/lang/de",
"value": null
},
"geolocation": {
"latitude": null,
"longitude": null
}
}]
和
[{
"type": "/location/location",
"containedby": "Germany",
"de:name": {
"lang": "/lang/de",
"value": null
},
"geolocation": {
"latitude": null,
"longitude": null
}
}]
兩個查詢都通過返回德語,緯度和經度的位置名稱來檢索我在德國或德國部分地區的所有位置。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.