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
2
votes
2 answers

Freebase: Get name & Wikipedia ID in one query in a certain language

Is it possible to do one query in MQL to obtain the name and the wikipedia ID for a certain language from Freebase? If that's possible, is it also possible to do this for a set of languages (eg. german & english)?
Bernhard Vallant
  • 49,468
  • 20
  • 120
  • 148
2
votes
1 answer

Freebase API get other types queries

I'm using freebase python to access the freebase api. I have the following query I would like to execute: query = [{ "id": None, "name" : [], "type" : "/people/person", "/common/topic/image":[{}], "limit" :…
ip.
  • 3,306
  • 6
  • 32
  • 42
2
votes
3 answers

Write a Freebase MQL query that gets everything back about a given topic?

I want to write a query that gets back everything that is known about a topic (only needs to be one level deep. When working in the Freebase MQL Editor they give the following example for "Everything we know about Jimi Hendrix": { "*" : null, …
Eric Schoonover
  • 47,184
  • 49
  • 157
  • 202
2
votes
1 answer

MQL4 automatic stop

My Martingale EA should be stopped automatically if the previously manually set limit has been reached or exceeded. The last trade should expire normally and not be interrupted. So far, I've tried the following code, without interruption, etc. the…
user12178191
2
votes
5 answers

The terminal process terminated with exit code: 1

I want to use the Visual Studio Code IDE ("VSC") to develop in MQL (rather than in the native MetaEditor IDE) as described here: How to code & compile MQL5 in Visual Studio. My question refers to the compiling process, which consists of a VSC-task…
Pingui
  • 1,312
  • 4
  • 15
  • 28
2
votes
3 answers

Creating textfile with MQL4

I am trying to create a textfile with MQL4. No sucess. It just doesn't work. A very simple script: void OnStart() { string terminal_data_path=TerminalInfoString(TERMINAL_DATA_PATH); string…
Alexsander Santos
  • 107
  • 1
  • 2
  • 7
2
votes
2 answers

Translate JSON MQL queries into SPARQL

I have a punch of JSON MQL queries to query Freebase. Is there a tool to translate them into SPARQL to use them with OpenRDF Sesame? Thanks!
Patrick
  • 21
  • 1
2
votes
1 answer

Parsing the Freebase Topic HTTP API - JSON & Javascript

I am trying to parse a JSON output: http://www.freebase.com/experimental/topic/standard?id=/en/colonel_sanders I'd like to put the basic data into an array using Javascript. In the "properties" object I'd like to grab any "text" element one level…
txchou
  • 647
  • 1
  • 6
  • 15
2
votes
1 answer

How Can I Retrieve the Types for a Topic

As I understand it, the Freebase taxonomy generally boils down to this hierarchy: Domain Category > Domain > Type > Topic I have an application that receives input and does a bit of natural language processing that spits out a bunch of terms--some…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
2
votes
1 answer

Freebase MQL Test for Not True

I have a simple script that retrieves all of the Freebase types within a domain. Now I want to filter out the CVT types, but I can't figure out how to write that test. If I write it the way that seems most obvious: var q_categories…
Rob Wilkerson
  • 40,476
  • 42
  • 137
  • 192
2
votes
1 answer

Get Members of Band

If I look at the Freebase page for the band '311', I see Chad Sexton listed. http://www.freebase.com/view/en/311 I am trying to query for the members of a band : { "name" : "311", "/music/artist/album" : [{"name":null,…
aantix
  • 499
  • 8
  • 12
2
votes
1 answer

Freebase; select a random record?

1) Is there any way to select a random record from Freebase? If I do a limit of 1, it consistently returns the same record. I could grab the larger data set and select a random rec from that but that seems like overkill. Analogous to MySQL's…
aantix
  • 499
  • 8
  • 12
2
votes
1 answer

Getting actor IMDB ID's from a Film IMDB ID in a single query

So, with this query, I can get the actors in the film: [{ "type": "/film/film", "imdb_id": "tt0090605", "starring": [{ "actor": null }], "limit": 1 }] And with this query, I can get the IMDB_ID for an actor: [{ "type":…
Adi
  • 742
  • 7
  • 22
2
votes
1 answer

Freebase GUID return null value on online search

I have some GUIDs extracted from freebase and I am looking for their specific names . When I use online freebase query editor, the engine search just returned me the "mid" of the object. I put some GUID here as a…
2
votes
2 answers

Freebase MQL Query - topic_equivalent_webpage

This seems to be a pretty straightforward query, but I'm not getting any results for topic_equivalent_webpages. There should be a long list of wikipedia urls, etc. [{ "id": "/m/0gg4gh4", "name": null, "type": "/common/topic", …
1 2
3
18 19