3

我很难尝试使用他的社交链接从 Freebase 获取有关某人的数据 - 通过 MQL 查询。

怎么可能做到这一点?

就像是:

https://www.googleapis.com/freebase/v1/mqlread?query={
     "*":[{}],
     "/common/topic/social_media_presence":[{
          "value":"http://twitter.com/JustinBieber"
     }]
}
4

1 回答 1

2

Those links are really stored as keys and the links are generated from templates with they key plugged in. You can see all the keys here: https://www.freebase.com/m/06w2sn5?keys=

A modified version of your query would be:

[{
  "key": [{
    "namespace": {
      "id": "/authority/twitter"
    },
    "value": "JustinBieber"
  }],
  "*": [{}]
}]

You can do the same thing with other namespaces like /authority/facebook or /authority/musicbrainz as well as the various language wikipedias e.g. /wikipedia/en

I'm not sure how complete the coverage or currency of the social media info is though...

于 2013-08-08T15:25:58.910 回答