【问题标题】:How can i search a company's name by a specified product on freebase?如何在 freebase 上通过指定产品搜索公司名称?
【发布时间】:2015-01-30 07:13:06
【问题描述】:

我尝试使用 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”是“product”的一个属性,但它失败了。

【问题讨论】:

    标签: freebase mql


    【解决方案1】:

    实际上,它运行良好。但是,在这种情况下,链接节点是一个中介,具有指向公司、起始日期和结束日期的链接。因此,中介节点没有名称,即为空。

    试试这个查询来获取下一个节点,距离更远一跳:

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-07-04
      • 1970-01-01
      • 2019-10-06
      • 1970-01-01
      • 1970-01-01
      • 2014-06-22
      • 1970-01-01
      相关资源
      最近更新 更多