freebase

Google Freebase API How To Get URL Of Image?

痴心易碎 提交于 2019-12-20 09:52:42
问题 So, I am trying to figure out how to get URL to an image in Freebase database. I want an image of San Francisco. This is how I get the San Francisco topic: https://www.googleapis.com/freebase/v1sandbox/topic/%2Fen%2Fsan_francisco?key=MY_API_KEY The response contains images, for example: { text: "San Francisco Skyline", lang: "en", id: "/m/04j74yh", creator: "/user/carmenmfenn1", timestamp: "2008-09-01T13:37:22.000Z" } So I then call the GET API again to get the image: https://www.googleapis

Google Freebase API How To Get URL Of Image?

会有一股神秘感。 提交于 2019-12-20 09:51:14
问题 So, I am trying to figure out how to get URL to an image in Freebase database. I want an image of San Francisco. This is how I get the San Francisco topic: https://www.googleapis.com/freebase/v1sandbox/topic/%2Fen%2Fsan_francisco?key=MY_API_KEY The response contains images, for example: { text: "San Francisco Skyline", lang: "en", id: "/m/04j74yh", creator: "/user/carmenmfenn1", timestamp: "2008-09-01T13:37:22.000Z" } So I then call the GET API again to get the image: https://www.googleapis

FSharp.Data 'System.MissingMethodException' when calling Freebase Provider from C#

落花浮王杯 提交于 2019-12-20 03:53:22
问题 Hi I have this piece of code on F#, if I test it from the F# Interactive Editor both isPalindrome and Extract methods work well: namespace Portable3 open FSharp open FSharp.Data open Microsoft.FSharp.Linq open FSharp.Data.FreebaseOperators open MyTrip.Model.MyTrip open MyTrip.Model.FreeBase open System.Runtime open System.Linq module math = let isPalindrome (str : string) = let rec check(s : int, e : int) = if s = e then true elif str.[s] <> str.[e] then false else check(s + 1, e - 1) check(0

Setup api key for freebase queries from appengine

[亡魂溺海] 提交于 2019-12-19 10:21:40
问题 I have followed these instructions: https://developers.google.com/console/help/#generatingdevkeys/. I registered the freebase service and added the Simple API key for browser apps to the query: https://api.freebase.com/api/service/mqlread?key=keygoeshere&query={MQLquery} I then get the following error: {u'code': 100, u'message': u'Invalid API Key (Key not found)', u'stat': u'fail'} If I remove the key from the query it works locally but remotely I get: freebase api error on deployment to

How to extract Freebase Data Dump for a particular topic

天涯浪子 提交于 2019-12-18 06:06:13
问题 I want to extract music data from the freebase data dumps. (http://www.freebase.com/music) Once I have the data dump how to I extract say the following properties http://www.freebase.com/music/recording?schema= Will a better approach be get all songs and then fetch relevant information from it? If this is a good approach how should I go about extracting it? 回答1: zgrep $'\tns:music\.recording' freebase-rdf-{date}.gz | gzip > freebase-filtered.gz should get you started. Depending on what other

freebase api for sorting by city relevance

北城余情 提交于 2019-12-14 02:10:56
问题 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 the most likely cities a person might choose listed first. (population, or?) [{ "/location/country/iso3166_1_alpha2": "US", "/location/location/contains":[ "id" : null, "name" : null, "/location/statistical_region/population" : { "number" : null,

Using Freebase API in Java

怎甘沉沦 提交于 2019-12-13 19:43:22
问题 I am developing a GWT application to get the query results from the Freebase. This is the code of my EntryPoint class. package com.google.tracker.client; import com.freebase.api.Freebase; import com.freebase.json.JSON; import com.google.gwt.core.client.EntryPoint; public class Tracker implements EntryPoint{ public void onModuleLoad() { Freebase freebase = Freebase.getFreebase(); String query_str = "{" + "'id': null," + "'type': '/film/film'," + "'name': 'Blade Runner'," + "'directed_by': [{"

getting error while importing rdf [closed]

泪湿孤枕 提交于 2019-12-13 09:34:43
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . i was trying to import freebase rdf to google refine but getting an error....but now how to extract topic names with notable type from 18 gb rdf to csv etc....any gui tool ? 回答1: 146 GB is too big for OpenRefine (ex-Google Refine) to handle. If there is a GUI tool that will do this out of the box,

Gettting Actor Ids and biographies from the data dumps or Freebase API

丶灬走出姿态 提交于 2019-12-12 10:06:47
问题 Does anyone know the best way of getting Actor Ids from Freebase data dumps, and later on getting the IMDB ids and biographies from the Freebase API? 回答1: Actors will have the type /film/actor and look like this in the dump: ns:m.010q36 rdf:type ns:film.actor. You can find them all in a few minutes from the compressed dump with a simple grep: zgrep $'rdf:type\tns:film.actor.' freebase-rdf-<date of dump>.gz | cut -f 1 | cut -d ':' -f 2 > actor-mids.txt This will generate a list of MIDs in the

Google FreeBase Api - problems with querying

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-12 03:52:57
问题 I am trying to query the google freebase Api. this is the query I want: http://www.freebase.com/query?autorun=1&q=%22id%22:%22/m/0bth54%22,%22/film/film/imdb_id%22:[] and when I try to search the google api to return json it raise error with this url: googleapis.com/freebase/v1/mqlread?query={{%22/film/film/imdb_id%22:‌[],%22id%22:%22/m/027pfg%22}} . What am I doing wrong?? 回答1: There are three things wrong: wrong protocol - must be https:: missing subdomain - www. invalid JSON in query If