Questions tagged [mql]

For questions related to Freebase's Metaweb Query Language. Please use MQL4 and MQL5 for questions related to FOREX MetaTrader Terminal platform MetaQuotes Language.

Disambiguation was needed, as the MQL tag is, unfortunately, used for two different things:

  1. The Metaweb Query Language which is a JSON query-by-example style language used to query Google's Freebase.com

  2. MetaTrader Terminal platform programming language developed at MetaQuotes, Inc., under a code name MQL4 and MQL5 programming language. These compiled, c-like languages are used for complex control of the MetaTrader Terminal software used in Terminal/Server relation for foreign exchange trading, derivatives trading and commodities trading.

Most, but not all, StackOverflow questions relate to the first context of use.

For the sake of the second, rather use MQL4 or MQL5 respectively.

281 questions
0
votes
1 answer

Freebase MQL query via PowerShell

Here's the first example from the MQL overview in PowerShell: $result = Invoke-RestMethod ` -Uri ('https://www.googleapis.com/freebase/v1/mqlread?query={0}' -f ` [System.Web.HttpUtility]::UrlEncode( (ConvertTo-Json @(@{ …
dharmatech
  • 8,979
  • 8
  • 42
  • 88
0
votes
1 answer

How can I get information about the artists if it was changed after certain date?

I can get the artists that were added after 2014-10 [{ "type": "/music/artist", "id": null, "name": null, "timestamp": null, "timestamp>=": "2014-10" }] But how can I choose those ones who were added before but information about them has…
angr
  • 3
  • 1
0
votes
1 answer

MQL query to obtain a /music/release for a /music/track

If I have the mid for a /music/track entry in Freebase, I can use this MQL query to get the releases on which that track appears: { "mid": "/m/0q69hv", "name": null, "artist": [{ "name": null, "type": "/music/artist" }], …
Trott
  • 66,479
  • 23
  • 173
  • 212
0
votes
1 answer

Does Freebase support indirect or predicate objects?

How are indirect objects represented in Freebase? I know google can give the answer to the question: Who did obama give the medal of freedom to? Washington (CNN) – President Barack Obama awarded the Presidential Medal of Freedom – the nation's…
John
  • 633
  • 6
  • 10
0
votes
1 answer

Querying freebase for Entity and Predicte

I trying to use freebase for my project. I have been successful in getting required data using MQL queries. As a next step in the project I want to query freebase for the subject predicate object triples. For example, I want to know whether…
Hegde
  • 481
  • 1
  • 8
  • 17
0
votes
1 answer

Freebase domain and types

Is there a way using MQL to list all the types belong to a Freebase domain and to list all properties belonging to a type e.g. Given the domain "Computer" I would like to list all "types belonging to it as shown…
Niall
  • 51
  • 4
0
votes
1 answer

Is there a way to count the number of results of a freebase MQL query?

For example, I want to get the number of freebase concepts which have a page in the english wikipedia. Or I want to count the concepts which have the type - book/literature.
shyamupa
  • 1,528
  • 4
  • 16
  • 24
0
votes
1 answer

Get relevant topics by matching multiple topic by category using the Freebase API

How can I get related topics given an mid? Aka I have the mid: '/m/0mgcr', which is the offspring and I want to get a list of related bands. What's the best way to tackle this? Another way to ask this would probably be: If I have a band that has…
gbachik
  • 1,637
  • 3
  • 17
  • 29
0
votes
1 answer

freebase MQL query to match any field

My application gets in input a certain amount of String, suppose the name of the "object" I'm looking for, and other fields like the year when an artist was born or the last album he made. By the way the application has no knowledge on the type of…
lateralus
  • 1,020
  • 1
  • 12
  • 35
0
votes
1 answer

How to extract Companies per country from Freebase

I am new to Freebase. I am trying to extract all companies per country (The Head Quarter's country). The simplest approach I thought was to list them all and filter by country such as this test [{ "name": null, "type":…
user1848018
  • 1,086
  • 1
  • 14
  • 33
0
votes
1 answer

Freebase MQL must sort on a single value

I'm trying to learn to use Freebase, however when I try and do a sort by "/people/person/date_of_birth" for a search for actors for a show, it returns: "code": 400, "message": "Must sort on a single value, not at…
Sean
  • 212
  • 1
  • 10
0
votes
1 answer

/wikipedia/en_id not working on MQL query

Does anybody know why is this query not working? It was yesterday: [{ "mid": "/m/02_286", "key": { "namespace": "/wikipedia/en_id", "value": null }}] I get this response { "result": []} I want to obtain the ID 38252 so I can obtain a…
Fritjof Berggren
  • 3,178
  • 5
  • 35
  • 57
0
votes
1 answer

How to find all geographical places in a country in Freebase by using MQL Query?

I would like to get all cities, regions, rivers, mountains, villages, areas from freebase by using MQL. For now i only get all cities and district by using this query: [{"type": "/location/location", "containedby": "Germany", "name": null}] For…
Gizzmo
  • 691
  • 8
  • 21
0
votes
1 answer

Using FreeBase to retrieve sports teams by league

As shown here http://tinyurl.com/kw2z65f I am using the following query: [{ "type": "/sports/sports_team", "name": null, "limit": 300, "league": [{ "type": "/sports/sports_league_participation", "name": null }] }] You'll see that…
user1477388
  • 20,790
  • 32
  • 144
  • 264
0
votes
1 answer

Freebase MQL Query to fetch all instances and their Wiki description

I want to fetch and save Wikipedia descriptions of all instances from /sports/sport to my database. It requires 2 API calls - one to fetch mid and another to fetch wiki description. Is it possible to combine the 2 queries to a single query? Thanks…
Vimal
  • 3
  • 1