2011-11-04 103 views
1

我一直试图让域的人的类型用下面的查询:在Freebase中查找类型描述?

[{ 
    "/type/object/id": "/people", 
    "/type/object/name": null, 
    "/type/domain/types": [{ 
    "/type/object/id": null, 
    "/type/object/name": null 
    }] 
}]​ 

,但我也想有类型的简短文字说明。任何人都知道我在找什么物业?我试过寻找它,但无济于事。我需要类似于此处显示的文字说明:http://www.freebase.com/schema/american_football

谢谢!

回答

1

它与您用于主题描述的属性相同(/ common/topic/article)。因此,您的查询应该是这样的:

[{ 
    "/type/object/id": "/people", 
    "/type/object/name": null, 
    "/type/domain/types": [{ 
    "/type/object/id": null, 
    "/type/object/name": null, 
    "/common/topic/article": [{ 
     "text": { 
     "maxlength": 16384, 
     "chars":  null 
     } 
    }] 
    }] 
}]​ 

Try it out

记住/普通/主题/文章是MQL extension所以你如果你使用的API需要turn on that feature

注意: MQL扩展是Freebase API的一个实验性功能,它们在新版本的API中不受支持。新的API通过直接从 Text Service提供文本。