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
3
votes
1 answer

freebase search api

How can I only return results which have a notable type? IE when I have the default example: https://www.googleapis.com/freebase/v1/search?query=nirvana&indent=true It normally returns something like: { "mid": "/m/015k7", "name": "Gautama…
ere
  • 1,739
  • 3
  • 19
  • 41
3
votes
2 answers

Freebase MQL to list out all commons types for a given word?

I'm trying to figure out how to write a MQL query to get a list of all the types associated to a given word. For example I tried: { "id":null, "name":null, "name~=": "SOME_WORD", "type":"/type/type", "domain": { "id": null, …
ere
  • 1,739
  • 3
  • 19
  • 41
3
votes
1 answer

Freebase "Key cursor is a reserved word"

Following the Freebase docs on Envelope Parameters, running { "cursor":true, "query":[{ "type":"/music/album", "artist":"The Police", "name":null, "limit":10 }] }​ results in error "Key cursor is a reserved word" as @Domenic…
Alec Wenzowski
  • 3,878
  • 3
  • 25
  • 40
3
votes
2 answers

How to express current date in MQL Freebase Query?

Freebase's metaweb query language can be used to retreive future events if you pass in an ISO8601 formatted date. [{ "id": null, "name": null, "start_date" : null, "type": "/time/event", "start_date>" : …
Alec Wenzowski
  • 3,878
  • 3
  • 25
  • 40
3
votes
2 answers

MongoDB - db.save()- Type Error- db.collection.save is not a function

When I try to make a save function, then it goes an error. ie. I tried db.collection.save() my db is test and my collection name is myCol test> db.myCol.find() [ { _id: ObjectId("62dd5dfd976a6f6126179768"), name: 'J', totVal: 5, …
3
votes
1 answer

Eliminating MQL results on any_reverse reflection

I'm trying to get all events in a geo bounding box (that approximately covers France), but I want to exclude all recurring events, so I don't get heaps of French Tennis opens and the like. For this I used the following in my…
kmc
  • 660
  • 13
  • 25
3
votes
0 answers

Using MQL5 network functions on strategy tester

I want to receive data from metatrader and use them to do some process in another programming language, i can connect metatrader and my other script code with the network functions that mql5 has been provided but they don't work for testing on…
amin msh
  • 472
  • 5
  • 14
3
votes
2 answers

MQL for Persons with Wikipedia Articles

I am trying to return a list of people in wikipedia that have dates of birth listed. The code below works for English Wikipedia, but will not return persons in non-English wikis. How can I return a list of people who are in any wikipedia? [{ "id":…
user377162
  • 95
  • 1
  • 7
3
votes
1 answer

Freebase MQL query - Get data by a social link

I'm having a hard time trying to get data about a person from Freebase using his social link - by a MQL query. How could this be done? Something like: https://www.googleapis.com/freebase/v1/mqlread?query={ "*":[{}], …
gilad s
  • 475
  • 8
  • 16
3
votes
1 answer

Freebase MQL Query - Not Returning Results

I am trying a couple of very simple queries to retrieve members of a political party, specifically the UK Labour Party, from Freebase. I am unable to get them to return any results, and would welcome any thoughts as to why this is: Query 1: [{ …
3
votes
2 answers

Is there any way to link Facebook Graph data with other data sources (Freebase, DBPedia)?

I have a set of Interest and Likes data from Facebook that I'm interested in enriching with data from other sources, namely Freebase. Is there some way to identify which entry within Freebase cooresponds to a given entry within the Facebook…
Todd
  • 1,906
  • 2
  • 16
  • 21
2
votes
1 answer

freebase api for sorting by city relevance

I have a query where I would like to return all the cities for a given country. That works fine except I would like to also tweak so to sort it by size or any order of significance to avoid the 100 limit. I would like the first 100 cities to have…
ere
  • 1,739
  • 3
  • 19
  • 41
2
votes
1 answer

Google Refine and fetching data from freebase for a large data set to create a column from URL not working

I have a google refine project with 36k rows of data. I would like to add another column with fetching json data from freebase url. I was able to get it working on a small dataset but when i ran it on this project it took few hours to process and…
Yan
  • 3,533
  • 4
  • 24
  • 45
2
votes
2 answers

How can I write a conditional query with MQL?

I try to extract some extra information if my query returns a result. For example in this query, notable_for returns as "/music/musical_group" and I want to merge another query to extract some information about "/music/musical_group" like its…
cirik
  • 179
  • 1
  • 10
2
votes
2 answers

PHP and JSON Query to pull data from Freebase

I need to pull out the info of the Production Company and Distribution Company for any given movie and I'm using the Freebase for this. Happens I never used JSON and don't know how to integrate the query with my PHP file. The tutorials I've been…
Afonso Gomes
  • 902
  • 1
  • 14
  • 40
1
2
3
18 19