我只想从 Freebase 获得一个人可以拥有的不同别名。我的 PHP 查询是:
$query = array(
array(
'id' => NULL,
'alias' => NULL,
'name' => "Barack Obama",
'type' => "/people/person"
)
);
结果是:
Array (
[code] => /api/status/error
[messages] => Array (
[0] => Array (
[code] => /api/status/error/mql/type
[info] => Array (
[expected_type] => /people/person
[property] => alias
)
[message] => Type /people/person does not have property alias
[path] =>
[query] => Array (
[0] => Array (
[alias] =>
[error_inside] => .
[id] =>
[name] => Barack Obama
[type] => /people/person
)
)
)
)
[status] => 200 OK
[transaction_id] => cache;cache01.p01.sjc1:8101;2012-05-11T16:17:29Z;0082
)
有人能帮我吗?