Making a category list

  1.  
    1. I'm writing a small app on FreeBase.
      I'm trying to build a category tree which shows the main categories (sports, arts & crafts, etc.) and lets the user drill down to additional sub categories.
      Is there something like this already built which I can use?

      I notice that I can get a list of the categories for "Sports" like this:

      { "query" : [ { "domains" : [ { "id" : null, "name" : null, "type" : "/type/domain" } ], "name" : "Sports", "type" : "/freebase/domain_category" } ]}

      but I can't figure out how to get a list of categories under "Sports/Basketball"

      1. Sports is a "domain category", which has a list of domains (via a property). Sports/Basketball (id: /Basketball) is a domain, and when you say a "list of categories" in that domain, you're referring to the types in that domain. So, the query to look up types in a specific domain by id /Basketball is:

        {
        "query" : [
        {
        "id" : "/basketball",
        "type" : "/type/domain",
        "types" : [
        {
        "id" : null,
        "name" : null,
        "type" : "/type/type"
        }
        ]
        }
        ]
        }



    Discussion is posted in:

    Think this discussion also relates to something else? Cross-post it by adding a new discussion area: