"http://www.freebase.com/api/service/mqlread?query={"query":[{"id":"/topic..."
api/service/mqlread
Also known as
- Add other possible names for this topic
The mqlread service is used to perform read-only queries on Freebase data.
Examples:
http://www.freebase.com/api/service/mqlread?query={"query":[{"id":"/topic/en/edinburgh","key":[{"namespace":"/wikipedia/en_id","value":null}]}]}
http://www.freebase.com/api/service/mqlread?queries={"q0":{"query":[{"id":"/topic/en/edinburgh","key":[{"namespace":"/wikipedia/en_id","value":null}]}]},"q1":{"query":[{"id":"/topic/en/hamster","key":[{"namespace":"/wikipedia/en_id","value":null}]}]}}
| Name | mqlread | |
| Description | Runs a MQL read query and returns the results to client. | |
| Accessible Via | /api/service/mqlread | |
| HTTP GET | Yes | |
| HTTP POST | Yes | |
| Special Headers | None | |
| Login Required | No | |
| Required Arguments | One of: query : a single MQL query | |
| Optional Arguments | cursor : graph cursor that may be returned as a result of a query that asked for one. | |
| Extra Arguments Ignored | Yes | |
| Response Format | application/json | |
| Notes | MQL queries must be wrapped in an envelope consisting of two JSON objects before being sent to mqlRead. This is explained in detail in section 4.2.3 of the The Complete Metaweb Application Development Reference Guide (API and MQL). The envelope parameters are: uniqueness_failure (values: hard or soft): affects whether {...} produces an error or a single value if there are multiple results for the query. as_of_time: produces a timestamp for the results Full information on mqlRead can be found in Chapter 4 of The Complete Metaweb Application Development Reference Guide (API and MQL). For additional information on using the callback parameter to generate a JSONP response, or using onsucceed and onfail to redirect to a URI template, see Common API Query Parameters. |
Examples:
http://www.freebase.com/api/service/mqlread?query={"query":[{"id":"/topic/en/edinburgh","key":[{"namespace":"/wikipedia/en_id","value":null}]}]}
http://www.freebase.com/api/service/mqlread?queries={"q0":{"query":[{"id":"/topic/en/edinburgh","key":[{"namespace":"/wikipedia/en_id","value":null}]}]},"q1":{"query":[{"id":"/topic/en/hamster","key":[{"namespace":"/wikipedia/en_id","value":null}]}]}}
With the exception of Wikipedia summaries and some images the
content on this page is typically distributed under
the Creative Commons
Attribution license or Public Domain.
| Gallery | add |
There are no images for this topic yet.
Edit Weblinks
There are no weblinks for this topic yet.

