如何在freebase上按指定产品搜索公司名称?
我尝试使用MQL搜索Microsoft Corporation,如下所示:如何在freebase上按指定产品搜索公司名称?,freebase,mql,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,
[{
"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\u product/company是产品的一个属性,但它失败了 实际上,它工作得很好。不过,在本例中链接的节点是一个中介,具有指向公司、起始日期和截止日期的链接。因此,中介节点没有名称,即为null 尝试此查询以获取下一个节点,再向前一跳:
[{
"name": "Windows Vista Home Basic",
"type": "/business/consumer_product",
"/business/consumer_product/company": {
"/business/company_product_relationship/company": {
"id": null,
"name": null
}
}
}]