我正在尝试遍历 Freebase 国家/地区列表,如下所示:
#r @"..\packages\FSharp.Data.1.1.4\lib\net40\FSharp.Data.dll"
open FSharp.Data
FreebaseData.GetDataContext().``Time and Space``.Location.Countries
|> Seq.iter (fun c -> printfn "%s" c.Name)
在 F# Interactive 中执行此操作会给我以下错误:
System.Net.WebException: The remote server returned an error: (400) Bad Request.
{
"error": {
"errors": [
{
"domain": "global",
"reason": "badRequest",
"message": "Unique query may have at most one result. Got 2",
"locationType": "other",
"location": "/location/country/iso_alpha_3"
}
],
"code": 400,
"message": "Unique query may have at most one result. Got 2"
}
}
我能做些什么来解决这个问题吗?
谢谢, - 罗布