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.

238 questions
11
votes
2 answers

Freebase: What data dump file contains the "imdb_id"?

I run IMDbAPI.com and have been using Bing's Search API for finding IMDb ID's from title searches. Bing is currently changing their API over to the Azure Marketplace (August 1st) and is no longer available for free. I started testing my API using…
bfritz
  • 2,370
  • 1
  • 18
  • 29
8
votes
3 answers

Import Freebase to Triplestore

I'm currently planning a big project containing big data. I already used the search and all results tell me that it's not possible to import Freebase into any triplestore without usage of 3rd Party Tools like BaseKB or Freebase to RDF As I can see,…
smith64fx
  • 309
  • 2
  • 10
7
votes
1 answer

Freebase MQL filter where value != null?

I'm trying to write an MQL query that filters out null values. The query I have now (can be executed using the MQL Query Editor): [ { "/common/topic/image" : [ { "id" : null } ], "article" : [ { …
Eric Schoonover
  • 44,080
  • 43
  • 148
  • 200
7
votes
2 answers

Freebase MQL query for topic summary and image?

I'm trying to write an MQL query to be executed using Freebase API's. I would like to retrieve the topic summary and the image for the topic. I have been able to work out the below query which will get me the images associated with the Bill Gates…
Eric Schoonover
  • 44,080
  • 43
  • 148
  • 200
5
votes
2 answers

How can I get a list of all film ids from Freebase?

On a project I was working on a couple of years back, I was building a set of data about movies from Freebase. A simple shell script downloaded the "film.tsv" file (from http://download.freebase.com/datadumps/latest/browse/film/film.tsv). I then…
ddswy
  • 53
  • 3
5
votes
1 answer

Is there a hierarchical representation of the Freebase types?

For example, if some topic (Ex: Texas) is of type /location/citytown, I also see that there is a type "/location/location" attached to the same topic. In addition, here as the topic is the name of a city or town, it is also by default a general…
London guy
  • 24,942
  • 40
  • 110
  • 169
4
votes
2 answers

freebase getting plain names of types and sorting by commonality

I'd like to be able to get a list of types by their common name from a freebase ID { "id": "/m/02mjmr", #obama "type":[] }​ How can I return the names of the types instead of their IDs? The above returns 0: "/common/topic"xp 1:…
ere
  • 1,689
  • 1
  • 19
  • 39
4
votes
2 answers

Freebase: Format search result to list all properties of object of unknown type(s)

I'm trying to write a MQL query to format a search result in freebase (the "output" parameter in the search API). I essentially want to find the (simple) values of all the properties of a given search result (without knowing anything about the types…
4
votes
2 answers

converting freebase MQL to SPARQL

following freebase MQL finds 5 artists and 50 albums for each artists. [{ "type" : "/music/artist", "name":null, "album" : [{ "name" : null, "count":null, "limit":50 }], "limit":5 }] first try - without a subquery I can write…
Jason Heo
  • 9,036
  • 2
  • 30
  • 50
4
votes
1 answer

Google’s Freebase API: Basic MQL Query and JSON Parse Example in Java?

Question What would a basic example of querying Freebase with MQL from the Java Freebase API (google-api-services-freebase) look like and what is the recommended way for processing the resulting data? I’m especially wondering how to “correctly” use…
Chriki
  • 7,999
  • 3
  • 37
  • 55
4
votes
1 answer

What is the difference between notable_for and notable_types property?

I see that there are both /common/topic/notable_types and /common/topic/notable_for properties in the topic dump of Freebase. What is the difference between these two? I am assuming that both are providing the notable types of a topic.
London guy
  • 24,942
  • 40
  • 110
  • 169
4
votes
2 answers

Freebase MQL filter where value == null?

Can get all triples with value null in specific field? All people with date_of_birth equal null? [ "type": "/people/person", "date_of_birth":null, "name":null ]
r4ge
  • 286
  • 3
  • 13
4
votes
1 answer

Google Freebase Api C# .Net Example

I am new to developing with the Goolge API’s. I am trying to get the Google.Apis.Freebase.V1 API working in C#. Does anyone have a small example on using this API in C#? I have spent the last several days looking and can only find a couple of…
Scott
  • 151
  • 9
4
votes
2 answers

Non unique query with Freebase MQL read google api

It seems I am only able to do unique queries (i.e. including an entity id in the query) with the new freebase MQL read api: The following searches on id and…
waigani
  • 3,490
  • 5
  • 40
  • 68
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,689
  • 1
  • 19
  • 39
1
2 3
15 16