List all Freebase domains with an MQL query or API call

I would like to develop a Freebase Java application that allows you to view Freebase. I thought a good starting point would be to mimic the Schema Freebase explorer and let the user of my application "deploy" through "Domains", "Types in the domain", and then "Instances in the type". Can someone help in getting a list of domains? Then a list in this domain? etc ... Then the user can select the domain, and I would like to set the list of types inside this domain and so on until they find the record or records that they are examining.

+4
source share
1 answer

MQL for domains:

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

The suggestion "!/freebase/domain_category/domains" is to restrict things only to Commons (official) - otherwise you get a domain that is automatically created for each user and probably not the one you need.

Types in the domain:

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

Replace "/cvg" accordingly.

Instances of type:

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

Replace "/cvg/computer_videogame" as necessary.

That should at least start with you.

+13
source

Source: https://habr.com/ru/post/1392628/


All Articles