57619

Google FreeBase Api - problems with querying

Question:

I am trying to query the google freebase Api. this is the query I want: <a href="http://www.freebase.com/query?autorun=1&q=%22id%22%3a%22/m/0bth54%22,%22/film/film/imdb_id%22%3a%5B%5D" rel="nofollow">http://www.freebase.com/query?autorun=1&q=%22id%22:%22/m/0bth54%22,%22/film/film/imdb_id%22:[]</a> and when I try to search the google api to return json it raise error with this url: <a href="http://googleapis.com/freebase/v1/mqlread?query=%7B%7B%22/film/film/imdb_id%22%3a%E2%80%8C%5B%5D,%22id%22%3a%22/m/027pfg%22%7D%7D" rel="nofollow">googleapis.com/freebase/v1/mqlread?query={{%22/film/film/imdb_id%22:‌[],%22id%22:%22/m/027pfg%22}}</a> . What am I doing wrong??

Answer1:

There are three things wrong:

<ul><li>wrong protocol - must be https::</li> <li>missing subdomain - www.</li> <li>invalid JSON in query</li> </ul>

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:

<a href="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" rel="nofollow">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</a>

Recommend

  • Read a file in “chunks” using PHP
  • How to synchronize two scrollview in Android?
  • Embedded Google Maps in Rails not responsive
  • Uncaught TypeError: $(…).select2 is not a function
  • Why cepheus don't send int without quotes to orion?
  • Element.tagName for python not working
  • Odoo 10 - Overriding unlink method
  • How can I speed up CURL tasks?
  • Eclipse CDT error: Unable to compile
  • Do I need to reset a Perl hash index?
  • Display images in Django
  • How to render a blob on a canvas element?
  • How to attach a node.js readable stream to a Sendgrid email?
  • Play WS (2.2.1): post/put large request
  • Google Custom Search with transparent background
  • Seeking advice on Jetty HttpClient Hang
  • Why is an OPTIONS request sent to the server?
  • Insert into database using onclick function
  • Spring security and special characters
  • Different response to non-authenticated users and AJAX calls
  • What is Eclipse's Declaration View used for?
  • Can I make an Android app that runs a web view in Chrome 39?
  • Can a Chrome extension content script make an jQuery AJAX request for an html file that is itself a
  • Hazelcast - OperationTimeoutException
  • Warning: Can't call setState (or forceUpdate) on an unmounted component
  • RestKit - RKRequestDelegate does not exist
  • Circular dependency while pushing http interceptor
  • Revoking OAuth Access Token Results in 404 Not Found
  • AngularJs get employee from factory
  • How to set the response of a form post action to a iframe source?
  • Hits per day in Google Big Query
  • FormattedException instead of throw new Exception(string.Format(…)) in .NET
  • Change div Background jquery
  • Linking SubReports Without LinkChild/LinkMaster
  • Is it possible to post an object from jquery to bottle.py?
  • XCode 8, some methods disappeared ? ex: layoutAttributesClass() -> AnyClass
  • Django query for large number of relationships
  • Why is Django giving me: 'first_name' is an invalid keyword argument for this function?
  • How can I use `wmic` in a Windows PE script?
  • How to push additional view controllers onto NavigationController but keep the TabBar?