Terminology • Graph representation • Some examples • Platform walkthrough FIRST SECOND THIRD Creating a geo located photo app • Features / Server side • Code walkthrough
user) relation – definition of a business relationship between two schemas (e.g. friend) actual data article – an instance of a schema connection – an instance of a relation.
type: god name: Neptune type: god name: Hercules type: god name: Cerebrus type: monster name: Alceme type: god A graph data model father father brother brother pet mother battled times: 12 Ref: http://www.slideshare.net/knowfrominfo/titan-big-graph-data-with-cassandra#btnNext
type: movie name: Top Gun type: movie name: Robert Downey Jr. type: actor text: Cool movie! rating: 4 type: review name: Tom Cruise type: actor Some examples brand actor review friend actor
properties automatically support location search. • Add a property ‘geolocation’ in photo is of type geography • Feature implemented as radial search within 50 mi of phone location
support. • Upload new file and generate a public url for the same. • Use phone gps to resolve location and google to reverse geolocate the location to an address. • Create a photo article corresponding to the file and store the public url in it along with the location and resolved address.
and photo to link a user with his photos. Connection created at the time of upload. • X’s photos are same as “all photos connected to user X with a relation of type user_photo”. • Use graph query for run this query.