freebase

Retrieving/storing All related Actors in Freebase

跟風遠走 提交于 2019-12-04 18:44:18
I'm trying to do something that (should be) very simple. Maybe I'm missing something. I want to get a full list of people a person has worked with. My end goal is to find who he works with most often (in whatever relationship that may be) Ex: Robert De Niro has acted together with Joe Pesci 7 times, but directed him twice. I want a table with 9 entries as a result. I can use the topic API, but that only returns a list of movies. I then have to perform 10+ API queries to get the cast of every movie. Takes forever and the code is a nightmare. If I use MQL search, I can only search for movies

Is there an API to get results similar to Google's “people also search for”?

大憨熊 提交于 2019-12-04 17:12:30
I'm looking for an API that would give similar results to the Google's "people also search for" feature. So that, for instance, when I search for Stanley Kubrik, I see all the other film directors that people search for. I know about the Freebase API but it simply provides information about the search item, not what other search items it may be related to. There is also a TargetingIdeaSelector tool in Google AdWords API that shows related keywords, but that doesn't really range the results semantically. Finally, there's a very simple Bing API that shows related searches (also here ), but,

How to get a list of all films on Wikidata?

让人想犯罪 __ 提交于 2019-12-04 13:58:01
I was using Freebase to get all movies/films there for my website, but it's getting shut down soon. so I was searching for another free database for movies and came across Wikidata. To be honest it's too complicated to understand how to query all the movies. So I thought you guys could help me to get all the movies in Wikidata. In the future I want to include TV shows and series as well. Programming language doesn't matter, I want to use web query with a link. you can look for all the entities that are an instance of film, which in Wikidata is translated as: P31 (instance of) -> Q11424 (film)

Google Freebase Api C# .Net Example

家住魔仙堡 提交于 2019-12-04 09:27:28
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 examples for the old Freebase Api. Nothing for the Google API. I am just looking for a simple example on setting up a connection to the API, doing a search, then how to handle a MQL query back into a Json object. The simpler the better. Thanks Scott The correct code to do a MQL query in C# using the Google API Client Library should look something like

converting freebase MQL to SPARQL

吃可爱长大的小学妹 提交于 2019-12-04 09:05:49
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 SPARQL like this: SELECT ?artist ?album WHERE { ?artist :type :/music/artist . ?artist :album ?album } LIMIT n but, I don't know how many n should be specified because SPARQL has no hierarchy as far as I know. second try - with a sub-query (not sure this works correctly) Following sub-query looks like working. SELECT ?artist ?album WHERE { ?artist :album ?album . { SELECT

freebase api error on deployment to appengine: DownloadError: ApplicationError: 2

天大地大妈咪最大 提交于 2019-12-04 05:49:13
问题 I'm using google.appengine.api urlfetch to preform the following freebase MQL query: https://api.freebase.com/api/service/mqlread?queries={"q1": {"query": [{"subjects": [{"name|=": ["doubt","trust"]}], "type": "/media_common/quotation", "name": null, "author": []}]}} This works as expected on my local setup. Once I deploy to Google AppEngine I get the following error: File "/base/python_runtime/python_lib/versions/1/google/appengine/api/urlfetch.py", line 263, in fetch return rpc.get_result()

Google Api FreeBase data dumps parsing using c#

☆樱花仙子☆ 提交于 2019-12-04 05:24:59
问题 I want to search the google Api freebase. I want to get general amount of data. For example all Ids of songs, or films. I downloaded the data dumps gz file. I wonder what will be the best solution of parsing the file and getting the data I need. I am using .net c#. 回答1: There are a couple .NET libraries that can read the RDF format of the dumps: SemWeb.NET dotNetRdf The data dumps are also formatted as tab separated values so you should be able to use any CSV parser to parse each line as a

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

非 Y 不嫁゛ 提交于 2019-12-03 15:35:31
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 used the "id" field in that file to build the necessary MQL requests for each of the films (retrieving the other properties I was interested in e.g. actors, genres). After looking at the developer's guide today I realise that Freebase has moved on a fair bit and significantly I see that the dump file I used before is no longer available. I also see

How to use Google Knowledge Graph API

♀尐吖头ヾ 提交于 2019-12-03 15:07:13
In what useful way can I use Google Knowledge Graph API at the moment? Let's say I have the MID for 1990 FIFA World Cup , which is /m/014nm_ and I make this request: GET https://kgsearch.googleapis.com/v1/entities:search?ids=%2Fm%2F014nm_&key= {MY_API_KEY} I'll get something like this http://pastebin.com/M1fgj7Ew Now how can I use that information in a meaningful way? Just a description and a wikipedia link is not that comprehensive. How can I find out what other entities are linked to this one in the graph? If I search on Google for 1990 World Cup , I'll get a Knowledge Graph card like this

Import Freebase to Triplestore

我怕爱的太早我们不能终老 提交于 2019-12-03 12:53:08
问题 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, the dump is already available as RDF, so where is the problem if I want to import the dump into my 4store triplestore and access the data via SPARQL? 回答1: For everybody having Problems importing the Freebase Dump: 1) Keep your RDF/Turtle Parser