freebase

Freebase suggest: how to get results in other language.

I need to get a list of cities in french for freebase suggest. I'm trying something like $(".location_input").suggest({type:'/location/citytown', name: [{ lang: '/lang/fr'}] } ); or $(".location_input").suggest({type:'/location/citytown', lang: '/lang/fr'} ); But it doesn't help this way. Any ideas? Documentations is a bit unclear...

Freebase select all cities from administrative division

Any ideas on how to select all citytowns from certain administrative division? Can be any country. Tried to search by fips_10_4_region_code but can't get it working, it seems that /location/citytown doesn't have this property ...

cURL and Freebase's Api

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...

freebase cURL and mqlwrite with PHP

Hi am doing some testing on the Freebase sandbox, but I can't get the following request to work. It hangs for ages then returns nothing. I have also outputted curl_getinfo() if it helps anyone work out where I am going wrong. echo $uri = "http://".$this->config['apiSandboxHost'].'/'.$this->config['apiWritePath'].'={"create":"unles...

Remove type inside the freebase suggested list

Hi, Is it possible to remove the type of research (for example 'Film'), inside the list of items returned from freebase jQuery suggestion? Thanks for your attention. Simone ...

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 of the result a priori). By "simple", I mean only the default properties if the values ar...

How does logging handler become a str?

I have a logger that functions properly at the start of a script, then breaks in the middle. It looks like its handler is getting overwritten by a str, but I can't figure out where. At the start of the script, I'm printing the handler and its level. The following code: print 'Array of handlers', logger.handlers for h in logger.ha...

Where does Python root logger store a log?

I'm using the Freebase Python library. It creates a log before executing: self.log = logging.getLogger("freebase") Where is this log in the file system? It's not in the executing directory or tmp. ...