This disclosure generally relates to location tracking.
A social-networking system, which may include a social-networking website, may enable its users (such as persons or organizations) to interact with it and with each other through it. The social-networking system may, with input from a user, create and store in the social-networking system a user profile associated with the user. The user profile may include demographic information, communication-channel information, and information on personal interests of the user. The social-networking system may also, with input from a user, create and store a record of relationships of the user with other users of the social-networking system, as well as provide services (e.g. wall posts, photo-sharing, event organization, messaging, games, or advertisements) to facilitate social interaction between or among users.
The social-networking system may send over one or more networks content or messages related to its services to a mobile or other computing device of a user. A user may also install software applications on a mobile or other computing device of the user for accessing a user profile of the user and other data within the social-networking system. The social-networking system may generate a personalized set of content objects to display to a user, such as a newsfeed of aggregated stories of other users connected to the user.
A mobile computing device—such as a smartphone, tablet computer, or laptop computer—may include functionality for determining its location, direction, or orientation, such as a GPS receiver, compass, or gyroscope. Such a device may also include functionality for wireless communication, such as BLUETOOTH communication, near-field communication (NFC), or infrared (IR) communication or communication with a wireless local area networks (WLANs) or cellular-telephone network. Such a device may also include one or more cameras, scanners, touchscreens, microphones, or speakers. Mobile computing devices may also execute software applications, such as games, web browsers, or social-networking applications. With social-networking applications, users may connect, communicate, and share information with other users in their social networks.
In particular embodiments, notifications may be sent to other users with a relationship to the user based on deviation from the estimated routine of a user. The relationship between the other users and the user may be based on the social graph of the user. The routine of the user may be estimated based on grouping of ambient-location readings. Deviation from the estimated routine of the user may be calculated based on the distance between the current ambient-location reading and the routine location expected for the particular time of day and day of the week. For example, if a user who is normally in Menlo Park during work hours appears in San Francisco, a notification may be sent to “friends” of the user who are in San Francisco informing them that the user is in the vicinity. In contrast, no notification would be sent if the user is normally in San Francisco during that particular day of the week and time of the day.
In particular embodiments, user 101 may be an individual (human user), an entity (e.g. an enterprise, business, or third-party application), or a group (e.g. of individuals or entities) that interacts or communicates with or over social-networking system 160. In particular embodiments, social-networking system 160 may be a network-addressable computing system hosting an online social network. Social-networking system 160 may generate, store, receive, and send social-networking data, such as, for example, user-profile data, concept-profile data, social-graph information, or other suitable data related to the online social network. Social-networking system 160 may be accessed by the other components of network environment 100 either directly or via network 110. In particular embodiments, user 101 may be an individual (human user), an entity (e.g. an enterprise, business, or third-party application), or a group (e.g. of individuals or entities) that interacts or communicates with or over social-networking system 160. In particular embodiments, social-networking system 160 may be a network-addressable computing system hosting an online social network. Social-networking system 160 may generate, store, receive, and send social-networking data, such as, for example, user-profile data, concept-profile data, social-graph information, or other suitable data related to the online social network. Social-networking system 160 may be accessed by the other components of network environment 100 either directly or via network 110. In particular embodiments, social-networking system 160 may include an authorization server (or other suitable component(s)) that allows users to opt in to or opt out of having their actions logged by social-networking system 160 or shared with other systems (e.g. third-party systems 170), for example, by setting appropriate privacy settings. A privacy setting of a user may determine what information associated with the user may be logged, how information associated with the user may be logged, when information associated with the user may be logged, who may log information associated with the user, whom information associated with the user may be shared with, and for what purposes information associated with the user may be logged or shared. Authorization servers may be used to enforce one or more privacy settings of the users of social-networking system 160 through blocking, data hashing, anonymization, or other suitable techniques as appropriate.
Third-party system 170 may be accessed by the other components of network environment 100 either directly or via network 110. In particular embodiments, one or more users 101 may use one or more client systems 130 to access, send data to, and receive data from social-networking system 160 or third-party system 170. Client system 130 may access social-networking system 160 or third-party system 170 directly, via network 110, or via a third-party system. As an example and not by way of limitation, client system 130 may access third-party system 170 via social-networking system 160. In particular embodiments, user 101 may be authenticated based at least in part on social-graph information, described below, stored on social-networking system 160. As an example and not by way of limitation, social-networking system 160 may prevent unauthorized usage of social-networking system 160 or third-party system 170 by authenticating user 101 based at least in part on content objects associated with user 101. In particular embodiments, social-networking system 160 receives data from client system 130 corresponding to a selection of content objects and determines whether the selection corresponds to the content objects associated with user 101. Social-networking system 160 may send data to client system 130 authenticating user 101 based at least in part on whether the selection corresponds to the content objects associated with user 101. Client system 130 may be any suitable computing device, such as, for example, a personal computer, a laptop computer, a cellular telephone, a smartphone, or a tablet computer.
Social-networking system 160 or third-party system 170 may automatically and without any manual input from user 101, determine the current location of client system 130. In particular embodiments, social-networking system 160 or third-party system 170 may poll or “ping” an application executed on client system 130 for location data by transmitting an activation signal through network 110 using a wireless communication protocol such as for example, WI-FI or third-generation mobile telecommunications (3G). As an example and not by way of limitation, social-networking system 160 may periodically poll an application of client system 130 running in a background or “sleep” mode. In particular embodiments, the application may be an event-driven application that responds to the activation signal from social-networking system 160. Social-networking system 160 or third-party system 170 may adaptively adjust a pre-determined sampling duration and polling frequency of the location determination performed by the application executed on client system 130 based at least in part on the travel distance of client system 130. As an example and not by way of limitation, the pre-determined sampling duration and polling frequency may be adaptively adjusted based at least in part on whether client system 130 is moving or stationary. When client system 130 is moving and the travel distance is relatively large, social-networking system 160 may request location data from the application more frequently, but with lower accuracy. As another example, when client system 130 is substantially stationary and the travel distance is relatively small, the social-networking system 160 may request location data from client system 130 less frequently but with higher accuracy.
The accuracy of the location data measured by the application may be determined at least in part by the pre-determined sampling duration the location service of client system 130 is activated by social-networking system 160 or third-party system 170. Social-networking system 160 or third-party system may calculate the travel distance of client system 130 based at least in part on comparing the current location of client system 130 with the location from the previous reading. The travel distance of client system 130 may be approximated by the following equation:
distancetravel=(positiont−positiont-1) (1)
Positiont is the position of client system 130 at the most recent location reading and positiont-1 is the position of client system 130 at the second-most-recent location reading. As an example and not by way of limitation, when the travel distance of client system 130 is substantially equal or less than a pre-determined threshold distance, social-networking system 160 or third-party system 170 may determine client system 130 is stationary. In particular embodiments, the pre-determined distance may be the measurement accuracy of the global positioning system (GPS) function of client system 130. Although this disclosure describes adjusting the polling frequency and sampling duration to a particular number of discrete settings based on the travel distance, this disclosure contemplates adjusting the polling frequency and sampling duration to any suitable number of discrete settings or a continuum of settings based on the travel distance.
In particular embodiments, filtering of the location readings may suppress an amount of noise or uncertainty present in individual determinations of the location of client system 130 and reduce the amount of location data associated with client system 130 that is stored on social-networking system 160. In particular embodiments, the location data received by social-networking 160 or third-party system 170 may include information associated with the geographic coordinates and time the location data was measured. As described above, the received geographic coordinates may have an amount of imprecision, even when client system 130 is stationary. In particular embodiments, filtering the location readings may reduce the location readings to a representative geo-location data point that may be stored on social-networking system 160 or third-party system 170. In particular embodiments, a distance between the current location reading, such as for example postitiont, and the initial geo-location data point, such as for example at positiont-1, may calculated and the calculated distance is compared to a pre-determined threshold distance. As described above, the pre-determined threshold distance may be the measurement accuracy of the global positioning system (GPS) function of client system 130. In particular embodiments, the geographic coordinates of the initial geo-location data point may be recalculated and updated based at least in part on the initial geographic coordinates and the current location reading in response to the calculated distance being less than the pre-determined threshold distance. In particular embodiments, a time duration associated with the initial geographic coordinates may be updated with the time associated with the current location reading. In particular embodiments, a new geo-location data point may be created in response to the calculated distance being more than the pre-determined threshold distance. Subsequent location readings may be used to update the geographic coordinates associated with the new geo-location data point. In particular embodiments, the heading or speed of movement of client system 130 may be determined based at least in part on the location readings with a zero time duration. As an example and not by way of limitation, the time duration associated with client system 130 being in motion may be zero. In particular embodiments, social-networking system 160 or third-party system 170 may use filtering to classify multiple geo-location data points. As an example, social-networking system 160 may determine client system 130 has been stationary for a period of time or is moving in a particular heading and speed.
In particular embodiments, social-networking system 160 or third-party system 170 may group multiple location readings from client system 130 to determine a geographic cluster that is representative of the multiple geo-location data points. As an example and not by way of limitation, the multiple geo-location data points may grouped using a spatial-clustering algorithm, as described below. In particular embodiments, the spatial-clustering algorithm may represent multiple geo-location data points as one or more geographic clusters. In particular embodiments, social-networking system 160 or third-party system 170 may infer a time-based routine of user 101 based at least in part on the geographic centers determined using the spatial-clustering algorithm, described below. As described below, social-networking system 160 or third-party system 170 may group the geo-location clusters into one or more routine clusters. As described below, social-networking 160 or third-party 170 system may determine a pattern of user 101 based on the routine centers of the routine clusters. In particular embodiments, social-networking 160 or third-party 170 system may determine a place that corresponds to one or more of the routine centers. As an example and not by way of limitation, social-networking 160 or third-party 170 system may access a database of directory information and associate one or more of the routine centers to a particular residence.
As described above, social-networking system 160 or third-party system 170 may adaptively adjust the polling frequency of the location determination performed by the application executed on client system 130. In particular embodiments, social-networking 160 or third-party 170 system may adjust the polling frequency of the location readings based at least in part on a place that corresponds to one or more of the routine centers and the time of day associated with the routine centers. As an example and not by way of limitation, the polling frequency may be decreased when the current geo-location of user 101 is a home location and during the time it is inferred user 101 normally stays at the home location. As another example, the polling frequency may be decreased when the current geo-location of user 101 is a work place and during the time it is inferred user 101 normally is working at the work place. As described above, decreasing the polling frequency reduces the number of activation signals sent by social-networking 160 or third-party 170 system, thereby reducing the number of location readings.
In particular embodiments, social-networking system 160 may detect when user 101 deviates from the time-based routine inferred from multiple location readings of client system 130. In particular embodiments, social-networking system 160 or third-party system 170 may determine a deviation from the time-based routine based at least in part on calculating a distance between a current location reading of client system 130 and routine centers of user 101. As an example and not way of limitation, social-networking 160 or third-party system 170 may determine a particular routine center from the pattern of geo-locations with a minimum distance to the current location of client system 130. In particular embodiments, the particular routine center corresponds to the day of the week and time of day of the time information of the location data of client system 130. As described above, social-networking 160 or third-party 170 system may adjust the polling frequency of the location readings based at least in part on a place that corresponds to one or more of the routine centers and the time of day associated with the routine centers. In particular embodiments, social-networking 160 or third-party 170 system may increase the polling frequency in response to detect deviation from a inferred routine of the user 101. As an example and not by way of limitation, social-networking 160 or third-party 170 system may increase the polling frequency in response to detecting the current geo-location of user 101 deviates from the inferred work location of user 101 during the inferred work hours of user 101. In particular embodiments, social-networking 160 or third-party 170 system may determine an exigent situation is occurring based at least in part on the inferred place that corresponds to one or more of the routine centers and the time of day associated with the routine centers. As an example and not by way of limitation, social-networking 160 or third-party 170 system may infer an exigent situation is occurring in response to determining user 101 or other users are substantially simultaneously deviating from their inferred time-based routine. For example, social-networking 160 or third-party 170 system may determine an exigent situation is occurring in response to determining the current geo-location of user 101 and other users are deviating from a work place at substantially the same time. As another example, social-networking 160 or third-party 170 system may determine an exigent circumstance is occurring in response to determining the current geo-location of the user deviates from a routine center to an unusual geo-location that does not correspond to a place, e.g. an isolated location, for a prolonged period of time.
The social-networking 160 or third-party system 170 may access the time-based routine of user 101, described above, and determine a routine center of user 101 with the minimum distance from the current location of client system 130. In particular embodiments, a measure of deviation of user 101 from the time-based routine may be determined based at least in part on a distance between the current location of client system 130 and the closest routine center of user 101. As an example and not by way of limitation, social-networking system 160 may determine the distance between the current location of client system 130 and the closest routine center is more a pre-determined distance during work hours and infer user 101 is on vacation.
In particular embodiments, social-networking system 160 or third-party system 170 may send a notification to another user having a relationship with user 101 based at least in part on social-graph information and detection of deviation of the time-based routine by user 101. As example and not by way of limitation, social-networking system 160 may determine user 101 with a most probable location during work hours in Menlo Park is deviating from the time-based routine when user 101 is in San Francisco during work hours. Moreover, social-networking system 160 may determine the current location of other users with a relationship with user 101 based at least in part on social-graph information associated with user 101. In particular embodiments, other users with a relationship to user 101 who are currently located within a pre-determined distance from the current location of user 101 may receive a notification of the current location of user 101. As an example and not by way of limitation, another user currently in San Francisco may receive a notification that user 101 is in San Francisco in response to the time-based routine indicating user 101 is normally in Menlo Park.
In particular embodiments, information of user 101 may be inferred based at least in part on the time-based routine of user 101. In particular embodiments, social-networking system may correlate information stored in one or more databases with the time-based routine associated with user 101 to infer information of user 101. Information stored in the databases may include social-graph information associated with user 101 or information of businesses and their physical locations. As an example and not by way of limitation, social-networking system 160 may infer a home location of user 101 based at least in part on an assumption that most people are at the home location during between 2-5:00 AM every weekday and the geo-location associated with the most probable location of user 101 at those times. As another example, social-networking system 160 may infer the place of employment of user 101 based at least in part on an assumption that most people are at the work place during between 2-5:00 PM every weekday and information of a business having a geo-location that coincides with the geo-location associated with the most probable location of user 101 at those times. As another example, based on a determination of the work place and work hours associated with user 101, social-networking system 160 may infer user 101 is a patron at a particular coffee shop on the way to the work place based at least in part on having a routine center at the geo-location of the coffee shop at a time prior to arriving at the work place. In particular embodiments, social-networking system 160 may modify or add social-graph information associated with user 101 in response to inferred information based on the time-based routine of user 101, as described below.
As illustrated in the example of
In particular embodiments, subsequent geo-location data points 50 may be used to refine the geo-location centroid 52 of geo-location clusters 54. As an example and not by way of limitation, subsequent geo-location data points 50 may be added to one of geo-location clusters 54 based at least in part on a distance between the subsequent geo-location data point 50 and geo-location centroid 52 of each geo-location cluster 54 being less than a pre-determined threshold. In particular embodiments, a new geo-location cluster 54 may be formed from a subsequent geo-location data point 50 in response to the distance between the subsequent geo-location data point 50 and geo-location centroid 52 of each geo-location cluster 54 being more than a pre-determined threshold.
As illustrated in the example of
In the example of
The time-based routine of the user may be inferred based on routine centers 56A-C. In particular embodiments, routine centers 56A-C may be stored as a log that spans the pre-determined period of time by the social-networking or third-party system. As an example and not by way of limitation, routine centers 56A-C may be displayed as a time-elapsed animated sequence or discrete playback of routine centers 56A-C to form a pattern of routine centers 56A-C associated with the user. The social-networking or third-party system may determine a place that corresponds to one or more of routine centers 56A-C. As an example and not by way of limitation, the social-networking or third-party system may access a database of business information and associate one or more routine centers 56A-C to a particular business. In particular embodiments, a probability the user may be at a particular geo-location at a particular time of a particular day of the week may be estimated by calculating a percentage of geo-location centroids corresponding to the particular time are within the particular routine center 56A-C that corresponds to the particular geo-location. As an example and not by way of limitation, if a routine center 56A associated with the first user contains 8 geo-location centroids out of 10 geo-location centroids corresponding to the particular time of day, the social-networking or third-party system may infer the first user is at the routine center 56A during the particular time of day at the particular day of the week with 80% certainty.
As described above, information of the user may be inferred based at least in part on the time-based routine of user. As an example and not by way of limitation, the social-networking system or third-party system may infer a home location of the first user is a particular location in San Francisco based at least in part on the first user having a single routine center 56A at 8 AM on Mondays, as illustrated by example of
As described above, a notification may be sent to a user with a relationship to a particular user in response to the particular user deviating from the inferred time-based routine. In particular embodiments, the social-networking or third-party system determine a particular routine center 56A-C from the pattern of routine centers 56A-C that has a minimum distance to the current geo-location of the user. The social-networking or third-party system may determine the distance between the particular routine center 56A-C of the pattern and the current geo-location, and send a notification to one or more other users in response to the distance between the particular routine center 56A-C and the current geo-location being longer than a pre-determined deviation threshold value. As an example and not by way of limitation, a notification may be sent to a user with a “friend” relationship to the first user in response to the first user having location readings in San Francisco at 1 PM on a Monday that deviate from routine centers 56A that indicate the first user is normally in Menlo Park at that day and time, as illustrated in the example of
As described above, the social-networking or third-party system may poll or “ping” mobile device 130 using an activation signal to obtain location information. As an example and not by way of limitation, the social-networking system may poll an application executed by mobile device 130 for location data by sending the activation signal activate a location service of mobile device 130. The activation signal may be transmitted using a wireless communication protocol such as for example, WI-FI or third-generation mobile telecommunications (3G) and received by mobile device 130 through one or more antennae 14A-B. In particular embodiments, the location service of mobile device 130 may use one or more methods of location determination, such as for example, using the location of one or more cellular towers, crowd-sourced location information associated with a WI-FI hotspot, or the GPS function of mobile device 130.
As described above, the social-networking or third-party system may transmit an activation signal to the application executed by mobile device 130 at the end of the pre-determined sampling duration. The application may transmit the acquired location data and other relevant data to the social-networking or third-party system in response to receiving the transmission signal. In particular embodiments, additional location-service activation signals are periodically transmitted to mobile device 130 during location-data acquisition to keep the application from reverting to the sleep mode before the location data is acquired. As described above, the social-networking or third-party system may adjust the amount of data sent to mobile device 130 based on whether mobile device 130 is stationary or moving. In particular embodiments, a location service of mobile device 130 is activated for the pre-determined sampling duration when receiving one or more location-service activation signals that keeps the application of mobile device 130 active for the pre-determined sampling duration.
The application activates the location service of mobile device 130 in response to receiving the location-service activation signal. In particular embodiments, the location service of mobile device 130 may use one or more methods of location determination, such as for example, using the location of one or more cellular towers, crowd-sourced location information associated with a WI-FI hotspot, or the GPS function of mobile device 130. In particular embodiments, the application of mobile device 130 may transmit location data and other relevant data, such as for example, the signal strength from nearby cellular towers. In particular embodiments, an operating system (OS) of mobile device 130 may arbitrate collecting data by the various methods used by the location service of mobile device 130. As an example and not by way of limitation, the method used by the location service of mobile device 130 may depend at least in part on the pre-determined sampling duration of the location measurement. As an example and not by way of limitation, the application may use GPS data as the primary source of location information depending at least in part on whether mobile device 130 is able to acquire GPS data within the pre-determined sampling duration. As another example, if mobile device 130 is unable to acquire the GPS data within the pre-determined sampling duration, the application may use the location determined using one or more cellular towers or WI-FI hotspots. Although this disclosure describes a location service using particular methods of location determination, this disclosure contemplates a location service using any suitable method or combination of methods of location detection.
In particular embodiments, the application executed on mobile device 130 receives the activation signal that wakes the application from the sleep mode and activates the location service of mobile device 130 for a pre-determined sampling duration, such as for example 10 seconds. As described above, the social-networking or third-party system may adjust the polling frequency (i.e. the time interval between signal transmissions) and sampling duration according to the travel distance of mobile device 130. The pre-determined sampling duration depends at least in part on the desired accuracy of the location data. Increasing the pre-determined sampling duration increases the accuracy of the location of mobile device 130 due at least in part to the application having a higher probability of acquiring GPS data or the location service being able to acquire more detailed GPS data.
In particular embodiments, a user node 202 may correspond to a user of social-networking system 160. As an example and not by way of limitation, a user may be an individual (human user), an entity (e.g. an enterprise, business, or third-party application), or a group (e.g. of individuals or entities) that interacts or communicates with or over social-networking system 160. In particular embodiments, when a user registers for an account with social-networking system 160, social-networking system 160 may create a user node 202 corresponding to the user, and store the user node 202 in one or more data stores. Users and user nodes 202 described herein may, where appropriate, refer to registered users and user nodes 202 associated with registered users. In addition or as an alternative, users and user nodes 202 described herein may, where appropriate, refer to users that have not registered with social-networking system 160. In particular embodiments, a user node 202 may be associated with information provided by a user or information gathered by various systems, including social-networking system 160. As an example and not by way of limitation, a user may provide his or her name, profile picture, contact information, birth date, sex, marital status, family status, employment, education background, preferences, interests, or other demographic information. In particular embodiments, a user node 202 may be associated with one or more data objects corresponding to information associated with a user. In particular embodiments, a user node 202 may correspond to one or more webpages.
In particular embodiments, user node 202 may be associated with information inferred from the time-based routine of the user. As an example and not by way of limitation, a home location of the user inferred from a routine center obtained during particular hours of the day, such as for example 2-5:00 AM, and the home location of the user may be associated with user node 202. In particular embodiments, social-networking system 160 may be able to augment information provided by the user. As an example and not by way of limitation, the user may provide a home location of San Francisco and social-networking system 160 may infer the home location of the user with accuracy within a particular area or street of San Francisco. Moreover, social-networking system may associate the area or street information with user node 202.
In particular embodiments, a concept node 204 may correspond to a concept. As an example and not by way of limitation, a concept may correspond to a place (such as, for example, a movie theater, restaurant, landmark, or city); a website (such as, for example, a website associated with social-network system 160 or a third-party website associated with a web-application server); an entity (such as, for example, a person, business, group, sports team, or celebrity); a resource (such as, for example, an audio file, video file, digital photo, text file, structured document, or application) which may be located within social-networking system 160 or on an external server, such as a web-application server; real or intellectual property (such as, for example, a sculpture, painting, movie, game, song, idea, photograph, or written work); a game; an activity; an idea or theory; another suitable concept; or two or more such concepts. A concept node 204 may be associated with information of a concept provided by a user or information gathered by various systems, including social-networking system 160. As an example and not by way of limitation, information of a concept may include a name or a title; one or more images (e.g. an image of the cover page of a book); a location (e.g. an address or a geographical location); a website (which may be associated with a URL); contact information (e.g. a phone number or an email address); other suitable concept information; or any suitable combination of such information. In particular embodiments, a concept node 204 may be associated with one or more data objects corresponding to information associated with concept node 204. In particular embodiments, a concept node 204 may correspond to one or more webpages.
In particular embodiments, a node in social graph 200 may represent or be represented by a webpage (which may be referred to as a “profile page”). Profile pages may be hosted by or accessible to social-networking system 160. Profile pages may also be hosted on third-party websites associated with a third-party server 170. As an example and not by way of limitation, a profile page corresponding to a particular external webpage may be the particular external webpage and the profile page may correspond to a particular concept node 204. Profile pages may be viewable by all or a selected subset of other users. As an example and not by way of limitation, a user node 202 may have a corresponding user-profile page in which the corresponding user may add content, make declarations, or otherwise express himself or herself. As another example and not by way of limitation, a concept node 204 may have a corresponding concept-profile page in which one or more users may add content, make declarations, or express themselves, particularly in relation to the concept corresponding to concept node 204.
In particular embodiments, a concept node 204 may represent a third-party webpage or resource hosted by a third-party system 170. The third-party webpage or resource may include, among other elements, content, a selectable or other icon, or other inter-actable object (which may be implemented, for example, in JavaScript, AJAX, or PHP codes) representing an action or activity. As an example and not by way of limitation, a third-party webpage may include a selectable icon such as “like,” “check in,” “eat,” “recommend,” or another suitable action or activity. A user viewing the third-party webpage may perform an action by selecting one of the icons (e.g. “eat”), causing a client system 130 to transmit to social-networking system 160 a message indicating the user's action. In response to the message, social-networking system 160 may create an edge (e.g. an “eat” edge) between a user node 202 corresponding to the user and a concept node 204 corresponding to the third-party webpage or resource and store edge 206 in one or more data stores.
In particular embodiments, a pair of nodes in social graph 200 may be connected to each other by one or more edges 206. An edge 206 connecting a pair of nodes may represent a relationship between the pair of nodes. In particular embodiments, an edge 206 may include or represent one or more data objects or attributes corresponding to the relationship between a pair of nodes. As an example and not by way of limitation, a first user may indicate that a second user is a “friend” of the first user. In response to this indication, social-networking system 160 may transmit a “friend request” to the second user. If the second user confirms the “friend request,” social-networking system 160 may create an edge 206 connecting the first user's user node 202 to the second user's user node 202 in social graph 200 and store edge 206 as social-graph information in one or more of data stores 24. In the example of
In particular embodiments, an edge 206 between a user node 202 and a concept node 204 may represent a particular action or activity performed by a user associated with user node 202 toward a concept associated with a concept node 204. As an example and not by way of limitation, as illustrated in
In particular embodiments, social-networking system 160 may create an edge 206 between a user node 202 and a concept node 204 in social graph 200. As an example and not by way of limitation, a user viewing a concept-profile page (such as, for example, by using a web browser or a special-purpose application hosted by the user's client system 130) may indicate that he or she likes the concept represented by the concept node 204 by clicking or selecting a “Like” icon, which may cause the user's client system 130 to transmit to social-networking system 160 a message indicating the user's liking of the concept associated with the concept-profile page. In response to the message, social-networking system 160 may create an edge 206 between user node 202 associated with the user and concept node 204, as illustrated by “like” edge 206 between the user and concept node 204. In particular embodiments, social-networking system 160 may store an edge 206 in one or more data stores. In particular embodiments, an edge 206 may be automatically formed by social-networking system 160 in response to a particular user action. As an example and not by way of limitation, if a first user uploads a picture, watches a movie, or listens to a song, an edge 206 may be formed between user node 202 corresponding to the first user and concept nodes 204 corresponding to those concepts. Although this disclosure describes forming particular edges 206 in particular manners, this disclosure contemplates forming any suitable edges 206 in any suitable manner.
In particular embodiments, social-networking system 160 may create an edge 206 between a user node 202 and a concept node 204 in social graph 200 in response to information of a user inferred from the time-based routine of the user, as described above. As an example and not by way of limitation, social-networking system 160 may infer the user associated with user node 202 likes particular coffee shop based on the time-based routine of the user and information associated with one or more concept nodes 204. As described above, social-networking system 160 may infer the user frequents a particular coffee shop based at least in part a routine center associated with the user coinciding with the location of the coffee shop at a time prior to arriving at the inferred work place of the user. Moreover, the social-networking may create an edge 206 corresponding to a “like” between user node 202 associated with the user and concept node 204 associated with the particular coffee shop. As another example, social-networking system may create an edge 206 between a user node 202 and a concept node 204 that corresponds to a business based at least in part on the inferred time-based routine of the user. As described above, social-networking system may infer user may infer the employer of the user based on the user having a routine center at the place of business and may create an edge 206 corresponding to a “worked at” relationship between user node 202 and concept node 204 corresponding to the employer.
As another example, social-networking system 160 may create an edge 206 corresponding to a “like” relationship between user node 202 and concept node 204 corresponding to a particular type of music or particular sporting team based at least in part on the time-based routine of the user. Social-networking system 160 may create edge 206 corresponding to a “like” relationship between user node 202 and concept node 204 corresponding to a particular sports team in response to the user having a routine center at a venue of the sporting team. As another example, social-networking system 160 may create an edge 206 corresponding to a “like” relationship between user node 202 and concept node 204 corresponding to a particular type of music in response to the user having a routine center at a venue, such as for example a Jazz club, that specializes in a particular type of music.
This disclosure contemplates any suitable number of computer systems 60. This disclosure contemplates computer system 60 taking any suitable physical form. As example and not by way of limitation, computer system 60 may be an embedded computer system, a system-on-chip (SOC), a single-board computer system (SBC) (such as, for example, a computer-on-module (COM) or system-on-module (SOM)), a desktop computer system, a laptop or notebook computer system, an interactive kiosk, a mainframe, a mesh of computer systems, a mobile telephone, a personal digital assistant (PDA), a server, a tablet computer system, or a combination of two or more of these. Where appropriate, computer system 60 may include one or more computer systems 60; be unitary or distributed; span multiple locations; span multiple machines; span multiple data centers; or reside in a cloud, which may include one or more cloud components in one or more networks. Where appropriate, one or more computer systems 60 may perform without substantial spatial or temporal limitation one or more steps of one or more methods described or illustrated herein. As an example and not by way of limitation, one or more computer systems 60 may perform in real time or in batch mode one or more steps of one or more methods described or illustrated herein. One or more computer systems 60 may perform at different times or at different locations one or more steps of one or more methods described or illustrated herein, where appropriate.
In particular embodiments, computer system 60 includes a processor 62, memory 64, storage 66, an input/output (I/O) interface 68, a communication interface 70, and a bus 72. Although this disclosure describes and illustrates a particular computer system having a particular number of particular components in a particular arrangement, this disclosure contemplates any suitable computer system having any suitable number of any suitable components in any suitable arrangement.
In particular embodiments, processor 62 includes hardware for executing instructions, such as those making up a computer program. As an example and not by way of limitation, to execute instructions, processor 62 may retrieve (or fetch) the instructions from an internal register, an internal cache, memory 64, or storage 66; decode and execute them; and then write one or more results to an internal register, an internal cache, memory 64, or storage 66. In particular embodiments, processor 62 may include one or more internal caches for data, instructions, or addresses. This disclosure contemplates processor 62 including any suitable number of any suitable internal caches, where appropriate. As an example and not by way of limitation, processor 62 may include one or more instruction caches, one or more data caches, and one or more translation lookaside buffers (TLBs). Instructions in the instruction caches may be copies of instructions in memory 64 or storage 66, and the instruction caches may speed up retrieval of those instructions by processor 62. Data in the data caches may be copies of data in memory 64 or storage 66 for instructions executing at processor 62 to operate on; the results of previous instructions executed at processor 62 for access by subsequent instructions executing at processor 62 or for writing to memory 64 or storage 66; or other suitable data. The data caches may speed up read or write operations by processor 62. The TLBs may speed up virtual-address translation for processor 62. In particular embodiments, processor 62 may include one or more internal registers for data, instructions, or addresses. This disclosure contemplates processor 62 including any suitable number of any suitable internal registers, where appropriate. Where appropriate, processor 62 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 62. Although this disclosure describes and illustrates a particular processor, this disclosure contemplates any suitable processor.
In particular embodiments, memory 64 includes main memory for storing instructions for processor 62 to execute or data for processor 62 to operate on. As an example and not by way of limitation, computer system 60 may load instructions from storage 66 or another source (such as, for example, another computer system 60) to memory 64. Processor 62 may then load the instructions from memory 64 to an internal register or internal cache. To execute the instructions, processor 62 may retrieve the instructions from the internal register or internal cache and decode them. During or after execution of the instructions, processor 62 may write one or more results (which may be intermediate or final results) to the internal register or internal cache. Processor 62 may then write one or more of those results to memory 64. In particular embodiments, processor 62 executes only instructions in one or more internal registers or internal caches or in memory 64 (as opposed to storage 66 or elsewhere) and operates only on data in one or more internal registers or internal caches or in memory 64 (as opposed to storage 66 or elsewhere). One or more memory buses (which may each include an address bus and a data bus) may couple processor 62 to memory 64. Bus 72 may include one or more memory buses, as described below. In particular embodiments, one or more memory management units (MMUs) reside between processor 62 and memory 64 and facilitate accesses to memory 64 requested by processor 62. In particular embodiments, memory 64 includes random access memory (RAM). This RAM may be volatile memory, where appropriate Where appropriate, this RAM may be dynamic RAM (DRAM) or static RAM (SRAM). Moreover, where appropriate, this RAM may be single-ported or multi-ported RAM. This disclosure contemplates any suitable RAM. Memory 64 may include one or more memories 64, where appropriate. Although this disclosure describes and illustrates particular memory, this disclosure contemplates any suitable memory.
In particular embodiments, storage 66 includes mass storage for data or instructions. As an example and not by way of limitation, storage 66 may include a hard disk drive (HDD), a floppy disk drive, flash memory, an optical disc, a magneto-optical disc, magnetic tape, or a Universal Serial Bus (USB) drive or a combination of two or more of these. Storage 66 may include removable or non-removable (or fixed) media, where appropriate. Storage 66 may be internal or external to computer system 60, where appropriate. In particular embodiments, storage 66 is non-volatile, solid-state memory. In particular embodiments, storage 66 includes read-only memory (ROM). Where appropriate, this ROM may be mask-programmed ROM, programmable ROM (PROM), erasable PROM (EPROM), electrically erasable PROM (EEPROM), electrically alterable ROM (EAROM), or flash memory or a combination of two or more of these. This disclosure contemplates mass storage 66 taking any suitable physical form. Storage 66 may include one or more storage control units facilitating communication between processor 62 and storage 66, where appropriate. Where appropriate, storage 66 may include one or more storages 66. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.
In particular embodiments, I/O interface 68 includes hardware, software, or both providing one or more interfaces for communication between computer system 60 and one or more I/O devices. Computer system 60 may include one or more of these I/O devices, where appropriate. One or more of these I/O devices may enable communication between a person and computer system 60. As an example and not by way of limitation, an I/O device may include a keyboard, keypad, microphone, monitor, mouse, printer, scanner, speaker, still camera, stylus, tablet, touch screen, trackball, video camera, another suitable I/O device or a combination of two or more of these. An I/O device may include one or more sensors. This disclosure contemplates any suitable I/O devices and any suitable I/O interfaces 68 for them. Where appropriate, I/O interface 68 may include one or more device or software drivers enabling processor 62 to drive one or more of these I/O devices. I/O interface 68 may include one or more I/O interfaces 68, where appropriate. Although this disclosure describes and illustrates a particular I/O interface, this disclosure contemplates any suitable I/O interface.
In particular embodiments, communication interface 70 includes hardware, software, or both providing one or more interfaces for communication (such as for example, packet-based communication) between computer system 60 and one or more other computer systems 60 or one or more networks. As an example and not by way of limitation, communication interface 70 may include a network interface controller (NIC) or network adapter for communicating with an Ethernet or other wire-based network or a wireless NIC (WNIC) or wireless adapter for communicating with a wireless network, such as a WI-FI network. This disclosure contemplates any suitable network and any suitable communication interface 70 for it. As an example and not by way of limitation, computer system 60 may communicate with an ad hoc network, a personal area network (PAN), a local area network (LAN), a wide area network (WAN), a metropolitan area network (MAN), or one or more portions of the Internet or a combination of two or more of these. One or more portions of one or more of these networks may be wired or wireless. As an example, computer system 60 may communicate with a wireless PAN (WPAN) (such as for example, a BLUETOOTH WPAN), a WI-FI network, a WI-MAX network, a cellular telephone network (such as, for example, a Global System for Mobile Communications (GSM) network), or other suitable wireless network or a combination of two or more of these. Computer system 60 may include any suitable communication interface 70 for any of these networks, where appropriate. Communication interface 70 may include one or more communication interfaces 70, where appropriate. Although this disclosure describes and illustrates a particular communication interface, this disclosure contemplates any suitable communication interface.
In particular embodiments, bus 72 includes hardware, software, or both coupling components of computer system 60 to each other. As an example and not by way of limitation, bus 72 may include an Accelerated Graphics Port (AGP) or other graphics bus, an Enhanced Industry Standard Architecture (EISA) bus, a front-side bus (FSB), a HYPERTRANSPORT (HT) interconnect, an Industry Standard Architecture (ISA) bus, an INFINIBAND interconnect, a low-pin-count (LPC) bus, a memory bus, a Micro Channel Architecture (MCA) bus, a Peripheral Component Interconnect (PCI) bus, a PCI-Express (PCIe) bus, a serial advanced technology attachment (SATA) bus, a Video Electronics Standards Association local (VLB) bus, or another suitable bus or a combination of two or more of these. Bus 72 may include one or more buses 72, where appropriate. Although this disclosure describes and illustrates a particular bus, this disclosure contemplates any suitable bus or interconnect.
Herein, a computer-readable non-transitory storage medium or media may include one or more semiconductor-based or other integrated circuits (ICs) (such, as for example, field-programmable gate arrays (FPGAs) or application-specific ICs (ASICs)), hard disk drives (HDDs), hybrid hard drives (HHDs), optical discs, optical disc drives (ODDs), magneto-optical discs, magneto-optical drives, floppy diskettes, floppy disk drives (FDDs), magnetic tapes, solid-state drives (SSDs), RAM-drives, SECURE DIGITAL cards or drives, any other suitable computer-readable non-transitory storage media, or any suitable combination of two or more of these, where appropriate. A computer-readable non-transitory storage medium may be volatile, non-volatile, or a combination of volatile and non-volatile, where appropriate.
Herein, “or” is inclusive and not exclusive, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, “A or B” means “A, B, or both,” unless expressly indicated otherwise or indicated otherwise by context. Moreover, “and” is both joint and several, unless expressly indicated otherwise or indicated otherwise by context. Therefore, herein, “A and B” means “A and B, jointly or severally,” unless expressly indicated otherwise or indicated otherwise by context.
The scope of this disclosure encompasses all changes, substitutions, variations, alterations, and modifications to the example embodiments described or illustrated herein that a person having ordinary skill in the art would comprehend. The scope of this disclosure is not limited to the example embodiments described or illustrated herein. Moreover, although this disclosure describes and illustrates respective embodiments herein as including particular components, elements, functions, operations, or steps, any of these embodiments may include any combination or permutation of any of the components, elements, functions, operations, or steps described or illustrated anywhere herein that a person having ordinary skill in the art would comprehend. Furthermore, reference in the appended claims to an apparatus or system or a component of an apparatus or system being adapted to, arranged to, capable of, configured to, enabled to, operable to, or operative to perform a particular function encompasses that apparatus, system, component, whether or not it or that particular function is activated, turned on, or unlocked, as long as that apparatus, system, or component is so adapted, arranged, capable, configured, enabled, operable, or operative.
This application is a continuation under 35 U.S.C. §120 of U.S. patent application Ser. No. 13/760,978, filed 6 Feb. 2013.
Number | Date | Country | |
---|---|---|---|
Parent | 13760978 | Feb 2013 | US |
Child | 15203063 | US |