【发布时间】:2015-03-22 17:26:25
【问题描述】:
我正在尝试列出特定 id 的所有类型:
{
"id": "/en/sony",
"type": [{
"name": "Topic",
"id": null
}]
}
这个查询给了我以下结果: http://tinyurl.com/lubavey
{
"result": {
"type": [
{
"id": "/common/topic",
"name": "Topic"
},
{
"id": "/base/audiobase/topic",
"name": "Topic"
},
{
"id": "/base/fblinux/topic",
"name": "Topic"
},
{
"id": "/base/digitalcameras/topic",
"name": "Topic"
},
{
"id": "/base/popstra/topic",
"name": "Topic"
},
{
"id": "/base/televisions/topic",
"name": "Topic"
},
{
"id": "/base/ps3games/topic",
"name": "Topic"
},
{
"id": "/base/filmcameras/topic",
"name": "Topic"
},
{
"id": "/m/04mny2g",
"name": "Topic"
}
],
"id": "/en/sony"
}
}
我想要完全相反的结果。我想要所有没有名称作为“主题”的类型。
我怎样才能做到这一点?我尝试使用带有属性 name 的 ! 运算符,这是 MQL 参考指南中建议的,但它给了我错误:
“不能使用带有 !reversing 的非限定属性名称”。
我应该怎么做才能消除!的这个错误并获得相反的查询结果?
【问题讨论】:
标签: api error-handling reverse freebase mql