List all Freebase Domains with MQL query or API call

旧时模样 提交于 2019-12-05 17:12:47
Philip Kendall

MQL for domains:

[{
    "id":   null,
    "name": null,
    "type": "/type/domain",
    "!/freebase/domain_category/domains": {
        "id": "/category/commons"
    }
}]​

The "!/freebase/domain_category/domains" clause in there is to restrict things to just the Commons (official) domains - otherwise you get the domain which is automatically created for every user and probably isn't what you're after.

Types in a domain:

[{
    "id":     null,
    "name":   null,
    "type":   "/type/type",
    "domain": "/cvg"
}]​

Replace "/cvg" as appropriate.

Instances of a type:

[{
    "id":   null,
    "name": null,
    "type": "/cvg/computer_videogame"
}]​

Replace "/cvg/computer_videogame" as appropriate.

This should at least get you started.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!