Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4624146
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T03:05:19+00:00 2026-05-22T03:05:19+00:00

I would like to take data from the Facebook Graph API and analyze it

  • 0

I would like to take data from the Facebook Graph API and analyze it to find out roughly how close one person is to another. I am attempting to use the Pylons framework with SqlAlchemy (right now it is attached to a SQLite database) to store information from the Graph API so that I can make it available to my other applications via a RESTful web service. I am wondering what would be the best approach to analyzing the data.

For example, should I create objects analogous to the nodes and edges in the Graph API (users, posts, statuses, etc.) and analyze them, then store only the aftermath of that analysis in the database, perhaps the UIDs of each node and its connections to other nodes? Or should I store even less, and only have a database of the users and their close friends? Or should I go through step by step and store each of the objects via the ORM mapper in the database and make the analysis from the database after having filled it?

What sorts of concerns go into the designing of a database in situations like this? How should objects relate/map to the model? Where should the analysis be taking place during the whole process of grabbing data and storing it?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T03:05:20+00:00Added an answer on May 22, 2026 at 3:05 am

    I’d store as much as possible, dump everything you can. Try to maintain the relationships between nodes so you can traverse/analyze them later. This affords you the opportunity to analyze your data set as much as you want, over and over and try different things. If you want to use SQLAlchemy you could use a simple self-referential relationship: http://www.sqlalchemy.org/docs/05/mappers.html#adjacency-list-relationships. That way you can maintain the connections between objects easily, and easily traverse them. You should also think about using MongoDB. It’s pretty nice for this sort of thing, you can pretty much just dump the JSON responses you get from Facebook into MongoDB. It also has a great python client. Here’s the MongoDB docs on storing a tree in MongoDB: http://www.mongodb.org/display/DOCS/Trees+in+MongoDB. There are a couple approaches that make sense there.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to take the data output from the query below and join
Using sql server 2000, I would like to take my production data and put
I would like to design very high availability(never take server down, roll out features
I would like some advice on the best approach for transferring DB data from
I would like to take a pascal-cased string like CountOfWidgets and convert it into
I would like to take a stack of images (or potentially an array of
I would like to have an iframe take as much vertical space as it
I would like to know your experience when you need to take over somebody
I am writing an exporting function to take data from a database table and
I have a webpage that reads data from an external source. It can take

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.