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 topic.
MQL:
[
{
"/common/topic/image" : [
{
"id" : 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" : [
{
"content" : null
}
],
"name" : "bill gates",
"type" : "/common/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,
"name" : "Jimi Hendrix",
"type" : "/music/artist"
}
The problem is that the query is b...
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
]
...
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 :
select * from profiles order by rand() limit 1;
2) Is there any way to tell Freebase not ...
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, "id":null, "optional": true}],
"type|=" : ["/music/artist","/music/musical_group...
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:
<acre:script>
var q_categories = [{
"id": null,
"name": null,
"sort": "name",
"type": '/fr...
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 useful and some not. In an initial effort to systematically "decide" whether a term is u...
Hi, 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 under "properties" as a label and grab the "text" under the "values" object to match t...
Hi,
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!
...
I am having problems with the freebase MQL login service. I am making a post request then the freebase api should send back headers which I will then analyse and get information from.
But the only header I am getting is HTTP/1.0 200 OK
Code
class myFreebaseClass {
....
function doLogin() {
echo $uri = "http://".$this->config['ap...
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 of the result a priori). By "simple", I mean only the default properties if the values ar...