2
4

2 回答 2

1

A better view of this data if you're doing programming is the explore/inspect view:

http://www.freebase.com/inspect/m/01wz6kq

As a matter of fact, it even gives you a little shortcut for building a query. If you click on the arrow to the left of the /music/recording_contribution/album property, you'll get a pre-built query which you can modify to fetch the name instead of the ID:

{
  "id": "/m/01wz6kq",
  "/music/recording_contribution/album": {
    "name": null
  }
}​

If you click on the Link button in the Query Editor you'll get an MQLRead link that gives you back JSON you can parse to get the name.

Of course if you were doing this in the program, you'd construct the URL on the fly from a template with the ID of interest inserted.

NOTE: you do not want to be doing anything that references api.freebase.com because that's going away soon. You should be using the googleapis.com endpoint.

于 2012-10-12T15:14:09.340 回答
0

This entity has no /type/object/name property

BTW If you want to extract entity names, there are some properties:

/type/object/name
/common/topic/alias

and wikipedia keys, which need to be processed in some way (replace "_" with space, "&" with "&", "$1234" with some unicode symbol)

于 2012-10-12T14:32:56.913 回答