0

I`ve been examining Freebase and some queries like this:

Retrieving/storing All related Actors in Freebase

and I`ve come up with an idea of finding out degrees of separation between chosen actors. Is there a way to make MQL find a link (by other actors that co-starred in a movie) between for example 'John Wayne' and 'Daniel Craig'?

Community
  • 1
  • 1
MartinV
  • 11

2 Answers2

1

I may be a little late to answer, but recently I came across an excellent tutorial from GraphLab that seems to do exactly what you're describing. Check out:

http://graphlab.com/learn/notebooks/graph_analytics_movies.html

alexizydorczyk
  • 850
  • 1
  • 6
  • 25
0

Here's a thread from the Freebase mailing list that discusses an app that did Six Degrees of Kevin Bacon. Its actually pretty difficult to do this with the MQL API because after you get a couple of degrees apart the queries start to time out.

I'd recommend that you download the Freebase data dump and calculate all of the shortest paths between every actor in Freebase offline. You can then save all those paths and query them quickly from your app. If you use grep to filter the data dumps down to just the relationships between actors and movies, then the data should be small enough to run the whole search in memory on a desktop/laptop.

Community
  • 1
  • 1
Shawn Simister
  • 4,613
  • 1
  • 26
  • 31
  • Thank you Shawn for your all-embracing answer! I`ll try to cope with your solution and hope it works. – MartinV Jan 25 '14 at 21:08