This disclosure generally relates to social graphs and performing searches for objects within a social-networking environment or related environments.
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.
Social-graph analysis views social relationships in terms of network theory consisting of nodes and edges. Nodes represent the individual users within the networks, and edges represent the relationships between the users. The resulting graph-based structures are often very complex. In its simplest form, a social graph is a map of all of the relevant edges between all the nodes being studied.
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 network (WLAN) 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, a social-networking system may generate reaction-cards in response to a first user's trigger action associated with an online social network. The social-networking system may access a social graph associated with the online social network. The social-graph may comprise a plurality of nodes and a plurality of edges connecting the nodes. Each of the edges between the two nodes may represent a single degree of separation between them. The nodes may comprise a first user node corresponding to the first user associated with the online social network and a plurality of second nodes (one or more user nodes, concepts nodes, or any combination thereof) that each may correspond to a concept or a second user associated with the online social network.
In particular embodiments, the social-networking system may receive a trigger action from the first user of the online social network. The trigger action may comprise a post, a comment, a check-in, a like, share, or any other suitable user's action associated with the social-networking system. As an example, in response to the user's trigger action, the social-networking system may create an edge between the user node corresponding to the user and a second node in social graph. In response to the user's trigger action, the social-networking system may generate a plurality of reaction-cards based at least in part on the trigger action. Each reaction-card may be associated with a structured query referencing one or more of user node, concept node, and edge of the social graph. Furthermore, each reaction-card may comprise references to one or more second nodes of the plurality of second nodes, respectively, matching the structured query associated with the reaction-card. The social-networking system may calculate a reaction-card score for each reaction-card. As an example, the reaction-card score for each reaction-card may be based at least in part on a relevance of the structured query associated with the reaction-card to the trigger action. As another example, the reaction-card score for each reaction-card may be based on one or more user-engagement factors. In particular embodiments, the social-networking system may send, in response, to receiving the trigger action from the first user, each reaction-card having a reaction-card score greater than a threshold reaction-card score to the first user for display on a page currently accessed by the first user. The reaction-cards may offer particular benefits for the first user. As an example, it may inspire conversations with the people around the first user of the online social network. As another example, it may help the first user to discover where to go or what to do next in response to the first user's trigger action.
The embodiments disclosed above are only examples, and the scope of this disclosure is not limited to them. Particular embodiments may include all, some, or none of the components, elements, features, functions, operations, or steps of the embodiments disclosed above.
This disclosure contemplates any suitable network 110. As an example and not by way of limitation, one or more portions of network 110 may include an ad hoc network, an intranet, an extranet, a virtual private network (VPN), a local area network (LAN), a wireless LAN (WLAN), a wide area network (WAN), a wireless WAN (WWAN), a metropolitan area network (MAN), a portion of the Internet, a portion of the Public Switched Telephone Network (PSTN), a cellular telephone network, or a combination of two or more of these. Network 110 may include one or more networks 110.
Links 150 may connect client system 130, social-networking system 160, and third-party system 170 to communication network 110 or to each other. This disclosure contemplates any suitable links 150. In particular embodiments, one or more links 150 include one or more wireline (such as for example Digital Subscriber Line (DSL) or Data Over Cable Service Interface Specification (DOCSIS)), wireless (such as for example Wi-Fi or Worldwide Interoperability for Microwave Access (WiMAX)), or optical (such as for example Synchronous Optical Network (SONET) or Synchronous Digital Hierarchy (SDH)) links. In particular embodiments, one or more links 150 each include an ad hoc network, an intranet, an extranet, a VPN, a LAN, a WLAN, a WAN, a WWAN, a MAN, a portion of the Internet, a portion of the PSTN, a cellular technology-based network, a satellite communications technology-based network, another link 150, or a combination of two or more such links 150. Links 150 need not necessarily be the same throughout network environment 100. One or more first links 150 may differ in one or more respects from one or more second links 150.
In particular embodiments, client system 130 may be an electronic device including hardware, software, or embedded logic components or a combination of two or more such components and capable of carrying out the appropriate functionalities implemented or supported by client system 130. As an example and not by way of limitation, a client system 130 may include a computer system such as a desktop computer, notebook or laptop computer, netbook, a tablet computer, e-book reader, GPS device, camera, personal digital assistant (PDA), handheld electronic device, cellular telephone, smartphone, other suitable electronic device, or any suitable combination thereof. This disclosure contemplates any suitable client systems 130. A client system 130 may enable a network user at client system 130 to access network 110. A client system 130 may enable its user to communicate with other users at other client systems 130.
In particular embodiments, client system 130 may include a web browser 132, such as MICROSOFT INTERNET EXPLORER, GOOGLE CHROME or MOZILLA FIREFOX, and may have one or more add-ons, plug-ins, or other extensions, such as TOOLBAR or YAHOO TOOLBAR. A user at client system 130 may enter a Uniform Resource Locator (URL) or other address directing the web browser 132 to a particular server (such as server 162, or a server associated with a third-party system 170), and the web browser 132 may generate a Hyper Text Transfer Protocol (HTTP) request and communicate the HTTP request to server. The server may accept the HTTP request and communicate to client system 130 one or more Hyper Text Markup Language (HTML) files responsive to the HTTP request. Client system 130 may render a webpage based on the HTML files from the server for presentation to the user. This disclosure contemplates any suitable page files, including webpages or pages presented as a user interface of a native application. As an example and not by way of limitation, webpages may render from HTML files, Extensible Hyper Text Markup Language (XHTML) files, or Extensible Markup Language (XML) files, according to particular needs. Such pages may also execute scripts such as, for example and without limitation, those written in JAVASCRIPT, JAVA, MICROSOFT SILVERLIGHT, combinations of markup language and scripts such as AJAX (Asynchronous JAVASCRIPT and XML), and the like. Herein, reference to a webpage encompasses one or more corresponding webpage files (which a browser may use to render the webpage) and vice versa, where appropriate.
In particular embodiments, social-networking system 160 may be a network-addressable computing system that can host 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 one or more servers 162. Each server 162 may be a unitary server or a distributed server spanning multiple computers or multiple datacenters. Servers 162 may be of various types, such as, for example and without limitation, web server, news server, mail server, message server, advertising server, file server, application server, exchange server, database server, proxy server, another server suitable for performing functions or processes described herein, or any combination thereof. In particular embodiments, each server 162 may include hardware, software, or embedded logic components or a combination of two or more such components for carrying out the appropriate functionalities implemented or supported by server 162. In particular embodiments, social-networking system 160 may include one or more data stores 164. Data stores 164 may be used to store various types of information. In particular embodiments, the information stored in data stores 164 may be organized according to specific data structures. In particular embodiments, each data store 164 may be a relational database. Particular embodiments may provide interfaces that enable a client system 130, a social-networking system 160, or a third-party system 170 to manage, retrieve, modify, add, or delete, the information stored in data store 164.
In particular embodiments, social-networking system 160 may store one or more social graphs in one or more data stores 164. In particular embodiments, a social graph may include multiple nodes—which may include multiple user nodes (each corresponding to a particular user) or multiple concept nodes (each corresponding to a particular concept)—and multiple edges connecting the nodes. Social-networking system 160 may provide users of the online social network the ability to communicate and interact with other users. In particular embodiments, users may join the online social network via social-networking system 160 and then add connections (i.e., relationships) to a number of other users of social-networking system 160 whom they want to be connected to. Herein, the term “friend” may refer to any other user of social-networking system 160 with whom a user has formed a connection, association, or relationship via social-networking system 160.
In particular embodiments, social-networking system 160 may provide users with the ability to take actions on various types of items or objects, supported by social-networking system 160. As an example and not by way of limitation, the items and objects may include groups or social networks to which users of social-networking system 160 may belong, events or calendar entries in which a user might be interested, computer-based applications that a user may use, transactions that allow users to buy or sell items via the service, interactions with advertisements that a user may perform, or other suitable items or objects. A user may interact with anything that is capable of being represented in social-networking system 160 or by an external system of third-party system 170, which is separate from social-networking system 160 and coupled to social-networking system 160 via a network 110.
In particular embodiments, social-networking system 160 may be capable of linking a variety of entities. As an example and not by way of limitation, social-networking system 160 may enable users to interact with each other as well as receive content from third-party systems 170 or other entities, or to allow users to interact with these entities through an application programming interfaces (API) or other communication channels.
In particular embodiments, a third-party system 170 may include one or more types of servers, one or more data stores, one or more interfaces, including but not limited to APIs, one or more web services, one or more content sources, one or more networks, or any other suitable components, e.g., that servers may communicate with. A third-party system 170 may be operated by a different entity from an entity operating social-networking system 160. In particular embodiments, however, social-networking system 160 and third-party systems 170 may operate in conjunction with each other to provide social-networking services to users of social-networking system 160 or third-party systems 170. In this sense, social-networking system 160 may provide a platform, or backbone, which other systems, such as third-party systems 170, may use to provide social-networking services and functionality to users across the Internet.
In particular embodiments, a third-party system 170 may include a third-party content object provider. A third-party content object provider may include one or more sources of content objects, which may be communicated to a client system 130. As an example and not by way of limitation, content objects may include information regarding things or activities of interest to the user, such as, for example, movie show times, movie reviews, restaurant reviews, restaurant menus, product information and reviews, or other suitable information. As another example and not by way of limitation, content objects may include incentive content objects, such as coupons, discount tickets, gift certificates, or other suitable incentive objects.
In particular embodiments, social-networking system 160 also includes user-generated content objects, which may enhance a user's interactions with social-networking system 160. User-generated content may include anything a user can add, upload, send, or “post” to social-networking system 160. As an example and not by way of limitation, a user communicates posts to social-networking system 160 from a client system 130. Posts may include data such as status updates or other textual data, location information, photos, videos, links, music or other similar data or media. Content may also be added to social-networking system 160 by a third-party through a “communication channel,” such as a newsfeed or stream.
In particular embodiments, social-networking system 160 may include a variety of servers, sub-systems, programs, modules, logs, and data stores. In particular embodiments, social-networking system 160 may include one or more of the following: a web server, action logger, API-request server, relevance-and-ranking engine, content-object classifier, notification controller, action log, third-party-content-object-exposure log, inference module, authorization/privacy server, search module, ad-targeting module, user-interface module, user-profile store, connection store, third-party content store, or location store. Social-networking system 160 may also include suitable components such as network interfaces, security mechanisms, load balancers, failover servers, management-and-network-operations consoles, other suitable components, or any suitable combination thereof In particular embodiments, social-networking system 160 may include one or more user-profile stores for storing user profiles. A user profile may include, for example, biographic information, demographic information, behavioral information, social information, or other types of descriptive information, such as work experience, educational history, hobbies or preferences, interests, affinities, or location. Interest information may include interests related to one or more categories. Categories may be general or specific. As an example and not by way of limitation, if a user “likes” an article about a brand of shoes the category may be the brand, or the general category of “shoes” or “clothing.” A connection store may be used for storing connection information about users. The connection information may indicate users who have similar or common work experience, group memberships, hobbies, educational history, or are in any way related or share common attributes. The connection information may also include user-defined connections between different users and content (both internal and external). A web server may be used for linking social-networking system 160 to one or more client systems 130 or one or more third-party system 170 via network 110. The web server may include a mail server or other messaging functionality for receiving and routing messages between social-networking system 160 and one or more client systems 130. An API-request server may allow a third-party system 170 to access information from social-networking system 160 by calling one or more APIs. An action logger may be used to receive communications from a web server about a user's actions on or off social-networking system 160. In conjunction with the action log, a third-party-content-object log may be maintained of user exposures to third-party-content objects. A notification controller may provide information regarding content objects to a client system 130. Information may be pushed to a client system 130 as notifications, or information may be pulled from client system 130 responsive to a request received from client system 130. Authorization servers may be used to enforce one or more privacy settings of the users of social-networking system 160. A privacy setting of a user determines how particular information associated with a user can be shared. The authorization server may allow users to opt in or opt out of having their actions logged by social-networking system 160 or shared with other systems (e.g., third-party system 170), such as, for example, by setting appropriate privacy settings. Third-party-content-object stores may be used to store content objects received from third parties, such as a third-party system 170. Location stores may be used for storing location information received from client systems 130 associated with users. Ad-pricing modules may combine social information, the current time, location information, or other suitable information to provide relevant advertisements, in the form of notifications, to a user.
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 pages.
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-networking 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 pages.
In particular embodiments, a node in social graph 200 may represent or be represented by a page (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 code) 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 send 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 send 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 send 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, mobile client system 130 many include a communication component coupled to antennae 134A-C for communicating with an Ethernet or other wire-based network or a wireless NIC (WNIC), wireless adapter for communicating with a wireless network, such as for example a WI-FI network or modem for communicating with a cellular network, such third generation mobile telecommunications (3G), or Long Term Evolution (LTE) network. This disclosure contemplates any suitable network and any suitable communication component 20 for it. As an example and not by way of limitation, mobile client system 130 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 another example, mobile client system 130 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), 3G, or LTE network), or other suitable wireless network or a combination of two or more of these. Mobile client system 130 may include any suitable communication component for any of these networks, where appropriate.
In particular embodiments, the communication component coupled to antennae 134A-C mobile client system 130 may determine location data based on global positioning system (GPS) signals, cellular triangulation, wireless hotspots, Bluetooth beacons, or any suitable methods for determining location data. In particular embodiments, the location service of mobile client system 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 a GPS function of mobile client system 130. 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 client system 130 is able to acquire GPS data within a pre-determined period of time. As another example, if mobile client system 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 connection with determining a user's location particular embodiments may utilize one or more systems, components, elements, functions, methods, operations, or steps disclosed in U.S. patent application Ser. No. 13/930321, filed 28 Jun. 2013 and U.S. patent application Ser. No. 13/930347, filed 28 Jun. 2013 which are incorporated by reference.
In particular embodiments, social-networking system 160 may generate personalized recommendations of objects that correspond to particular nodes of social graph 200. Herein, reference to a suggested query may refer to a search query with one or more search terms auto-populated with information. Herein, reference to a query-domain may refer to a logical grouping of content objects related to a particular category. The categories may be associated at least with places, people, groups, applications, ratings/reviews, events, photos, or any other suitable things around a user. As an example and not by way of limitation, social-networking system 160 may generate a suggested query for a user as one or more structured queries, unstructured queries, or any combination thereof. As another example and not by way of limitation, social-networking system 160 may generate one or more reaction-cards that reference one or more search results of the suggested query. In particular embodiments, social-networking system 160 may generate and display recommendations in the form of reaction-cards that are personalized or relevant to the user in response to the user performing a particular trigger action on the online social network. One or more reaction-card clusters may be sent to a user in response to various trigger actions, such as posts, comments, check-ins, likes, shares, or other suitable user's actions associated with the online social network. Although this disclosure describes generating a suggested query in a particular manner, this disclosure contemplates generating the suggested query in any suitable manner.
In response to text entered into a text field (for example, text field 550) by the user, social-networking system 160 may identify portions of the text that may correspond to particular social-graph elements. However, in some cases the text entered into the text field may include one or more terms that are ambiguous, where an ambiguous term is a term that may possibly correspond to multiple social-graph elements. To parse the ambiguous term, social-networking system 160 may access a social graph 200 and then parse the text to identify the social-graph elements that corresponded to ambiguous n-grams from the text query. As an example and not by way of limitation, the user may enter unstructured text “friends stanford” into a text field. As the querying user enters this unstructured text into the text field, social-networking system 160 may modify the suggested query to include structured queries incorporating the unstructured text. In particular embodiments, the suggested query may take the form of one or more structured queries auto-populated to include information relevant to the user, such as for example current or user profile information. The text may, of course, be structured with respect to standard language/grammar rules (e.g. English language grammar). However, the text will ordinarily be unstructured with respect to social-graph elements. In other words, text entered into the text field may not ordinarily include embedded references to particular social-graph elements. Thus, as used herein, a structured query refers to a query that contains references to particular social-graph elements, allowing the search engine to search based on the identified elements. Furthermore, the text may be unstructured with respect to formal query syntax. In other words, the text may not necessarily be in the format of a query command that is directly executable by a search engine (e.g., the text query “friends stanford” could be parsed to form a suggested query command “intersect(school(Stanford University), friends(me)”, or “/search/me/friends/[node ID for Stanford University]/students/ever-past/intersect”, which could be executed as a suggested query in a social-graph database). With respect to reaction-cards 410, social-networking system 160 may generate reaction-cards 410 that correspond to both typeahead query results and structured query results. As an example and not by way of limitation, social-networking system 160 may generate a first reaction-card 410 corresponding to the results of the typeahead process and second reaction-card 410 corresponding to the query “Friends Nearby,” and a third reaction-card 410 corresponding to the results of the structured query “Friends Nearby who went to Stanford.” These reaction-cards 410 may then be ranked and filtered as discussed below. Although this disclosure describes receiving particular texts in a particular manner, this disclosure contemplates receiving any suitable texts in any suitable manner. More information on element detection and parsing texts may be found in U.S. patent application Ser. No. 13/556072, filed 23 Jul. 2012, U.S. patent application Ser. No. 13/731866, filed 31 Dec. 2012, and U.S. patent application Ser. No. 13/732101, filed 31 Dec. 2012, each of which is incorporated by reference.
In particular embodiments, social-networking system 160 may access a context-free grammar model comprising a plurality of grammars. Each grammar of the grammar model may comprise one or more non-terminal tokens (or “non-terminal symbols”) and one or more terminal tokens (or “terminal symbols”/“query tokens”), where particular non-terminal tokens may be replaced by terminal tokens. A grammar model is a set of formation rules for strings in a formal language. In particular embodiments, social-networking system 160 may generate one or more strings using one or more grammars. To generate a string in the language, one begins with a string consisting of only a single start symbol. The production rules are then applied in any order, until a string that contains neither the start symbol nor designated non-terminal symbols is produced. In a context-free grammar, the production of each non-terminal symbol of the grammar is independent of what is produced by other non-terminal symbols of the grammar. The non-terminal symbols may be replaced with terminal symbols (i.e., terminal tokens or query tokens). Some of the query tokens may correspond to identified nodes or identified edges, as described previously. A string generated by the grammar may then be used as the basis for a structured query containing references to the identified nodes or identified edges. The string generated by the grammar may be rendered in a natural-language syntax, such that a structured query based on the string is also rendered in natural language. A context-free grammar is a grammar in which the left-hand side of each production rule consists of only a single non-terminal symbol. A probabilistic context-free grammar is a tuple Error! Objects cannot be created from editing field codes., where the disjoint sets Error! Objects cannot be created from editing field codes. and Error! Objects cannot be created from editing field codes. specify the terminal and non-terminal symbols, respectively, with Error! Objects cannot be created from editing field codes. being the start symbol. Error! Objects cannot be created from editing field codes. is the set of productions, which take the form Error! Objects cannot be created from editing field codes., with Error! Objects cannot be created from editing field codes., Error! Objects cannot be created from editing field codes., and Error! Objects cannot be created from editing field codes., the probability that Error! Objects cannot be created from editing field codes. will be expanded into the string Error! Objects cannot be created from editing field codes. The sum of probabilities Error! Objects cannot be created from editing field codes. over all expansions of a given non-terminal Error! Objects cannot be created from editing field codes. must be one. Although this disclosure describes accessing particular grammars, this disclosure contemplates any suitable grammars. Furthermore, although this disclosure describes generating strings in a particular manner, this disclosure contemplates generating strings in any suitable manner.
In particular embodiments, social-networking system 160 may generate a suggested query that is a structured query. These structured queries may be based on strings generated by a grammar model, such that they are rendered in a natural-language syntax with references to the relevant social-graph elements. In particular embodiments, these structured queries may be ranked based on one or more of information associated with user, the user's trigger action (including, for example, text inputted by the user, references to social-graph entities (e.g., likes, tags, etc.), or other structured data associated with the trigger action), user-engagement factors, other suitable factors, or any combination thereof, to infer from among the structured queries which social-graph element is most relevant to the user, the user's trigger action, and the one or more user-engagement factors. Social-networking system 160 may then lock the ambiguous term in the text to the social-graph element inferred to be most relevant to user, the user's trigger action, and the one or more user-engagement factors, and then generate a new set of structured queries based on the relevant social-graph element. This type of structured query may allow social-networking system 160 to more efficiently search for resources and content related to the online social network (such as, for example, profile pages) by searching for content connected to or otherwise related to the identified user nodes 202 and the identified edges 206. As an example and not by way of limitation, referencing
In particular embodiments, the suggested query may correspond to a phrase with one or more auto-populated search terms and may take the form of an unstructured text query. Social-networking system 160 may then search data store 164 (or, in particular, a social-graph database) to identify content that matches the suggested query. The search engine may conduct a search based on the suggested query phrase using various search algorithms and generate search results that identify resources or content (e.g., user-profile pages, content-profile pages, or external resources) that are most likely to be related to the suggested search query. In response, the search engine may identify one or more resources that are likely to be related to the suggested query. The identified content may include, for example, social-graph elements (e.g., user nodes 202 or concept nodes 204), profile pages, external webpages, or any combination thereof. Identified objects may then be generated as search results, where each search result comprises a reference to an identified object. The search results may then be sent to a client system 130 of the querying user for display (e.g., as part of a search-results page comprising references to one or more of the identified objects, or as part of a reaction-card 410 corresponding to a particular query).
In particular embodiments, social-networking system 160 may score the generated suggested queries. The score may be, for example, a confidence score, a probability, a quality, a ranking, another suitable type of score, or any combination thereof. The suggested queries may be scored based on a variety of factors, such as, for example, the page or type of page the user is accessing, user-engagement factors, business-intelligence data, the predicted click-thru rate (CTR) of particular suggested queries, the conversion-rate of particular suggested queries, user-preferences of the first user, the search history of the first user, advertising sponsorship of particular queries, the first user's social-graph affinity for social-graph elements referenced in particular queries, the inferred intent of the first user, the general or current popularity of particular suggested queries, the usefulness of particular suggested queries, the current geographic location of the first user, the current time, other suitable factors, or any combination thereof. As an example and not by way of limitation, the current time may allow social networking system 160 to identify content on the online social network that are currently trending for the first user. In particular embodiments, the user-engagement factors may comprise one or more of demographic information, current information, or social-graph information of the first user. As an example and not by way of limitation, the current information of the first user may correspond to a location history, one or more personal preferences, or a search history of the first user. The search history of the first user may provide information about particular contents from the social graph 200 that are nostalgic to the first user. As another example and not by way of limitation, the social-graph information of the first user may include the social-graph affinity of the first user with respect to one or more second nodes referenced by the suggested query. As yet another example and not by way of limitation, the current information of the first user may include feedback by the first user on previously-displayed reaction-cards. Social-networking system 160 may provide a user-interface (UI) for the first user to enter positive or negative feedback on previously-displayed reaction-cards. In particular embodiments, the negative feedback may be associated with previously-displayed reaction-cards that may not be interesting or useful to the first user. The positive or negative feedback provided by the first user towards content associated with the previously-displayed reaction-cards may be regarded as user-engagement factors to score future suggested queries. In particular embodiments, the user-engagement factors may comprise social-graph information of a second user in relation to one or more of the second nodes (where the second user has at least a subset of demographic information in common with demographic information of the first user). In particular embodiments, the user-engagement factors may comprise one or more sensor information, current time, or one or more capabilities of the mobile client device of the first user. Although this disclosure describes ranking suggested queries in a particular manner, this disclosure contemplates ranking suggested queries in any suitable manner.
In particular embodiments, in response to a suggested query, social-networking system 160 may generate one or more search results, where each search result matches (or substantially matches) the terms of the suggested query. Social-networking system 160 may generate a suggested query based at least in part on information of the user corresponding to a user node 202. In response to the suggested query, social-networking system 160 may generate one or more reaction-cards 410 corresponding to search results of the suggested query. In particular embodiments, reaction-cards 410 corresponding to the search results may be clustered or ranked and sent to the user as a page accessed by a browser client or a UI of a native application. In particular embodiments, social-networking system 160 may generate one or more reaction-cards 410 corresponding to search results of the suggested query. Reaction-cards 410 may include information identifying resources or content (e.g., user-profile pages, content-profile pages, or external resources) that match or are likely to be related to the suggested queries. In particular embodiments, each reaction-card 410 may correspond to one or more of particular user node 202 and particular concept node 204 of social graph 200. Each reaction-card 410 may include one or more links to profile pages associated with the nodes, as well as contextual information about the nodes (i.e., contextual information about the users or concepts that correspond to the nodes). In particular embodiments, each search result may correspond to a node that is connected to one or more of the selected nodes by one or more of the selected edges of the suggested query. In particular embodiments, social-networking system 160 may also transmit advertisements or other sponsored content to the client system 130 in response to the suggested query. The advertisements may be included in as part of reaction-cards 410, or separately. The advertisements may correspond to one or more of the objects referenced in reaction-cards 410. In particular embodiments, social-networking system 160 may filter out one or more reaction-cards 410 identifying particular resources or content based on the privacy settings associated with the users associated with those resources or content. Although this disclosure describes generating particular reaction-cards corresponding to a suggested query in a particular manner, this disclosure contemplates generating any suitable reaction-cards corresponding to any suitable suggested query in any suitable manner. More information on generating search results may be found in U.S. patent application Ser. No. 13/556,017, filed 23 Jul. 2012, U.S. patent application Ser. No. 13/731939, filed 31 Dec. 2012, and U.S. patent application Ser. No. 14/052564, filed 11 Oct. 2013, each of which is incorporated by reference.
In particular embodiments, a reaction-card interface may be a visual model of a home screen of an application and one or more content associated with the application executed on mobile client system 130, as described below. As an example and not by way of limitation, a home screen may set one or more settings of the application, such as for example, the background image of the application, or associate particular functions to particular contents associated with the application, such as for example, an image browser. In particular embodiments, mobile client system 130 may use the reaction-card interface to navigate between a home screen and contents of the application. As an example and not by way of limitation, the reaction-card interface may correspond to the graphical user interface (GUI) of the application and may be provided for display on mobile client system 130 in response to a user pressing or actuating the button associated with the application, after switching from another application executed on mobile client system 130, or after completing a phone call on mobile client system 130. As described below, a reaction-card corresponding to a content of the application may be added to the reaction-cards in response to “launching” or executing a trigger action on the application. In particular embodiments, the trigger action comprises a post, a comment, a check-in, in, a like, share, or any other suitable user's action associated with social-networking system 160. As an example and not by way of limitation, in response to the user's trigger action, social-networking system 160 may create an edge between the user node corresponding to the user and a second node in social graph 200. The trigger action may be associated with or otherwise include references to particular social-graph entities, such as tags, links, check-ins, etc., or other types of structured data associated with the online social network, which may be inputted and/or selected by the user within a composer interface or another suitable user interface. In particular embodiments, the user of mobile client system 130 may navigate between contents of the application through the reaction-cards of the reaction-card interface, as described below.
In particular embodiments, social-networking system 160 may generate and display recommendations in the form of reaction-cards that are personalized or relevant to the user in response to the user performing a particular trigger action on the online social network. In particular embodiments, one or more reaction-card clusters may be sent to a user. Herein, reference to a user-engagement score may refer to a metric for measuring the engagement of a user of the online social network, such as, for example, by engaging with other users, concepts, content, etc. As an example and not by way of limitation, social-networking system 160 may generate one or more reaction-card clusters as part of a native application associated with social-networking system 160 executed on mobile client system 130. In particular embodiments, reaction-cards corresponding to suggested queries may be displayed on a user-interface (UI) of a native application or on a webpage accessed by a browser client on the user's client system 130, as illustrated in
As illustrated in the example of
As described above, each search result may comprise one or more snippets. A snippet is contextual information about the target of the search result. In other words, a snippet provides information about that page or content corresponding to the search result. As an example and not by way of limitation, a snippet may be a sample of content from the profile page (or node) corresponding to the search result. Snippets may be used to display key information about a search result, such as image thumbnails, summaries, document types, page views, comments, dates, authorship, ratings, prices, or other relevant information. In particular embodiments, a snippet for a search result corresponding to users/concepts in an online social network may include contextual information that is provided by users of the online social network or otherwise available on the online social network. As an example and not by way of limitation, a snippet may include one or more of the following types of information: privacy settings of a group; number of members in a group; sponsored messages (e.g., an inline ad unit rendered as a snippet); page categories; physical address; biographical details; interests; relationship status; sexual orientation/preference; sex/gender; age; birthday; current city; education history; political affiliations; religious beliefs; work history; applications used; comments; tags; other suitable contextual information; or any combination thereof. In particular embodiments, a snippet may include references to nodes or edges from the social graph 200. These snippets may be highlighted to indicate the reference corresponds to a social-graph element. Although this disclosure describes particular types of snippets, this disclosure contemplates any suitable types of snippets. In connection with search results and snippets particular embodiments may utilize one or more systems, components, elements, functions, methods, operations, or steps disclosed in U.S. patent application Ser. No. 13/731939, filed 31 Dec. 2012, which is incorporated by reference.
In particular embodiments, reaction-cards 410 of each reaction-card cluster 430 may be ranked and presented to the user according to their inferred relative degrees of relevance to the user, the user's trigger action, and one or more user-engagement factors. In particular embodiments, the relevance of each reaction-card 410 may be associated with the relevance of a suggested query associated with the reaction-card 410. Herein, a relevance of a reaction-card 410 may encompass a relevance of a search query associated with the reaction-card 410, or vice-versa, where appropriate. In particular embodiments, when inferring the relative degrees of relevance based on the user's trigger action, social-networking system 160 may identify a particular second node of social graph 200 to be associated with the user's trigger action. Accordingly, a relative degree of relevance for the reaction-card 410 may be determined at least by a relevance of the one or more second nodes being referenced by the reaction-card 410 to the particular second node being identified by social-networking system 160 to be associated with the user's trigger action. In particular embodiments, the particular second node being identified by social-networking system 160 to be associated with the user's trigger action is the node being referenced by the suggested query associated with the reaction-card 410. Moreover, reaction-cards 410 may be personalized for the user based on, for example, social-graph information, user information, search or browsing history of the user, or other suitable information related to the user. In particular embodiments, the reaction-cards may be ranked using a ranking algorithm. The ranking algorithm may be implemented by social-networking system 160 (for example, by the search engine or by another suitable system) in any suitable manner. As an example and not by way of limitation, reaction-cards that are more relevant may be ranked higher than the reaction-cards that are less relevant. In particular embodiments, the ranking algorithm may be based on one or more ranking heuristics such as, for example, limiting the number of reaction-cards that are displayed, limiting the number of search results displayed in each reaction-card, having mutual exclusivity for reaction-cards that have substantially similar content, preventing repeated displays of reaction-cards with substantially similar search queries and/or search results, other suitable heuristics, or any combination thereof. As an example and not by way of limitation, in response to a trigger action of a user posting the message “I am watching The Grand Budapest Hotel” to the user's wall on the online social network, social-networking system 160 may not display a reaction-card whose search results include posts that are substantially similar to “I am watching The Grand Budapest Hotel” by other users. As another example, referencing the trigger action of the user posting the message “I am watching The Grand Budapest Hotel,” social-networking system 160 may not display a reaction-card whose search results include one or more follow-up posts on the movie “The Grand Budapest Hotel” by the user. In particular embodiments, social-networking system 160 may lower the ranking scores of the reaction-cards in these examples relative to other reaction-cards generated in response to the user's trigger action. In particular embodiments, reaction-cards 410 corresponding to suggested queries may be presented to the user in a ranked order, such as, for example, based on a rank previously determined as described above. Furthermore, in particular embodiments, reaction-cards 410 corresponding to suggested queries above a threshold rank may be sent or displayed to the user. In particular embodiments, the search engine may limit its search to resources and content on the online social network. However, in particular embodiments, the search engine may also search for resources or contents on other sources, such as a third-party system 170, the Internet or World Wide Web, or other suitable sources. Although this disclosure describes querying social-networking system 160 in a particular manner, this disclosure contemplates querying social-networking system 160 in any suitable manner.
In particular embodiments, one or more reaction-cards 410 displayed on page 420B may be modified in response to text entered in association with a trigger action such as for example, posting a message on the online social network. In particular embodiments, one or more client-side and/or backend (server-side) processes may implement and utilize a “typeahead” feature that may automatically modify the suggested query to include terms relevant to the user, the user's trigger action, one or more user-engagement factors, and the text currently being entered by a user into the text field (for example, text field 550). In particular embodiments, as a user is entering text into the text field, the typeahead feature may attempt to match the string of textual characters being entered in the declaration to strings of characters (e.g., names, descriptions) corresponding to user, concepts, or edges and their corresponding elements in the social graph 200. In particular embodiments, when a match is found, the typeahead feature may automatically populate the suggested query with a reference to the social-graph element (such as, for example, the node name/type, node ID, edge name/type, edge ID, or another suitable reference or identifier) of the existing social-graph element. As an example and not by way of limitation, if a user types in “food” or “restaurants,” one or more reaction-cards 410 may be displayed on page 420 that incorporate some typeahead suggestions such as “Restaurants in . . . ” while letting the user continue typing. Furthermore, a [Restaurants] reaction-card (e.g. 410) may be moved to the top of a reaction-card cluster 430 and one or more non-food related reaction-cards (e.g. 410), such as for example “What's on TV” may be moved to the bottom of page 420. The user may then navigate through one or more search results 440 in the [Restaurant] reaction-card as a personalized list of restaurant recommendations. More information on typeahead processes may be found in U.S. patent application Ser. No. 12/763162, filed 19 Apr. 2010, and U.S. patent application Ser. No. 13/556072, filed 23 Jul. 2012, which are incorporated by reference.
In particular embodiments, the typeahead processes described herein may be applied to text entered by a user. As an example and not by way of limitation, as a user enters text characters into a text field (for example, text field 550), a typeahead process may attempt to identify one or more user nodes 202, concept nodes 204, or edges 206 that match the string of characters entered into the text field as the user is entering the characters. As the typeahead process receives requests or calls including a string or n-gram from the text entry, the typeahead process may perform or causes to be performed a modified suggested query to identify existing social-graph elements (i.e., user nodes 202, concept nodes 204, edges 206) based at least in part on the respective names, types, categories, or other identifiers matching the entered text along with information associated with the user, the user's trigger action, and one or more user-engagement factors. The typeahead process may use one or more matching algorithms to attempt to identify matching nodes or edges and process the modified suggested query that incorporates the identified nodes or edges. In response to the modified suggested query, social-networking system 160 may automatically (or alternately based on an instruction in the request) call or otherwise search a social-graph database for the matching social-graph elements, or for social-graph elements connected to the matching social-graph elements as appropriate. Although this disclosure describes applying the typeahead processes to text entries in a particular manner, this disclosure contemplates applying the typeahead processes to text entries in any suitable manner.
In particular embodiments, social-networking system 160 may display one or more subsequent reaction-cards 410 to the user in response to receiving an input from the user corresponding to an interaction of a previous-displayed reaction-card 410. The subsequent reaction-cards 410 may correspond to modified search queries based on the input from the user. The interaction of the previously-displayed reaction-card 410 may comprise clicking on a URL of a search result, clicking on a picture of a second user as shown next to a search result 440C, writing on the timeline next to search result 440D, clicking on the group picture as shown in search result 540N, or any other suitable user's initiated trigger action. As an example and not by way of limitation, referencing
In particular embodiments, new reaction-cards 410 comprising new search results 440 may be generated by social-networking system 160 in response to an indication that the user is initiating the trigger action. Once the trigger action is completed, social-networking system 160 may sent the new reaction-cards 410 to the user on client system 130 for display to the user. As an example and not by way of limitation, referencing
In particular embodiments, each domain module domain1-domainN may correspond to a particular query-domain. As an example and not by way of limitation, each domain module domain1-domainN may include a search index of a vertical of objects stored on social-networking system 160, as described below. The search index may be hosted by a respective index server comprising one or more computing devices (e.g., servers). As an example and not by way of limitation, the search index of each query-domain may reference objects (as well as social-graph data and other metadata associated with these objects) associated with a particular type of place (e.g., a movie theater, restaurant, landmark, or city), a particular type of entity (e.g., a person, business, group, sports team, or celebrity), a particular type of resource (e.g., an audio file, video file, digital photo, text file, structured document, post/comment on the online social network, or application, including references to social-graph entities associated with the resource, such as tags, links, check-ins, etc., or other types of structured data associated with the reference), a particular type real or intellectual property (e.g., a sculpture, painting, movie, game, song, idea, photograph, or written work), other suitable content objects, or any combination thereof. In particular embodiments, data stores or verticals may store objects of a social-networking system. In particular embodiments, each data store or vertical may store objects of a particular query-domain in a respective data storage device. As an example and not by way of limitation, a first vertical may store objects associated with movies; a second vertical may store objects associated with restaurants; a third vertical may store objects associated with landmarks. In particular embodiments, each object may have filter values that are metadata or attributes that describe particular query-filters that are characteristics of an object stored on social-networking system 160. As an example and not by way of limitation, example query-filters [“Genre”], [“Cuisine”], [“Location”] may have associated example filter values [“Sci-Fi”], [“Chinese”] and [“Palo Alto”], respectively.
In particular embodiments, the search results of the suggested query returned to card-aggregator module 620 may be modified by query-filters and associated filter values identified by card-recommendation module 630. In particular embodiments, card-recommendation module 630 may identify one or more query-filters relevant to the user from a pre-determined list of query-filters associated with each domain modules domain1-domainN. In particular embodiments, card-recommendation module 630 may store or access information related to information from social-graph 200 of the user, features of objects (e.g. a number of “likes” associated with an object), demographic information of the user, or any combination thereof. In addition, card-recommendation module 630 may access data associated with one or more objects (e.g. hours of operation, physical locations, or event times) stored on one or more third-party systems 170 to supplement the filter values of one or more objects stored on social-networking system 160. Furthermore, card-recommendation module 630 may identify one or more query-filters and associated filter values through identification of one or more edges connecting to one or more concept or user nodes of social-graph 200 of the user. In particular embodiments, card-recommendation module 630 may identify particular query-filters and associated filter values that may be relevant to the user by accessing information stored on user-history module 640 and demographic-data module 650 in combination with the data of card-recommendation module 630. As an example and not by way of limitation, card-recommendation module 630 may access activity of “friends” of the user and identify one or more query-filters and associated filter values based on the activity of the “friends.” For example, a query-filter and associated filter value may be identified based on one or more “friends” of the user “liking” a particular content object, such as for example a particular movie or multiple movies of a particular genre. As another example, card-recommendation module 630 may identify one or more query-filters and associated filter values based on the activity of other users with at least a subset of similar demographic data as the user.
In particular embodiments, demographic-data module 650 may store demographic information of user through the user profile or social graph 200 described above. Example demographic information of the user may include gender, age, hometown, location of residence, school attended, organization membership, religious affiliation, level of education, relationship status, occupation, or any combination thereof. In particular embodiments, one or more query-filters and associated filter values may be identified by card-recommendation module 630 based at least in part on identifying edges to objects in social-graph 200 of other users with similar demographic information to the user stored on demographic-data module 650. As an example and not by way of limitation, card-recommendation module 630 may identify a particular query-filter (e.g. [“Genre”]) having an associated filter value of (e.g. [“Sci-Fi”]) based on other users having at least a subset of demographic information in common with the user, such as for example having the same level of education and occupation. In particular embodiments, card-recommendation module 630 may identify one or more query-filters and filter values for a particular query-domain based at least in part on a determination of whether the user is local or a tourist to the current location. As an example and not by way of limitation, the determination of whether the user is local or tourist of the current location may be based on comparing the current location of the user to hometown or location of residence information stored by demographic-data module 650. As another example, certain demographic information, such as, for example, a user's hometown, work, school, etc., may be derived from stored historic GPS or location data of the user. For example, if location data of the user indicates the user is at Menlo Park during working hours on most days, social-networking system may infer Menlo Park is the workplace of the user. Furthermore, inferred geo-locations of user may be stored in demographic-data module 650 and used by card-recommendation module 630 even if the user does not explicitly provide this information in their user profile. As another example, location data may be extracted from photos of the user to determine a geo-location associated with the user and infer the hometown of the user.
In particular embodiments, user-history module 640 may store social-graph information that may include the user's past activity within social-networking system 160 that may be represented as an edge connecting the node of the user to other nodes of the user's social-graph 200 as described above. As an example and not by way of limitation, user-history module 640 may include a check-in history or “like” history of the user. For example, card-recommendation module 630 may identify particular query-filters (e.g. [“Cuisine”] and [“Location”] and associated filter values [“Chinese”] and [“Palo Alto”], respectively, that are relevant to the user based at least in part on the user having multiple check-ins at one or more restaurants of a particular cuisine near his place of residence. As another example, card-recommendation module 630 may identify one or more query-filters and associated filter values based at least in part on a search history of the user stored on user-history module 640. In particular embodiments, user-history module 640 may include information associated with interactions of the user with previously displayed reaction-cards 410. As described below, one or more query-filters and associated filter values may be identified as being more or less relevant to the user based at least in part on interactions or lack of interaction by the user with reaction—cards 410 referencing the query-filters and associated filter values. In particular embodiments, card-recommendation module 630 may identify one or more query-filters for a particular query-domain based at least in part on a determination of whether the user is local or a tourist to the current location. As an example and not by way of limitation, the determination of whether the user is local or tourist of the current location may be based on the “check-in” or “likes” of the user stored by user-history module 640. In particular embodiments, the determination of whether the user is a local or tourist may be based on calculating a score based on information of the user stored by user-history module 640 or demographic-data module 650 as described above.
Card-recommendation module 630 may send the identified query-filters and associated filter value of the particular query-domains of the suggested query to domain modules domain1-domainN. Although this disclosure describes query-domains having a particular number of query-filters having a particular number of associated filter values, this disclosure contemplates query-domains having any suitable number of query-filters and associated filter values. In particular embodiments, query-filters may remove or ignore a subset of search results returned by domain modules domain1-domainN based at least in part on the identified query-filters and associated filter values. As an example and not by way of limitation, for query-filter [“Rating”] and associated filter value [“4 Stars”] of the [“Restaurant”] query-domain, one or more objects associated with the [“Restaurant”] query-domain that are returned in response to the suggested query and have a [“4 Stars”] filter value for the [“Rating”] query-filter are sent to card-aggregator module 620.
As described above, card-aggregator module 620 may generate one or more reaction-cards 410 that reference one or more objects received from domain modules domain1-domainN in response to the suggested query. In particular embodiments, a reaction-card score may be calculated for each reaction-card 410 based on an inferred degree of relevance of the search query associated with the reaction-card 410 to the user's trigger action, as described above. In particular embodiments, a reaction-card score may be calculated for each reaction-card 410 based on one or more user-engagement factors. In particular embodiments, the user-engagement factors may include one or more of social-graph information, demographic information, current information of the user, information associated with a mobile client device of the user, or any combination thereof, as described above. The reaction-card score may be, for example, a confidence score, a probability, a quality, a ranking, another suitable type of score, or any combination thereof. As an example and not by way of limitation, the reaction-card score for each reaction-card may represent a probability that the user will engage with the reaction-card. As another example, the reaction-card score may represent an estimate of the degree and depth of user interaction with reaction-cards 410 referencing particular objects against a clearly defined set of goals. As an example and not by way of limitation, calculating the reaction-card score may be based on previous user engagement with reaction-cards 410 referencing each query-domain, previous click-thru rate of reaction-cards 410 referencing each query-domain, the conversion-rate of particular reaction-cards 410 referencing each query-domain, preferences of the user, the search history of the user, the user's social-graph affinity for social-graph elements or objects referenced by reaction-cards 410, inferring the intent of the user, the current location of the user, the general or current popularity of the query-domain of reaction-cards 410 (“trending”), other suitable factors, or any combination thereof. As an example and not by way of limitation, preferences of the user may specify, for example, suggested queries or types of suggest queries of interest or not of interest to the user. As an example and not by way of limitation, social-networking system 160 may identify reaction-cards 410 that correspond to suggested queries or reference query-domains/filters preferred by the user, as specified by a user-preference of the user, and calculate higher reaction-card scores for these reaction-cards 410 specified as being preferred by the user (similarly, reaction-cards 410 corresponding to suggested queries or suggested query-domains/filters specified as being not preferred may be scored lower or completely excluded/assigned null scores). As another example, the intent of the user may be inferred, and reaction-cards corresponding to suggested queries related to that intent may be generated and sent to the user. In particular embodiments, a reaction-card score may be calculated for each reaction-card 410 based on advertising sponsorship. As an example and not by way of limitation, a particular place or object that an advertiser wants to promote may be boosted or promoted inside a reaction-card 410 of reaction-card cluster 430 or as a single item reaction-card 410 for the user in their ranked reaction-cards. A reaction-card score of promoted reaction-card 410 may take into account a dynamic auction to offset the engagement “hit” incurred for displaying another reaction-card 410 that is potentially less engaging to users. Although this disclosure describes calculating the reaction-card scores of reaction-cards in a particular manner, this disclosure contemplates calculating the reaction-card scores of reaction-cards in any suitable manner.
Social-networking system 160 may send one or more reaction-cards 410 to the user. As an example and not by way of limitation, reaction-cards 410 may be sent as one or more reaction-card clusters 430. In particular embodiments, reaction-cards 410 may be displayed on a page currently accessed by the user. As an example and not by way of limitation, the page may be a profile page of social-network system 160 (e.g., a user-profile page of the querying user or another user, or a concept-profile page of a concept associated with the online social network), a newsfeed page of the online social network, a search-results page corresponding to a particular reaction-card, or another suitable page of the online social network. In particular embodiments, reaction-cards 410 may be displayed on a new page. In particular embodiments, each sent reaction-card 410 may have a reaction-card score greater than a reaction-card threshold for the user. After scoring reaction-cards 410, social-networking system 160 may then send only those reaction-cards 410 having a reaction-card score greater than the reaction-card threshold score. In particular embodiments, the sent reaction-cards 410 may be displayed with other associated reaction-cards 410 forming a reaction-card cluster 430 corresponding to the user's trigger action on the online social network. In particular embodiments, reaction-cards 410 corresponding to suggested queries having a reaction-card score greater than the reaction-card threshold score may automatically be pushed to a user. As an example and not by way of limitation, the sent reaction-cards may be added to an existing reaction-card cluster 430, or formed a new reaction-card cluster 430 to be displayed to the user. Reaction-cards 410 may be generated and scored, as described previously, and rather than displaying the reaction-cards in association with any user's trigger action, the reaction-card could be generated as a newsfeed store and displayed in a user's newsfeed in response to the user accessing a newsfeed page of the online social network, in a standalone application, or on a home screen of a client system.
In particular embodiments, social-networking system 160 may determine the social-graph affinity (which may be referred to herein as “affinity”) of various social-graph entities for each other. Affinity may represent the strength of a relationship or level of interest between particular objects associated with the online social network, such as users, concepts, content, actions, advertisements, other objects associated with the online social network, or any suitable combination thereof. Affinity may also be determined with respect to objects associated with third-party systems 170 or other suitable systems. An overall affinity for a social-graph entity for each user, subject matter, or type of content may be established. The overall affinity may change based on continued monitoring of the actions or relationships associated with the social-graph entity. Although this disclosure describes determining particular affinities in a particular manner, this disclosure contemplates determining any suitable affinities in any suitable manner.
In particular embodiments, social-networking system 160 may measure or quantify social-graph affinity using an affinity coefficient (which may be referred to herein as “coefficient”). The coefficient may represent or quantify the strength of a relationship between particular objects associated with the online social network. The coefficient may also represent a probability or function that measures a predicted probability that a user will perform a particular action based on the user's interest in the action (or may be used as an input to calculate such a probability). In this way, a user's future actions may be predicted based on the user's prior actions, where the coefficient may be calculated at least in part on a history of the user's actions. This predicted probability represented by the coefficient may be different than the probabilities used to score search queries or reaction-cards discussed previously, may be used as a factor in calculating those probabilities, or may be directly used for those probabilities, as appropriate. Coefficients may be used to predict any number of actions, which may be within or outside of the online social network. As an example and not by way of limitation, these actions may include various types of communications, such as sending messages, posting content, or commenting on content; various types of observation actions, such as accessing or viewing profile pages, media, or other suitable content; various types of coincidence information about two or more social-graph entities, such as being in the same group, tagged in the same photograph, checked-in at the same location, or attending the same event; or other suitable actions. Although this disclosure describes measuring affinity in a particular manner, this disclosure contemplates measuring affinity in any suitable manner.
In particular embodiments, social-networking system 160 may use a variety of factors to calculate a coefficient. These factors may include, for example, user actions, types of relationships between objects, location information, other suitable factors, or any combination thereof. In particular embodiments, different factors may be weighted differently when calculating the coefficient. The weights for each factor may be static or the weights may change according to, for example, the user, the type of relationship, the type of action, the user's location, and so forth. Ratings for the factors may be combined according to their weights to determine an overall coefficient for the user. As an example and not by way of limitation, particular user actions may be assigned both a rating and a weight while a relationship associated with the particular user action is assigned a rating and a correlating weight (e.g., so the weights total 100%). To calculate the coefficient of a user towards a particular object, the rating assigned to the user's actions may comprise, for example, 60% of the overall coefficient, while the relationship between the user and the object may comprise 40% of the overall coefficient. In particular embodiments, social-networking system 160 may consider a variety of variables when determining weights for various factors used to calculate a coefficient, such as, for example, the time since information was accessed, decay factors, frequency of access, relationship to information or relationship to the object about which information was accessed, relationship to social-graph entities connected to the object, short- or long-term averages of user actions, user feedback, other suitable variables, or any combination thereof. As an example and not by way of limitation, a coefficient may include a decay factor that causes the strength of the signal provided by particular actions to decay with time, such that more recent actions are more relevant when calculating the coefficient. The ratings and weights may be continuously updated based on continued tracking of the actions upon which the coefficient is based. Any type of process or algorithm may be employed for assigning, combining, averaging, and so forth the ratings for each factor and the weights assigned to the factors. In particular embodiments, social-networking system 160 may determine coefficients using machine-learning algorithms trained on historical actions and past user responses, or data farmed from users by exposing them to various options and measuring responses. Although this disclosure describes calculating coefficients in a particular manner, this disclosure contemplates calculating coefficients in any suitable manner.
In particular embodiments, social-networking system 160 may calculate a coefficient based on a user's actions. Social-networking system 160 may monitor such actions on the online social network, on a third-party system 170, on other suitable systems, or any combination thereof. Any suitable type of user actions may be tracked or monitored. Typical user actions include viewing profile pages, creating or posting content, interacting with content, tagging or being tagged in images, joining groups, listing and confirming attendance at events, checking-in at locations, liking particular pages, creating pages, and performing other tasks that facilitate social action. In particular embodiments, social-networking system 160 may calculate a coefficient based on the user's actions with particular types of content. The content may be associated with the online social network, a third-party system 170, or another suitable system. The content may include users, profile pages, posts, news stories, headlines, instant messages, chat room conversations, emails, advertisements, pictures, video, music, other suitable objects, or any combination thereof. Social-networking system 160 may analyze a user's actions to determine whether one or more of the actions indicate an affinity for subject matter, content, other users, and so forth. As an example and not by way of limitation, if a user may make frequently posts content related to “coffee” or variants thereof, social-networking system 160 may determine the user has a high coefficient with respect to the concept “coffee”. Particular actions or types of actions may be assigned a higher weight and/or rating than other actions, which may affect the overall calculated coefficient. As an example and not by way of limitation, if a first user emails a second user, the weight or the rating for the action may be higher than if the first user simply views the user-profile page for the second user.
In particular embodiments, social-networking system 160 may calculate a coefficient based on the type of relationship between particular objects. Referencing the social graph 200, social-networking system 160 may analyze the number and/or type of edges 206 connecting particular user nodes 202 and concept nodes 204 when calculating a coefficient. As an example and not by way of limitation, user nodes 202 that are connected by a spouse-type edge (representing that the two users are married) may be assigned a higher coefficient than a user nodes 202 that are connected by a friend-type edge. In other words, depending upon the weights assigned to the actions and relationships for the particular user, the overall affinity may be determined to be higher for content about the user's spouse than for content about the user's friend. In particular embodiments, the relationships a user has with another object may affect the weights and/or the ratings of the user's actions with respect to calculating the coefficient for that object. As an example and not by way of limitation, if a user is tagged in first photo, but merely likes a second photo, social-networking system 160 may determine that the user has a higher coefficient with respect to the first photo than the second photo because having a tagged-in-type relationship with content may be assigned a higher weight and/or rating than having a like-type relationship with content. In particular embodiments, social-networking system 160 may calculate a coefficient for a first user based on the relationship one or more second users have with a particular object. In other words, the connections and coefficients other users have with an object may affect the first user's coefficient for the object. As an example and not by way of limitation, if a first user is connected to or has a high coefficient for one or more second users, and those second users are connected to or have a high coefficient for a particular object, social-networking system 160 may determine that the first user should also have a relatively high coefficient for the particular object. In particular embodiments, the coefficient may be based on the degree of separation between particular objects. The lower coefficient may represent the decreasing likelihood that the first user will share an interest in content objects of the user that is indirectly connected to the first user in the social graph 200. As an example and not by way of limitation, social-graph entities that are closer in the social graph 200 (i.e., fewer degrees of separation) may have a higher coefficient than entities that are further apart in the social graph 200.
In particular embodiments, social-networking system 160 may calculate a coefficient based on location information. Objects that are geographically closer to each other may be considered to be more related or of more interest to each other than more distant objects. In particular embodiments, the coefficient of a user towards a particular object may be based on the proximity of the object's location to a current location associated with the user (or the location of a client system 130 of the user). A first user may be more interested in other users or concepts that are closer to the first user. As an example and not by way of limitation, if a user is one mile from an airport and two miles from a gas station, social-networking system 160 may determine that the user has a higher coefficient for the airport than the gas station based on the proximity of the airport to the user. In particular embodiments, the coefficient of a user towards one or more objects may be based on the geographic proximity of the objects (e.g., to the user and/or each other) and the user's interactions with the objects. As an example and not by way of limitation, a pair of geo-locations that are sequentially visited by the user, such as for example, a restaurant and a nearby movie theater may be considered to be of more interest to each other than unrelated geo-locations.
In particular embodiments, social-networking system 160 may perform particular actions with respect to a user based on coefficient information. Coefficients may be used to predict whether a user will perform a particular action based on the user's interest in the action. A coefficient may be used when generating or presenting any type of objects to a user, such as advertisements, search results, news stories, media, messages, notifications, or other suitable objects. The coefficient may also be utilized to rank and order such objects, as appropriate. In this way, social-networking system 160 may provide information that is relevant to user's interests and current circumstances, increasing the likelihood that they will find such information of interest. In particular embodiments, social-networking system 160 may generate content based on coefficient information. Content objects may be provided or selected based on coefficients specific to a user. As an example and not by way of limitation, the coefficient may be used to generate media for the user, where the user may be presented with media for which the user has a high overall coefficient with respect to the media object. As another example and not by way of limitation, the coefficient may be used to generate advertisements for the user, where the user may be presented with advertisements for which the user has a high overall coefficient with respect to the advertised object. In particular embodiments, social-networking system 160 may generate search results based on coefficient information. Search results for a particular user may be scored or ranked based on the coefficient associated with the search results with respect to the querying user. As an example and not by way of limitation, search results corresponding to objects with higher coefficients may be ranked higher on a search-results page than results corresponding to objects having lower coefficients.
In particular embodiments, social-networking system 160 may calculate a coefficient in response to a request for a coefficient from a particular system or process. To predict the likely actions a user may take (or may be the subject of) in a given situation, any process may request a calculated coefficient for a user. The request may also include a set of weights to use for various factors used to calculate the coefficient. This request may come from a process running on the online social network, from a third-party system 170 (e.g., via an API or other communication channel), or from another suitable system. In response to the request, social-networking system 160 may calculate the coefficient (or access the coefficient information if it has previously been calculated and stored). In particular embodiments, social-networking system 160 may measure an affinity with respect to a particular process. Different processes (both internal and external to the online social network) may request a coefficient for a particular object or set of objects. Social-networking system 160 may provide a measure of affinity that is relevant to the particular process that requested the measure of affinity. In this way, each process receives a measure of affinity that is tailored for the different context in which the process will use the measure of affinity.
In connection with social-graph affinity and affinity coefficients, particular embodiments may utilize one or more systems, components, elements, functions, methods, operations, or steps disclosed in U.S. patent application Ser. No. 11/503093, filed 11 Aug. 2006, U.S. patent application Ser. No. 12/977027, filed 22 Dec. 2010, U.S. patent application Ser. No. 12/978265, filed 23 Dec. 2010, and U.S. patent application Ser. No. 13/632869, filed 01 Oct. 2012, each of which is incorporated by reference.
In particular embodiments, an advertisement may be text (which may be HTML-linked), one or more images (which may be HTML-linked), one or more videos, audio, one or more ADOBE FLASH files, a suitable combination of these, or any other suitable advertisement in any suitable digital format presented on one or more pages, in one or more e-mails, or in connection with search results requested by a user). In addition or as an alternative, an advertisement may be one or more sponsored stories (e.g. a newsfeed or ticker item on social-networking system 160), or may be one or more sponsored queries (e.g., a suggested query referencing a particular object). A sponsored story or query may include a reference to a social action by a user (such as “liking” a page, “liking” or commenting on a post on a page, RSVPing to an event associated with a page, voting on a question posted on a page, checking in to a place, using an application or playing a game, or “liking” or sharing a website) that an advertiser promotes by, for example, having the social action presented within a pre-determined area of a profile page of a user or other page, presented with additional information associated with the advertiser, bumped up or otherwise highlighted within news feeds or tickers of other users, or otherwise promoted. The advertiser may pay to have the social action promoted.
In particular embodiments, an advertisement may be requested for display within social-networking-system pages, third-party webpages, or other pages. An advertisement may be displayed in a dedicated portion of a page, such as in a banner area at the top of the page, in a column at the side of the page, in a GUI of the page, in a pop-up window, in a drop-down menu, in an input field of the page, over the top of content of the page, or elsewhere with respect to the page. In addition or as an alternative, an advertisement may be displayed within an application. An advertisement may be displayed within dedicated pages, requiring the user to interact with or watch the advertisement before the user may access a page or utilize an application. The user may, for example view the advertisement through a web browser.
A user may interact with an advertisement in any suitable manner. The user may click or otherwise select the advertisement. By selecting the advertisement, the user may be directed to (or a browser or other application being used by the user) a page associated with the advertisement. At the page associated with the advertisement, the user may take additional actions, such as purchasing a product or service associated with the advertisement, receiving information associated with the advertisement, or subscribing to a newsletter associated with the advertisement. An advertisement with audio or video may be played by selecting a component of the advertisement (like a “play button”). Alternatively, by selecting the advertisement, social-networking system 160 may execute or modify a particular action of the user. As an example and not by way of limitation, advertisements may be included among the search results of a search-results page, where sponsored content is promoted over non-sponsored content. As another example and not by way of limitation, advertisements may be included among suggested search queries, where suggested queries that reference the advertiser or its content/products may be promoted over non-sponsored queries.
An advertisement may include social-networking-system functionality that a user may interact with. For example, an advertisement may enable a user to “like” or otherwise endorse the advertisement by selecting an icon or link associated with endorsement. As another example, an advertisement may enable a user to search (e.g., by executing a query) for content related to the advertiser. Similarly, a user may share the advertisement with another user (e.g. through social-networking system 160) or RSVP (e.g. through social-networking system 160) to an event associated with the advertisement. In addition or as an alternative, an advertisement may include social-networking-system context directed to the user. For example, an advertisement may display information about a friend of the user within social-networking system 160 who has taken an action associated with the subject matter of the advertisement. As an example and not by way of limitation, a particular place or object that an advertiser wants to promote may be boosted or promoted inside a reaction-card 410 of reaction-card cluster 430 or as a single item reaction-card 410 for the user in their ranked reaction-cards. A ranking of promoted reaction-card 410 may take into account a dynamic auction to offset the engagement “hit” incurred for displaying another reaction-card 410 that is potentially less engaging to users. As another example, a sponsored reaction-card 410, not just a sponsored item may be displayed to the user. For example, a NETFLIX reaction-card 410 may correspond to only content available on NETFLIX or a STARBUCKS reaction-card 410 may be a “Starbucks Nearby” reaction-card 410 that may be displayed ahead of reaction-cards 410 corresponding to “Cafes Nearby.”
This disclosure contemplates any suitable number of computer systems 800. This disclosure contemplates computer system 800 taking any suitable physical form. As example and not by way of limitation, computer system 800 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 800 may include one or more computer systems 800; 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 800 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 800 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 800 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 800 includes a processor 802, memory 804, storage 806, an input/output (I/O) interface 808, a communication interface 810, and a bus 812. 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 802 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 802 may retrieve (or fetch) the instructions from an internal register, an internal cache, memory 804, or storage 806; decode and execute them; and then write one or more results to an internal register, an internal cache, memory 804, or storage 806. In particular embodiments, processor 802 may include one or more internal caches for data, instructions, or addresses. This disclosure contemplates processor 802 including any suitable number of any suitable internal caches, where appropriate. As an example and not by way of limitation, processor 802 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 804 or storage 806, and the instruction caches may speed up retrieval of those instructions by processor 802. Data in the data caches may be copies of data in memory 804 or storage 806 for instructions executing at processor 802 to operate on; the results of previous instructions executed at processor 802 for access by subsequent instructions executing at processor 802 or for writing to memory 804 or storage 806; or other suitable data. The data caches may speed up read or write operations by processor 802. The TLBs may speed up virtual-address translation for processor 802. In particular embodiments, processor 802 may include one or more internal registers for data, instructions, or addresses. This disclosure contemplates processor 802 including any suitable number of any suitable internal registers, where appropriate. Where appropriate, processor 802 may include one or more arithmetic logic units (ALUs); be a multi-core processor; or include one or more processors 802. Although this disclosure describes and illustrates a particular processor, this disclosure contemplates any suitable processor.
In particular embodiments, memory 804 includes main memory for storing instructions for processor 802 to execute or data for processor 802 to operate on. As an example and not by way of limitation, computer system 800 may load instructions from storage 806 or another source (such as, for example, another computer system 800) to memory 804. Processor 802 may then load the instructions from memory 804 to an internal register or internal cache. To execute the instructions, processor 802 may retrieve the instructions from the internal register or internal cache and decode them. During or after execution of the instructions, processor 802 may write one or more results (which may be intermediate or final results) to the internal register or internal cache. Processor 802 may then write one or more of those results to memory 804. In particular embodiments, processor 802 executes only instructions in one or more internal registers or internal caches or in memory 804 (as opposed to storage 806 or elsewhere) and operates only on data in one or more internal registers or internal caches or in memory 804 (as opposed to storage 806 or elsewhere). One or more memory buses (which may each include an address bus and a data bus) may couple processor 802 to memory 804. Bus 812 may include one or more memory buses, as described below. In particular embodiments, one or more memory management units (MMUs) reside between processor 802 and memory 804 and facilitate accesses to memory 804 requested by processor 802. In particular embodiments, memory 804 includes random access memory (RAM). This RAM may be volatile memory, where appropriate 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 804 may include one or more memories 804, where appropriate. Although this disclosure describes and illustrates particular memory, this disclosure contemplates any suitable memory.
In particular embodiments, storage 806 includes mass storage for data or instructions. As an example and not by way of limitation, storage 806 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 806 may include removable or non-removable (or fixed) media, where appropriate. Storage 806 may be internal or external to computer system 800, where appropriate. In particular embodiments, storage 806 is non-volatile, solid-state memory. In particular embodiments, storage 806 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 806 taking any suitable physical form. Storage 806 may include one or more storage control units facilitating communication between processor 802 and storage 806, where appropriate. Where appropriate, storage 806 may include one or more storages 806. Although this disclosure describes and illustrates particular storage, this disclosure contemplates any suitable storage.
In particular embodiments, I/O interface 808 includes hardware, software, or both, providing one or more interfaces for communication between computer system 800 and one or more I/O devices. Computer system 800 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 800. 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 808 for them. Where appropriate, I/O interface 808 may include one or more device or software drivers enabling processor 802 to drive one or more of these I/O devices. I/O interface 808 may include one or more I/O interfaces 808, 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 810 includes hardware, software, or both providing one or more interfaces for communication (such as, for example, packet-based communication) between computer system 800 and one or more other computer systems 800 or one or more networks. As an example and not by way of limitation, communication interface 810 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 810 for it. As an example and not by way of limitation, computer system 800 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 800 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 800 may include any suitable communication interface 810 for any of these networks, where appropriate. Communication interface 810 may include one or more communication interfaces 810, where appropriate. Although this disclosure describes and illustrates a particular communication interface, this disclosure contemplates any suitable communication interface.
In particular embodiments, bus 812 includes hardware, software, or both coupling components of computer system 800 to each other. As an example and not by way of limitation, bus 812 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 812 may include one or more buses 812, 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, feature, functions, operations, or steps, any of these embodiments may include any combination or permutation of any of the components, elements, features, 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.