Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the present invention clearer, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Embodiment based in the present invention, those of ordinary skills are not making under the creative work prerequisite the every other embodiment obtained, and all belong to the scope of embodiment of the present invention protection.
The term used in embodiments of the present invention is only for the purpose of describing specific embodiment, but not is intended to limit the present invention." a kind of " of the singulative used in the embodiment of the present invention and appended claims, " described " and " being somebody's turn to do " also are intended to comprise most forms, unless context clearly means other implications.It is also understood that term used herein " and/or " refer to and comprise one or more projects of listing that are associated any or all may combine.Further be to be understood that, the term adopted herein " comprises " existence of having stipulated described feature, integral body, step, operation, element and/or parts, and does not get rid of the existence of one or more other features, integral body, step, operation, element, parts and/or their group or add.
In embodiments of the present invention, terminal equipment includes but not limited to terminal equipment, personal digital assistant (Personal Digital Assistant, PDA), panel computer, portable equipment are (for example, portable computer), desktop computer, ATM (Automatic Teller Machine, ATM) equipment such as machine, the embodiment of the present invention does not limit.
Embodiment 1
The flow chart of a kind of semantic information sending method that Fig. 1 provides for the embodiment of the present invention 1.
As shown in Figure 1, a kind of semantic information sending method that the embodiment of the present invention 1 provides specifically can comprise:
S101, obtain environmental information, the information of described environmental information is terminal equipment self environment and/or surrounding environment.
Current, terminal equipment has abundant transducer, such as: camera, acceleration transducer, gravity sensor, electronic compass, object proximity sensor, position transducer, ambient light line sensor etc.Terminal equipment utilizes transducer can obtain self environment of terminal equipment and/or the information of surrounding environment, and these information are all environmental informations.Environmental information is the abstract digitlization of obtaining of terminal equipment transducer and/or the information of character.
Should be appreciated that obtaining of described environmental information is not all the time all to carry out, but, when being triggered, just obtain environmental information.For example, mobile phone is originally inactive state, and then the user picks up mobile phone and carrying mobile phone and walking or run, and acceleration transducer has detected the variation of mobile phone state, is triggered, and then obtains environmental information.
S102, analyze described environmental information, generative semantics information, semantic information is that the described semantic information of the information that using value is arranged that the user by analyzing described environmental information generation can understand is the information that using value is arranged that the user by analyzing described environmental information generation can understand.
The environmental information that terminal equipment obtains according to transducer, can generative semantics information, and this semantic information is the information that using value is arranged that can understand by analyzing user that described environmental information generates.Than abstract environmental information, generative semantics information is the information that the user can understand by analysis, can be employed the information that program is used, for example, can be the strong and weak information of terminal equipment ambient light, temperature height information, stream of people's density information, geographical location information or terminal equipment be in level information, heeling condition information etc.
Concrete, the transducer of terminal equipment is as follows according to the method for environmental information generative semantics information:
One, position transducer
The position transducer of terminal equipment, according to environmental informations such as longitudes and latitudes, obtains the position of described terminal equipment, as this terminal equipment between on April 1st, 2012 13:00 to 21:00 in Shanghai.
Two, acceleration transducer
The acceleration sensor of terminal equipment utilizes the environmental informations such as speed, acceleration, obtain described terminal equipment between on April 1st, 2012 21:00 to 22:00 at rapid movement.
Three, the camera sensing device
The above is people's face information of utilizing the camera determination and analysis.The testing result face is normal, and expression is smiled, healthy
S103, send and carry the first message of described semantic information to the context service device.
This first message of carrying described semantic information to, can be by TCP (transmission control protocol, Transmission Control Protocol), HTTP (HTML (Hypertext Markup Language), Hypertext Transfer Protocol), HTTPS (hypertext transmission security agreement, Hypertext Transfer Protocol Secure) XML (extend markup language on agreement such as, Extensible Markup Language), SOAP (Simple Object Access Protocol, Simple Object Access Protocol) etc. formatted message is realized, can be at XML, SOAP, carry this semantic information in the formatted messages such as REST, and this message is sent to the context service device.Although should be appreciated that and may adopt in embodiments of the present invention first, second grade of term to describe various message, these information should not be limited to these terms.These terms only are used for message is distinguished from each other out.For example, in the situation that do not break away from embodiment of the present invention scope, the first message also can be called as the second message, and similarly, the second message also can be called as the first message.
The embodiment of the present invention, by a kind of semantic information sending method, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
Described the first message also comprises: the information source sign.
This information source sign is used for identifying the source of this semantic information, should be understood that, the source of described semantic information can be that the embodiment of the present invention does not limit this from a plurality of terminals of a terminal equipment, a user or a plurality of user.For different information sources, this information source sign can counterpart terminal equipment, and respective user, can also corresponding group.
The embodiment of the present invention is by a kind of semantic information sending method, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 2
The flow chart of a kind of context information method of reseptance that Fig. 2 provides for the embodiment of the present invention 2.
As shown in Figure 2, a kind of context information method of reseptance method can comprise:
The subscription confirmation that S201, basis are obtained in advance, receive second message of carrying the sight sign that the context service device sends, and described sight sign is that the context service device obtains according to semantic information, is used for identifying sight.
According to the subscription confirmation of obtaining in advance, receive second message of carrying the sight sign that the context service device sends.This subscription acknowledge message is obtained in advance, and the user need to subscribe to required sight to the context service device according to self, and the context service device, according to this user's authority, confirms which sight this user's equipment can subscribe to, described sight sight mark for marking.After subscription procedure completes, after the context service device has obtained subscribed sight, this subscriber equipment just receives second message of carrying the sight sign that the context service device sends.The second message that this carries described sight sign, can be to realize by formatted messages such as the XML on the agreements such as TCP, HTTP, HTTPS, SOAP, carries this sight and identify to realize in the formatted messages such as XML, SOAP, REST.
Although should be appreciated that and may adopt in embodiments of the present invention first, second grade of term to describe various message, these information should not be limited to these terms.These terms only are used for message is distinguished from each other out.For example, in the situation that do not break away from embodiment of the present invention scope, the first message also can be called as the second message, and similarly, the second message also can be called as the first message.
S202, described the second message is sent to application program with the form of broadcast.
Described the second message is sent to application program with the form of broadcast, and described broadcast is a kind of send mode of message, is that all application programs to this terminal equipment send message, and application program, according to the needs of self, optionally receives this message.The mode of described end-point device broadcast the second message, the send mode of the broadcast provided by the operating system of this terminal specifically has a detailed description in the operating system development guides.For example, in this locality of notice (Notification) function of Android system, apple iOS system notice (Local Notification) function, all can realize described the second message is sent to application program with the form of broadcast.
The embodiment of the present invention, by a kind of context information method of reseptance method, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
The flow chart of the acquisition methods of the subscription confirmation that Fig. 3 provides for the embodiment of the present invention 2.
As shown in Figure 3, the acquisition methods of the described subscription confirmation in step S201 specifically comprises:
S2011, send inquiry request information, and described inquiry request information specifically comprises: be queried square mark, and ISSUER's user ID, described ISSUER's user ID is for identifying the user who sends described inquiry request information.
Terminal equipment sends inquiry request information to the context service device, and described inquiry request information specifically comprises: be queried square mark, ISSUER's user ID.Wherein, the side's of being queried user ID, for the sign side of being queried, this is queried and can reaches generative semantics information, and semantic information is sent to the context service device.This side of being queried can be, this terminal user's an equipment or a plurality of equipment, and third party user's an equipment or a plurality of equipment, can also be certain group.Described ISSUER's user ID is for identifying the user of the terminal equipment that sends described inquiry request information.
S2012, receive Query Result information, and described Query Result information specifically comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.
Terminal equipment receives the Query Result information that the context service device sends, and this Query Result information comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.
S2013, according to described Query Result information, send subscribe request information.
According to described Query Result information, send subscribe request information.According to this Query Result, that is, this sight corresponding according to sight identifies, and the user can know which sight this terminal equipment of oneself can subscribe to.The user subscribes to sight according to oneself needs, hobby etc.,, sends subscribe request information that is.This subscribe request information can comprise that the user need to subscribe to the sight sign of sight and subscriber's device identification.This subscriber's device identification is used for identifying the equipment that described sight identifies corresponding sight of having subscribed to.
S2014, receive and store described subscription confirmation, and described subscription determines that information specifically comprises: the described sight sign of subscription, and subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message.
Receive described subscription confirmation, described subscription determines that information specifically comprises: the described sight sign that this terminal equipment that the context service device is confirmed has been subscribed to, and the device identification of this terminal equipment.After receiving described subscription confirmation, this terminal equipment is stored this subscription confirmation.
Optionally,
Described the second message in step S201 also comprises: the sight label, described sight label is one group of word of describing sight.
This second message comprises the sight label, and this sight label is one group of word describing sight.Should be understood that, this sight label both can send to this terminal equipment by this second message, can by this second message, not send to this terminal equipment yet, but be stored in this terminal equipment, by terminal equipment, according to this sight sign, obtain corresponding sight label.
The embodiment of the present invention is by a kind of context information method of reseptance, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 3
Fig. 4 is the flow chart of 3 one kinds of semantic information method of reseptances of the embodiment of the present invention.
As shown in Figure 4, a kind of semantic information method of reseptance comprises:
S301, receive first message of carrying semantic information, and described semantic information is the information that using value is arranged that the user by analyzing described environmental information generation can understand.
The context service device receives first message of carrying semantic information, and described semantic information is the information that terminal is passed through the semantization of analysis environments Information generation.Described semantic information is generated by terminal and sends to this context service device by network.
S302, according to pre-stored sight template, obtain the sight sign.
Wherein, described sight template is the text of format.
The sight template is pre-stored at this context service device, this sight template is the text of format, it is a kind of definition to sight, the semantic information that this context service device receives has met the condition of some in the sight template or a plurality of sights, just obtain one or more sights, sight sign sign for described sight.According to pre-stored sight template, can obtain the sight sign.
S303, according to the subscription confirmation of obtaining in advance, send second message of carrying described sight sign.
According to the subscription confirmation of obtaining in advance, the context service device sends second message of carrying the sight sign.This subscription acknowledge message is obtained in advance, and the context service device is informed its sight that can subscribe to of this user according to user's authority, then according to this user's demand, determines the sight that this user's equipment is subscribed to, sight sign sign for described sight.After subscription procedure completes, after the context service device has obtained subscribed sight, just, by second message of carrying the sight sign sent, inform and obtained this sight.The second message that this carries described sight sign, can be to realize by formatted messages such as the XML on the agreements such as TCP, HTTP, HTTPS, SOAP, carries this sight and identify to realize in the formatted messages such as XML, SOAP.In the prior art, the context service device do not send carry described sight sign the second message to subscriber equipment, so there is the problem of semantic information replicate analysis in subscriber equipment.
Although should be appreciated that and may adopt in embodiments of the present invention first, second grade of term to describe various message, these information should not be limited to these terms.These terms only are used for message is distinguished from each other out.For example, in the situation that do not break away from embodiment of the present invention scope, the first message also can be called as the second message, and similarly, the second message also can be called as the first message.
The embodiment of the present invention, by a kind of semantic information method of reseptance, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
Described sight template in step S302 specifically comprises: sight sign, sight expression formula, information source sign, sight label.
The sight template is pre-stored at this context service device, and this sight template is the text of format, is a kind of definition to sight.Described sight template specifically comprises: sight sign, sight expression formula, information source sign, sight label.Wherein, the sight sign is for identifying sight, and a sight sign is for sight of unique identification; The information source sign, for identifying the source of the semantic information that forms this sight, is come from certain terminal equipment, or come from certain user, or come from certain group; The sight label is for describing one group of word of this sight, is to the briefly introducing of sight, and generally can be comprised of some keywords; The sight expression formula is the expression formula of calculating for the combination of semantic information for definition, if the result of calculating is true, the semantic information that this context service device receives has met the condition of some in the sight template or a plurality of sights, just obtain one or more sights, this sight expression formula generally can consist of a plurality of atomic expressions, between these atomic expressions, with logical operator, connect, such as using the Boolean operators such as and, or to connect, a plurality of atomic expressions can also be used bracket, limit the priority of computing.
Lower mask body illustrate this atomic expression, sight expression formula, sight template.
One, shown in atomic expression is defined as follows:
1, transducer. attribute comparison operator value,
2, attribute comparison operator value
Wherein, comparison operator is consistent with general programming language, comprising: ">,>=,<,<=,==, unequal to " etc.
Two, the example of sight expression formula is as follows:
Location.city=" Shanghai " and (time>" 21: 00: 00 " and time<" 22: 00: 00 ")
Above-mentioned sight expression formula means that terminal equipment meets this expression formula, i.e. sight three is planted in this terminal symbol unification, and the example of sight template is as shown in table 1 below:
Table 1
Described sight template specifically comprises: sight sign, sight expression formula, information source sign, sight label.Wherein, the sight sign is for identifying sight, and a sight sign is for sight of unique identification, as S001 is exactly a sight sign; The information source sign, for identifying the source of the semantic information that forms this sight, is come from certain terminal equipment, or come from certain user, or come from certain group, as D001 is exactly an information source sign; The sight label is for describing one group of word of this sight, is to the briefly introducing of sight, as health care, inferior health, motion are the sight labels; The sight expression formula is the expression formula of calculating for the combination of semantic information for definition, as facial expression=" pale " or facial expression=" unhappy " or eyes=" One's eyesight is restrained " is the sight expression formula
Optionally,
Described in step S302, according to pre-stored sight template, the method for obtaining the sight sign specifically comprises:
According to the described sight expression formula in described sight template, analyze third party's information on services and/or the described semantic information obtained, obtain the sight sign; Described analytical method specifically comprises: according to the described information source sign in described sight template, according to different granularities, gather group analysis.
The context service device receives semantic information, these semantic informations do not possess the ability of describing sight, often need to analyze a plurality of semantic informations and could form a sight, for example, when every morning (time factor), user give the call screen release first (action factor), shooting user's facial expression (user's body situation), if find that user's body is not in good state, when possessing above-mentioned semantic information, form a kind of sight simultaneously.The generation of sight, need a plurality of semantic informations of analysis-by-synthesis, sometimes also will analyze the third party's information on services (as weather forecast etc.) obtained.
According to pre-stored sight template, the method of obtaining the sight sign specifically comprises: according to the described sight expression formula in described sight template, when the third party's information on services obtained, and/or, during described semantic information, the expression formula of these information and sight template is compared, the operation result that judges which expression formula is true.The true time that judgment result is that when some or a plurality of sight expression formulas, the described third party's information on services obtained, and/or, described semantic information, met this sight expression formula, and then met some or a plurality of sights, so just from this sight template, extract the sight sign of this sight.In the process of the sight expression parsing in utilizing the sight template, according to the sign of the information source in the sight template, gather batch total according to different granularities and calculate.
For example, when the user gives the mobile phone screen release morning first, triggered the camera function of terminal equipment, be that transducer obtains environmental information, then this environmental information is analyzed, generative semantics information, if analysis result can be: facial expression. pale; Facial expression. unhappy, eyes. One's eyesight is restrained, terminal equipment sends and carries the message of above-mentioned semantic information to the context service device.After the context service device receives this semantic information, described semantic information is brought into to the sight expression formula of sight template, then, according to the information source sign, gather batch total according to different granularities and calculate.By the analysis of context service device, the sight expression formula result of this sight of health states not good " S001 " is true, just thinks that this semantic information has met the condition of this sight, and this terminal equipment has been produced this sight.Then extract sight identifier corresponding to this sight from this sight template.Simultaneously, can also in this sight template, extract the information such as sight label, for terminal equipment.
The embodiment of the present invention, by a kind of semantic information method of reseptance, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
The flow chart of a kind of implementation of acquisition methods of the subscription confirmation that Fig. 5 provides for the embodiment of the present invention 3.
As shown in Figure 5, the acquisition methods of the described subscription confirmation in step S303 specifically comprises:
S3031, receive inquiry request information, and described inquiry request information specifically comprises: be queried square mark, and ISSUER's user ID, described ISSUER's user ID is for identifying the user who sends described inquiry request information.
The inquiry request information that context service device receiving terminal apparatus sends, described inquiry request information specifically comprises: be queried square mark, ISSUER's user ID.Wherein, the side's of being queried user ID, for the sign side of being queried, this is queried and can reaches generative semantics information, and semantic information is sent to the context service device.This side of being queried can be, this terminal user's an equipment or a plurality of equipment, and third party user's an equipment or a plurality of equipment, can also be certain certain group.Described ISSUER's user ID is for identifying the user of the terminal equipment that sends described inquiry request information.
S3035, send Query Result information, and described Query Result information specifically comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.
The context service device sends this Query Result to terminal equipment, and this Query Result information comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.The context service device is by true power process, the user who confirms this ISSUER's user ID sign sight of subscribing to of having the right, and corresponding sight sign sends to terminal equipment by described sight.
S3036, receive subscribe request information.
The subscribe request information that context service device receiving terminal sends, comprising the sight that this user's terminal equipment will be subscribed in information.
S3037, send and store described subscription confirmation, and described subscription confirmation specifically comprises: the described sight sign of subscription, and subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message.
The context service device sends subscribes to confirmation, and described subscription confirmation specifically comprises: the described sight sign of subscription, and subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message.The context service device sends subscribes to confirmation, and for notifying the user, certain terminal equipment of this user has been subscribed to certain sight, sight sign sign for this sight.
The context service device is stored this subscription confirmation, during for generation of described sight, sends its sight of having subscribed to according to this subscriptions confirmation of storage to this user's terminal equipment and identifies.
Optionally,
The flow chart of the another kind of implementation of the acquisition methods of the subscription confirmation that Fig. 6 provides for the embodiment of the present invention 3.
As shown in Figure 6, the acquisition methods of the described subscription confirmation in step S303 specifically comprises:
S3031, receive inquiry request information, and described inquiry request information specifically comprises: be queried square mark, and ISSUER's user ID, described ISSUER's user ID is for identifying the user who sends described inquiry request information.
The inquiry request information that context service device receiving terminal apparatus sends, described inquiry request information specifically comprises: be queried square mark, ISSUER's user ID.Wherein, the side's of being queried user ID, for the sign side of being queried, this is queried and can reaches generative semantics information, and semantic information is sent to the context service device.This side of being queried can be, this terminal user's an equipment or a plurality of equipment, and third party user's an equipment or a plurality of equipment, can also be certain group.Described ISSUER's user ID is for identifying the user of the terminal equipment that sends described inquiry request information.
S3032, according to described inquiry request information, send authorization requests information.
After the context service device receives inquiry request information, obtain and be queried square mark and ISSUER's user ID.The context service device is queried square mark according to this and at first ISSUER's user ID judges, the user that ISSUER's user ID identifies is the terminal equipment of subscribing to this user oneself, still subscribes to third party user's terminal equipment, or still subscribes to certain group.
If the user that ISSUER's user ID identifies is the terminal equipment of subscribing to this user oneself, think that user that this ISSUER's user ID the identifies subscription of having the right is queried the terminal equipment that square mark identifies, and directly forwards S3034. to
If the user that ISSUER's user ID identifies is the terminal equipment of subscribing to third party user, or subscribes to certain group, according to this side's of being queried user ID, the side of being queried identified to the side's of being queried user ID sends authorization requests information.Can comprise ISSUER's user ID in this authorization requests information, receive after this authorization requests information and to be queried direction context service device by this and to send license confirmation information according to pre-stored rule or the side of being queried user's selection the side of being queried.Comprise ISSUER's user ID in this license confirmation information, and allow the square mark that is queried of ISSUER user's obtaining information.
S3033, receive license confirmation information.
The context service device receives this license confirmation information, comprises ISSUER's user ID in information, and allows the square mark that is queried of ISSUER user's obtaining information.
S3034, according to described license confirmation information, by inquiring about pre-stored sight table, obtain user corresponding to the described ISSUER's user ID described sight sign corresponding to sight of subscribing to of having the right.
The context service device is according to this license confirmation information, by inquiring about pre-stored sight table, obtains user corresponding to the described ISSUER's user ID described sight sign corresponding to sight of subscribing to of having the right.The relation that wherein this sight table identifies for storing described sight sign and information source, described information source sign comprises: device identification, user ID, group identification.Described device identification, user ID, group identification can be all to be queried square mark.
Exemplary, described sight table can be as shown in table 2 below:
The sight sign |
Device identification |
User ID |
Group identification |
S001 |
D001 |
U0001 |
? |
S002 |
? |
U0002 |
? |
S003 |
? |
? |
G001 |
Table 2
Should be understood that, table 2 is just schematically described the relation of sight sign and information source sign, not necessarily uses this expression-form during specific implementation.
The context service device is according to above-mentioned sight table, can obtain user's sight sign of subscribing to of having the right.
S3035, send Query Result information, and described Query Result information specifically comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.
The context service device sends this Query Result to terminal equipment, and this Query Result information comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies.The context service device is by true power process, the user who confirms this ISSUER's user ID sign sight of subscribing to of having the right, and corresponding sight sign sends to terminal equipment by described sight.
S3036, receive subscribe request information.
The subscribe request information that context service device receiving terminal sends, comprising the sight that this user's terminal equipment will be subscribed in information.
S3037, send and store described subscription confirmation, and described subscription confirmation specifically comprises: the described sight sign of subscription, and subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message.
The context service device sends subscribes to confirmation, and described subscription confirmation specifically comprises: the described sight sign of subscription, and subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message.The context service device sends subscribes to confirmation, and for notifying the user, certain terminal equipment of this user has been subscribed to certain sight, sight sign sign for this sight.
The context service device is stored this subscription confirmation, during for generation of described sight, sends its sight of having subscribed to according to this subscriptions confirmation of storage to this user's terminal equipment and identifies.
Optionally,
In step S3034, the acquisition methods of described sight table comprises:
The first, manually upgrade and obtain, and the method that described manual renewal is obtained comprises: store the relation of described sight sign and information source sign, described information source sign comprises: device identification, user ID, group identification.
Store this sight table on the context service device, this sight table is the relation with the information source sign for the described sight sign of store storage, and this relation can have artificial configuration.Wherein, the management of this context service device with can configure the terminal equipment that is connected to this context service device and group etc. can with the relation of sight sign, the user of a certain terminal equipment also can configure the relation that own terminal equipment and sight identify.Above two kinds of methods are just manually upgraded two kinds of possible implementation methods of this sight table, the possible implementation method for other, and the embodiment of the present invention is not restricted this.
The second, automatically upgrade and obtain, the method that described automatic renewal is obtained comprises: described according to pre-stored sight template, after obtaining the sight sign, if described sight table is not stored described sight sign and the relation that described information source identifies, store described relation.
Should automatically upgrade the method for obtaining and be based in embodiment 3, step S302, according to pre-stored sight template, obtain the sight sign, method realize, the method for described step S302 is specifically referring to the description in embodiment 3, the embodiment of the present invention is not repeated this.After step S302, if described sight table is not stored described sight sign and the relation that described information source identifies, store described relation.
In step S302, obtain the sight sign according to the sight template, then, according to this sight sign inquiry sight table, if described sight table is not stored described sight sign and the relation that described information source identifies, increased a record, store described relation.In this case, the sight table upgrades automatically.
The embodiment of the present invention is by a kind of semantic information method of reseptance, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 4
Fig. 7 is the structural representation of the embodiment of the present invention 4 terminal equipments.
As described in Figure 7, described terminal equipment comprises:
Acquiring unit 401, for obtaining environmental information, the information of described environmental information is terminal equipment self environment and/or surrounding environment.
Analytic unit 402, the described environmental information of obtaining for receiving described acquiring unit 401, and analyze described environmental information, and generative semantics information, described semantic information is the information that using value is arranged that the user by analyzing described environmental information generation can understand.
The first transmitting element 403, the described semantic information generated for receiving described analytic unit 402, and transmission is carried the first message of described semantic information to the context service device.
Acquiring unit 401, obtain environmental information; Analytic unit 402, receive the described environmental information that described acquiring unit 401 obtains, and analyze described environmental information, generative semantics information; The first transmitting element 403, receive the described semantic information that described analytic unit 402 generates, and transmission is carried the first message of described semantic information to the context service device.
Acquiring unit 401, analytic unit 402, the first transmitting element 403 can be for carrying out the method for embodiment 1 step S101, S102, S103, and concrete grammar refers to the description of 1 pair of described method of embodiment, does not repeat them here.
The embodiment of the present invention, by a kind of terminal equipment, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Embodiment 5
Fig. 8 is the structural representation of the embodiment of the present invention 5 terminal equipments.
As described in Figure 12, described terminal equipment comprises:
The first receiving element 5011, for the subscription confirmation according to obtaining in advance, receive second message of carrying the sight sign that the context service device sends, and described sight sign is used for identifying sight;
Radio unit 502, for receiving described second information of described the first receiving element 5011, and send to application program by described the second message with the form of broadcast.
The first receiving element 5011, according to the subscription confirmation of obtaining in advance, receive second message of carrying the sight sign that the context service device sends; Radio unit 502, receive described second information of described the first receiving element 5011, and described the second message is sent to application program with the form of broadcast.
The first receiving element 5011, radio unit 502 can be for carrying out the method for embodiment 2 step S201, S202, and concrete grammar refers to the description of 2 pairs of described methods of embodiment, does not repeat them here.
The embodiment of the present invention, by a kind of terminal equipment, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
Described terminal equipment also comprises:
The first transmitting element 5031, for sending inquiry request information, described inquiry request information specifically comprises: be queried square mark, ISSUER's user ID, described ISSUER's user ID is for identifying the user who sends described inquiry request information;
The second receiving element 5012, for receiving Query Result information, described Query Result information specifically comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies;
The second transmitting element 5032, for receiving the described Query Result of described the second receiving element 5012, and, according to described Query Result information, send subscribe request information;
The 3rd receiving element 5013, for receiving described subscription confirmation, described subscription determines that information specifically comprises: the described sight sign of subscription, subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message;
Memory cell 504, for receiving the described subscription confirmation of the 3rd receiving element 5013, and store described subscription confirmation.
The first transmitting element 5031, send inquiry request information; The second receiving element 5012, receive Query Result information; The second transmitting element 5032, receive the described Query Result of described the second receiving element 5012, and, according to described Query Result information, send subscribe request information; The 3rd receiving element 5013, receive described subscription confirmation; Memory cell 504, receive the described subscription confirmation of the 3rd receiving element 5013, and store described subscription confirmation.
The first transmitting element 5031, the second receiving element 5012, the second transmitting element 5032, the 3rd receiving element 5013, memory cell 504 can be for carrying out the method for embodiment 2 step S2011, S2012, S2013, S2014, concrete grammar refers to the description of 2 pairs of described methods of embodiment, does not repeat them here.
The embodiment of the present invention is by a kind of terminal equipment, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 6
Fig. 9 is the structural representation of the embodiment of the present invention 6 context service devices.
As described in Figure 9, described context service device comprises:
Described semantic information is the information that using value is arranged that the user by analyzing described environmental information generation can understand;
Analytic unit 602, for receiving described first message of described the first receiving element 6011, and, according to pre-stored sight template, obtain the sight sign, and described sight template is the text of format;
The first transmitting element 6031, the described sight sign of obtaining for receiving described analytic unit 602, according to the subscription confirmation of obtaining in advance, send second message of carrying described sight sign.
The first receiving element 6011, receive first message of carrying semantic information; Analytic unit 602, receive described first message of described the first receiving element 6011, and, according to pre-stored sight template, obtain the sight sign; The first transmitting element 6031, the described sight sign of obtaining for receiving described analytic unit 602, according to the subscription confirmation of obtaining in advance, send second message of carrying described sight sign.
The first receiving element 6011, analytic unit 602, the first transmitting element 6031 can be for carrying out the method for embodiment 3 step S301, S302, S303, and concrete grammar refers to the description of 3 pairs of described methods of embodiment, does not repeat them here.
The embodiment of the present invention, by a kind of context service device that receives semantic information, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Optionally,
Described analytic unit 602, specifically for the described sight expression formula according in described sight template, third party's information on services of analyzing described semantic information and/or obtaining, obtain the sight sign.
Analytic unit 602 can be used for carrying out described in embodiment 3 step S302 according to pre-stored sight template, obtains the method for sight sign, specifically refers to the description of 3 pairs of described methods of embodiment, does not repeat them here.
Optionally,
Described context service device also comprises:
The second receiving element 6012, for receiving inquiry request information, described inquiry request information specifically comprises: be queried square mark, ISSUER's user ID, described ISSUER's user ID is for identifying the user who sends described inquiry request information
The second transmitting element 6032, for sending Query Result information, described Query Result information specifically comprises: described sight corresponding to sight that user corresponding to described ISSUER's user ID has the right to subscribe to identifies;
The 3rd receiving element 6013, for receiving subscribe request information;
The 3rd transmitting element 6033, for sending described subscription confirmation, described subscription confirmation specifically comprises: the described sight sign of subscription, subscriber's device identification, described subscriber's device identification is for identifying the equipment that receives described the second message;
Memory cell 604, for receiving the described subscription confirmation of described the 3rd transmitting element, and store described subscription confirmation.
The second receiving element 6012 receives inquiry request information; The second transmitting element 6032 sends Query Result information; The 3rd receiving element 6013 receives subscribe request information; The 3rd transmitting element 6033 sends described subscription confirmation; Memory cell 604 receives the described subscription confirmation of described the 3rd transmitting element 6033, and stores described subscription confirmation.
The second receiving element 6012, the second transmitting element 6032, the 3rd receiving element 601, the 3rd transmitting element 6033, memory cell 604 can be for carrying out the method for embodiment 3 step S3031, S3035, S3036, S3037, concrete grammar refers to the description of 3 pairs of described methods of embodiment, does not repeat them here.
The embodiment of the present invention is by a kind of context service device that receives semantic information, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 7
Figure 10 is the structural representation of the embodiment of the present invention 7 systems.
As described in Figure 10, a kind of system comprises:
Terminal equipment 701, for the environmental information according to obtaining, transmission is carried the first message of semantic information to context service device 702, and/or receives second message of carrying the sight sign that described context service device 702 sends, and described the second message is sent to application program with the form of broadcast;
Context service device 702, for receiving described the first message, and obtain described plot sign according to the plot template, sends described the second message to terminal equipment 701.
Terminal equipment 701, according to the environmental information of obtaining, transmission is carried the first message of semantic information to context service device 702, and/or receives second message of carrying the sight sign that described context service device 702 sends, and described the second message is sent to application program with the form of broadcast; Context service device 702, receive described the first message, and obtain described plot sign according to the plot template, sends described the second message to terminal equipment 701.
Terminal equipment 701, context service device 702 comprise embodiment 4,5 described terminal equipments and the described context service device of embodiment 6, and concrete terminal equipment and context service device refer to the description of the embodiment of the present invention 4,5,6, do not repeat them here.
The embodiment of the present invention is by a kind of system that receives semantic information, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote terminal equipment and user's intelligent interaction capabilities.
Embodiment 8
As shown in figure 11, the present embodiment be take mobile phone and the embodiment of the present invention is specifically described as example.It should be understood that the diagram mobile phone is only an example of terminal equipment, and mobile phone can have than more cross or the parts still less shown in figure, can combine two or more parts, or can there is different component configuration.Various parts shown in figure can be realized in the combination of the hardware, software or the hardware and software that comprise one or more signals processing and/or application-specific integrated circuit (ASIC).
The structural representation of the mobile phone that Figure 11 provides for the embodiment of the present invention 8.Mobile phone comprises as shown in figure 11: touch-screen 81, CPU82, memory 83, RF circuit 85, transducer 86, voicefrequency circuit 87, loud speaker 88, I/O subsystem 89.
Described touch-screen 81 is input interface and the output interfaces between terminal equipment and user, except thering is the function that receives user instruction, also by visual output display to the user, visual output can comprise figure, text, icon, video etc.
Described CPU82 is the control centre of mobile phone, utilize the various piece of various interface and the whole terminal equipment of connection, be stored in software program and/or the module in memory 83 by operation or execution, and call the data that are stored in memory 83, carry out various functions and the deal with data of mobile phone, thereby terminal equipment is carried out to integral monitoring.The environmental information that to obtain from transducer 86 is processed, generative semantics information; And this semantic information is sent to the context service device by RF circuit 85.Described CPU82 can be used for carrying out the described method of embodiment 1, and concrete method refers to the description of embodiment 1, does not repeat them here.
Optionally, CPU82 can comprise one or more processing units; Optionally, CPU82 can integrated application processor and modem processor, and optional, application processor is mainly processed operating system, user interface and application program etc., and modem processor is mainly processed radio communication.Be understandable that, above-mentioned modem processor can not be integrated in CPU82 yet.
Described memory 83, can be for storing the execution result of described CPU82; The subscription confirmation that can also obtain in advance for storage.Memory 83 can be by access such as CPU82, transducers 86, described memory 83 can comprise high-speed random access memory, can also comprise nonvolatile memory, for example one or more disk memory, flush memory device or other volatile solid-state parts.
Described RF circuit 85, can be for sending and receiving information.Described RF circuit 85, be mainly used in setting up communicating by letter of terminal equipment and context service device, realizes the digital received and sent of terminal equipment and context service device.For example.Transmission is carried the first message of described semantic information to the context service device; Receive second message of carrying the sight sign of context service device transmission etc.Described RF circuit 85 can be used for carrying out embodiment 1 and the described mode of embodiment 2, and concrete method refers to the description of embodiment 1 and embodiment 2, does not repeat them here.
Particularly, RF circuit 85 receives and sends the RF signal, and the RF signal is also referred to as electromagnetic signal, and RF circuit 85 converts electrical signals to electromagnetic signal or electromagnetic signal is converted to the signal of telecommunication, and communicates by this electromagnetic signal and communication network and other equipment.RF circuit 85 can comprise for carrying out the known circuit of these functions, it includes but not limited to antenna system, RF transceiver, one or more amplifier, tuner, one or more oscillator, digital signal processor, Subscriber Identity Module (Subscriber Identity Module, SIM) etc.
Described transducer 86, described transducer can be connected to CPU82 and memory 83.Transducer 86 can be used for obtaining the information of environment believes that described environmental information is terminal equipment self environment and/or surrounding environment.
Described voicefrequency circuit 87, mainly can be used for the audio reception data, and this voice data is converted to the signal of telecommunication, and this signal of telecommunication is sent to loud speaker 88.
Described loud speaker 88, can be used for the voice signal that terminal equipment is received from the context service device by RF circuit 85, is reduced to sound and plays this sound to the user.
Described power management chip 84, can be used for being powered and power management for the hardware that CPU82, I/O subsystem 89 and transducer 86 connect.
Described I/O subsystem 89: the input/output peripheral of described I/O subsystem 89 on can control appliance, I/O subsystem 89 can comprise display controller 891 and for controlling one or more input control devices 892 of other input/control devicess.Optionally, one or more input control devices 892 receive the signal of telecommunication or send the signal of telecommunication to other input/control devicess from other input/control devicess, and other input/control devicess can comprise physical button (pressing button, rocking arm button etc.), dial, slide switch, joystick, click roller.What deserves to be explained is, input control device 892 can with following any be connected: keyboard, infrared port, USB interface and such as the indicating equipment of mouse.Display controller 891 in described I/O subsystem 89 receives the signal of telecommunication or sends the signal of telecommunication to touch-screen 81 from touch-screen 81.The contact that touch-screen 81 detects on touch-screen, display controller 891 is converted to the contact detected and is presented at the mutual of user interface object on touch-screen 81, realize man-machine interaction, the user interface object be presented on touch-screen 81 can be the icon of running game, the icon that is networked to corresponding network, filtering mode etc.What deserves to be explained is, equipment can also comprise the light mouse, and the light mouse is the touch sensitive surface that display of visually is not exported, or the extension of the touch sensitive surface formed by touch-screen.
The embodiment of the present invention is by a kind of mobile phone that utilizes semantic information, make the analysis result to semantic information to use across application program, cross-terminal equipment is used, even across the user, use, by reducing the replicate analysis of semantic information, reduce the burden of terminal equipment processor, reduce the power consumption of terminal equipment, promote mobile phone and user's intelligent interaction capabilities.
Embodiment 9
The present embodiment is applied as example with the automatic renewal of mobile phone and is specifically described.
The application program of automatic renewal application is housed on mobile phone, and this mobile phone has been subscribed to user's inferior health sight (S001) of the machine.
In the process of unlocking screen, embed and call the code that front-facing camera is taken pictures, obtain environmental information by taking pictures, then the photo of taking is analyzed, obtain semantic information, the information such as facial expression as current as the user, expression in the eyes.This calls the moment that front-facing camera is taken pictures, and multiple option can be set, such as: detect in the first day detection in morning of every month, the morning at per weekend etc., can be by the user according to the demand setting.
Mobile phone passes to the context service device to above-mentioned semantic information, this context service device, according to the sight expression formula in pre-stored sight template, is analyzed this semantic information, if the result of certain expression formula is true, just mean that described semantic information meets certain sight, obtain corresponding sight sign.Obtain the sight sign S001 of user's inferior health sight in this analytic process.Simultaneously can also obtain some sight labels, as inferior health, add sharp movement etc.The context service device sends to mobile phone by described sight sign and sight label.When mobile phone is received the message of carrying sight sign and sight label, to application program, broadcast described information, application program receives information according to the needs of self.
Now automatically upgrade the application program of application, receive as required described sight sign and sight label, obtain inferior health, add the information such as sharp movement.This application program is with inferior health, and adding sharp movement is the new application program of keyword search.Can receive a plurality of useful application in search procedure, for example can search calorie this application of calculating.Automatically upgrade the application program of application, just to user's prompting, having calorie to calculate this application can download, and the user, according to the needs of self, determines whether to download this application.
The embodiment of the present invention, by a kind of mobile phone that utilizes semantic information, by reducing the replicate analysis of semantic information, reduces the burden of handset processes device, reduces the power consumption of terminal equipment, promotes mobile phone and user's intelligent interaction capabilities.
Embodiment 10
Figure 12 is the structural representation of the embodiment of the present invention 10 context service devices.
It should be understood that diagram context service device is only an example of terminal equipment, and mobile phone can have than more that cross or the parts still less shown in figure, can combine two or more parts, or can there is different component configuration.Various parts shown in figure can be realized in the combination of the hardware, software or the hardware and software that comprise one or more signals processing and/or application-specific integrated circuit (ASIC).
As described in Figure 10, described context service device comprises: comprise CPU101, memory 102, RF circuit 103, I/O subsystem 104, power management chip 105, it is characterized in that,
Described RF circuit 103, the described semantic information of for reception, carrying semantic information is the information that using value is arranged that the user by the analysis environments Information generation can understand;
Described CPU101, for receiving described first message of described RF circuit 103, and, according to pre-stored sight template, obtain the sight sign, and described sight template is the text of format;
Described RF circuit 103, the described sight sign of also obtaining for receiving described CUP101, according to the subscription confirmation of obtaining in advance, send second message of carrying described sight sign.
It is the information that using value is arranged that the user by the analysis environments Information generation can understand that described RF circuit 103 receives the described semantic information of carrying semantic information; Described CPU101 receives described first message of described RF circuit 103, and, according to pre-stored sight template, obtains the sight sign, and described sight template is the text of format; Described RF circuit 103 receives the described sight sign that described CUP101 obtains, and according to the subscription confirmation of obtaining in advance, sends second message of carrying described sight sign.
Described RF circuit 103, described CPU101, described RF circuit 103, can be for carrying out the method for embodiment 3 step S301, S302, S303, and concrete grammar refers to the description of 3 pairs of described methods of embodiment, does not repeat them here.
The embodiment of the present invention, by a kind of context service device that receives semantic information, by reducing the replicate analysis of semantic information, reduces the burden of terminal equipment processor, reduces the power consumption of terminal equipment, promotes terminal equipment and user's intelligent interaction capabilities.
Through the above description of the embodiments, the those skilled in the art can be well understood to the embodiment of the present invention and can realize with hardware, or the firmware realization, or their compound mode realizes.When using software to realize, one or more instructions or the code that above-mentioned functions can be stored in the terminal equipment computer-readable recording medium or on the terminal equipment computer-readable recording medium are transmitted.The terminal equipment computer-readable recording medium comprises terminal equipment storage medium and communication media, and optional communication media comprises any medium of being convenient to transmit from a place to another place the terminal equipment program.Storage medium can be any usable medium that terminal equipment can access.As example but be not limited to: the terminal equipment computer-readable recording medium can comprise RAM, ROM, EEPROM, CD-ROM or other optical disc storage, magnetic disk storage medium or other magnetic storage apparatus or can be used in the program code that carries or store the expectation with instruction or data structure form and can be by any other medium of terminal equipment access.In addition.Any connection can be suitable become the terminal equipment computer-readable recording medium.For example, if software be use coaxial cable, optical fiber cable, twisted-pair feeder, Digital Subscriber Line (DSL) or the wireless technology such as infrared ray, radio and microwave from website, context service device or the transmission of other remote source, so coaxial cable, optical fiber cable, twisted-pair feeder, DSL or the wireless technology such as infrared ray, wireless and microwave be included under in the photographic fixing of medium.As the embodiment of the present invention is used, dish (Disk) and dish (disc) comprise compression laser disc (CD), laser dish, laser disc, digital universal laser disc (DVD), floppy disk and Blu-ray Disc, the copy data of the common magnetic of optional dish, dish carrys out the copy data of optics with laser.Within top combination also should be included in the protection range of terminal equipment computer-readable recording medium.
In a word, the foregoing is only the embodiment of technical solution of the present invention, be not intended to limit protection scope of the present invention.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.