Freebase MQL query for topic summary and image?

I am trying to execute an MQL query that will be executed using the Freebase API. I would like to get a summary of the topic and an image for the topic.

I was able to work out the query below, which will give me images related to the Bill Gates theme.

MQL:

[ { "/common/topic/image" : [ { "id" : null } ], "name" : "bill gates", "type" : "/people/person" } ] 

Results:

 [ { "/common/topic/image" : [ { "id" : "/guid/9202a8c04000641f8000000004fb4c01" }, { "id" : "/wikipedia/images/commons_id/4486276" } ], "name" : "Bill Gates", "type" : "/people/person" } ] 

For those who have not previously worked in MQL, but are interested in playing with it. Check out the FreeBase MQL Query Editor .

billg profile page http://i.friendfeed.com/c31a22d9e439eb67b0feeb4ffd64c3b5ed9a8e16

UPDATE

The query I ended up using:

 [ { "/common/topic/image" : [ { "id" : null } ], "article" : [ { "content" : null } ], "name" : "bill gates", "type" : "/common/topic" } ] 

These results can be combined with narphorium's answer to provide evidence:

 [ { "/common/topic/image" : [ { "id" : "/guid/9202a8c04000641f8000000004fb4c01" }, { "id" : "/wikipedia/images/commons_id/4486276" } ], "article" : [ { "content" : null }, { "content" : "/guid/9202a8c04000641f800000000903535d" } ], "name" : "Bill Gates", "type" : "/common/topic" } ] 
+6
freebase mql
source share
2 answers

Summaries of images and thematic sections are stored separately in the content store and are available through another web services API .

For example, the image of Bill Gates can be obtained as follows:

http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f8000000004fb4c01

Similarly, the GUID for a topic summary can be found by replacing / common / topic / image with / common / topic / article in your request. The results can be obtained again:

http://www.freebase.com/api/trans/raw/guid/9202a8c04000641f8000000008bfed35

Learn more about the content repository.

+9
source share

Now the new image service provided by freebase can now be used to retrieve images using freebase identifiers, for example for Bill Gates following the image URL:

https://usercontent.googleapis.com/freebase/v1/image/en/bill_gates

Learn more about this service at: http://wiki.freebase.com/wiki/Image_Service

+6
source share

All Articles