Google FreeBase Api - 查询问题 [英] Google FreeBase Api - problems with querying

查看:349
本文介绍了Google FreeBase Api - 查询问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图查询google freebase Api。这是我想要的查询: http://www.freebase.com/query?autorun=1&q=%22id%22:%22/m/0bth54%22, %22 / film / film / imdb_id%22:[] ,当我尝试搜索google api返回json时,它会引发此网址的错误:
googleapis.com/freebase/v1/mqlread?query= {{%22 / film / film / imdb_id%22:[],%22id%22:%22 / m / 027pfg%22}} 。我做错了什么?

解决方案




  • 错误的协议 - 必须是 https ::

  • 缺少子域 - www。

  • 查询中存在无效的JSON


点击查询编辑器中的链接按钮,它会为您提供一个可以剪切并粘贴的MQLread网址:



https://www.googleapis.com/freebase/v1/ ?mqlread /郎=%2Flang%2Fen&安培;查询=%5B%7B +%22id%22%3A +%22%2FM%2F0bth54%22%2C +%22%2Ffilm%2Ffilm%2Fimdb_id%22%3A +%5B%5D +%7D %5D


I am trying to query the google freebase Api. this is the query I want: http://www.freebase.com/query?autorun=1&q=%22id%22:%22/m/0bth54%22,%22/film/film/imdb_id%22:[] and when I try to search the google api to return json it raise error with this url: googleapis.com/freebase/v1/mqlread?query={{%22/film/film/imdb_id%22:‌[],%22id%22:%22/m/027pfg%22}} . What am I doing wrong??

解决方案

There are three things wrong:

  • wrong protocol - must be https::
  • missing subdomain - www.
  • invalid JSON in query

If you click on the Link button in the query editor from your first URL, it'll give you an MQLread URL that you can just cut and paste:

https://www.googleapis.com/freebase/v1/mqlread/?lang=%2Flang%2Fen&query=%5B%7B+%22id%22%3A+%22%2Fm%2F0bth54%22%2C+%22%2Ffilm%2Ffilm%2Fimdb_id%22%3A+%5B%5D+%7D%5D

这篇关于Google FreeBase Api - 查询问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆