2013-04-06 157 views
3

我正在尝试几个非常简单的查询来从Freebase检索政党成员,特别是英国工党。我不能让他们返回任何结果,并欢迎任何想法,为什么是这样的:Freebase MQL查询 - 不返回结果

查询1:

[{ 
    "id": "/m/01c9x", 
    "name": null, 
    "/government/political_party/politicians_in_this_party": [] 
}] 

查询2:

[{ 
    "type": "/government/politician", 
    "mid": null, 
    "name": null, 
    "/government/politician/party": { 
     "mid": "/m/01c9x" 
    } 
}] 

我试图在以下站点运行它们:http://www.freebase.com/query

很多谢谢 提前。

回答

1

党的连接日期介导的,所以你需要去一个进一步跳将出来:

[{ 
    "type": "/government/politician", 
    "mid": null, 
    "name": null, 
    "party": [{ 
    "party": { 
     "id": "/m/01c9x" 
    } 
    }] 
}] 

如果你想希望通过会员在特定日期的一方来约束,您可以使用from和中介节点上的to属性。