MQL

From Freebase

(Redirected from Mql)
Jump to: navigation, search

MQL (Metaweb Query Language; rhymes with "pickle") is an API for making programmatic queries to freebase. This allows you to incorporate knowledge from the Freebase database into your own applications and websites. It is analogous to the SPARQL query language used in RDF. It uses JSON objects as queries via standard HTTP requests and responses.

Type the following URL into your web browser's location bar.

https://www.googleapis.com/freebase/v1/mqlread?query={"type":"/music/artist","name":"The Police","album":[]}

The query is easier to understand if it is formatted like this:

{
  "type": "/music/artist",
  "name": "The Police",
  "album": []
}

Where there is a 'null' or '[]', data is returned from freebase. The result can be parsed with a JSON parser.

Tools

Documentation

See Also

Personal tools