如何通过freebase上的指定产品搜索公司名称?

时间:2015-01-30 07:13:07

标签: freebase mql

我尝试使用MQL来搜索" Microsoft Corporation"如下:

[{


  "name": "Windows Vista Home Basic",

  "type": "/business/consumer_product",

  "/business/consumer_product/company": null

}]

它显示:

{

  "result": [{

    "/business/consumer_product/company": null,

    "type": "/business/consumer_product",

    "name": "Windows Vista Home Basic"

  }]

}

显然" / business / consumer_product / company"是"产品"的一个属性,但它失败了。

1 个答案:

答案 0 :(得分:0)

实际上,它运作得很好。但是,在这种情况下,链接节点是一个中介,具有到公司的链接,从发布日期和到日期。因此,中介节点没有名称,即它为空。

尝试此查询以获取下一个节点,距离更远一步:

[{
  "name": "Windows Vista Home Basic",
  "type": "/business/consumer_product",
  "/business/consumer_product/company": {
    "/business/company_product_relationship/company": {
      "id": null,
      "name": null
    }
  }
}]