Question

I see that the relationship between topics in Freebase start as follows:

/user/foo/... /music/album/... /base/talships/...

Should I just check if the relationship starts with the word "base" or "user" in which case the domain is not a commons domain? Thus, if it starts with any word other than "base" or "user" then it is a commons domain.

Is my understanding correct?

Was it helpful?

Solution

Yes, in general you can tell that something is a user domain or a base just from looking at the ID. However the most reliable way to do it is in MQL like this:

{
  "id": "/music/album",
  "/type/type/domain": {
    "/freebase/domain_profile/category": [{
      "id": null
    }]
  }
}​

Any domain that has the category /category/commons is a Freebase commons domain.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top