简体   繁体   中英

Freebase returning empty results for MQL query of topic description

I try and use the google API freebase. I search for films description using the following query:

[{ 
  "id": "/m/027pfg", 
  "name": null, 
  "/common/topic/description": [] 
}] 

which result in :

{ 
  "result": [{ 
    "id": "/m/027pfg", 
    "name": "Big Fish", 
    "/common/topic/description": [] 
  }] 
} 

the url:

http://www.freebase.com/query?autorun=1&q=%5B%7B%22id%22:%22/m/027pfg%22,%22name%22:null,%22/common/topic/description

but in the page itself: " http://www.freebase.com/m/027pfg " I do see the description of the film. this happenes alot and I can not get the info I need.

The MQL API does not return entity descriptions. In order to get the descriptions, you'll need to use either the Search API or the Topic API .

Search API:

https://www.googleapis.com/freebase/v1/search?query=/m/027pfg&output=(description)

Topic API:

https://www.googleapis.com/freebase/v1/topic/m/027pfg?filter=/common/topic

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM