[英]List all Freebase Domains with MQL query or API call
我想開發一個Freebase java應用程序,可以讓你瀏覽Freebase。 我認為一個好的起點是模仿Freebase Schema Explorer並允許我的應用程序的用戶“深入”通過域,域中的類型,然后是類型中的實例。 有人可以幫助您檢索域名列表嗎? 那個域名列表呢? 然后,用戶可以選擇一個域,我想在該域中預設一個類型列表,依此類推,直到找到他們正在調查的一個或多個條目。
域名MQL:
[{
"id": null,
"name": null,
"type": "/type/domain",
"!/freebase/domain_category/domains": {
"id": "/category/commons"
}
}]
其中的"!/freebase/domain_category/domains"
子句僅限於Commons(官方)域名 - 否則您將獲得為每個用戶自動創建的域名,並且可能不是您所追求的域名。
域中的類型:
[{
"id": null,
"name": null,
"type": "/type/type",
"domain": "/cvg"
}]
根據需要替換"/cvg"
。
類型實例:
[{
"id": null,
"name": null,
"type": "/cvg/computer_videogame"
}]
根據需要替換"/cvg/computer_videogame"
。
這至少應該讓你開始。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.