CN110209766A - Method for exhibiting data, electronic device and storage medium - Google Patents
Method for exhibiting data, electronic device and storage medium Download PDFInfo
- Publication number
- CN110209766A CN110209766A CN201910434187.9A CN201910434187A CN110209766A CN 110209766 A CN110209766 A CN 110209766A CN 201910434187 A CN201910434187 A CN 201910434187A CN 110209766 A CN110209766 A CN 110209766A
- Authority
- CN
- China
- Prior art keywords
- data
- text
- node
- syntactic units
- segmentation
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/3331—Query processing
- G06F16/334—Query execution
- G06F16/3344—Query execution using natural language analysis
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/30—Information retrieval; Database structures therefor; File system structures therefor of unstructured textual data
- G06F16/33—Querying
- G06F16/338—Presentation of query results
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/166—Editing, e.g. inserting or deleting
- G06F40/186—Templates
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- Computational Linguistics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Artificial Intelligence (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Audiology, Speech & Language Pathology (AREA)
- General Health & Medical Sciences (AREA)
- Health & Medical Sciences (AREA)
- Machine Translation (AREA)
Abstract
The present invention relates to data processing technique, a kind of method for exhibiting data, electronic device and storage medium are provided.This method receives the data that user issues and shows request, the request includes data to be presented, preconfigured template text is obtained from presetting database, it is several syntactic units by the template text segmentation, based on the syntactic units after segmentation, each syntactic units are parsed, construct the syntax tree and screening link grammar of template text, based on screening link grammar, the syntax tree of syntactic units is constructed for each syntactic units, and the node variable of the syntax tree of syntactic units is replaced with to data to be presented, later each node of the syntax tree of syntactic units is traversed to obtain the type of each node, preset operation is executed to the corresponding scope of the node of preset kind, target template text feedback is obtained to the user.Using the present invention, the efficiency of data displaying can be improved.
Description
Technical field
The present invention relates to data processing field more particularly to a kind of method for exhibiting data, electronic device and storage medium.
Background technique
In report, some descriptive texts are needed, the content of different dimensions are shown, such as branch
Displaying, the data of the inside be also required to according to real time data calculate replace.
Currently, variable is usually added in data replacement in the text, variable replacement is fallen when showing report, however is worked as
It when newly-increased mechanism, then needs to modify the template of descriptive text, when newly-increased mechanism enormous amount, causes modification amount big,
Report data is easy to appear mistake, causes the problem of showing low efficiency.
Therefore it provides a kind of efficient method for exhibiting data, it has also become those skilled in the art's technology urgently to be resolved is asked
Topic.
Summary of the invention
In view of the foregoing, the present invention provides a kind of method for exhibiting data, electronic device and storage medium, its object is to
Improve the efficiency that data are shown.
To achieve the above object, the present invention provides a kind of method for exhibiting data, this method comprises:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, regular using preset text segmentation,
It is several syntactic units by the template text segmentation;
First construction step: based on the syntactic units after segmentation, each syntactic units is parsed, the mould is constructed
The syntax tree and screening link grammar of plate text;
Second construction step: being based on the screening link grammar, and the syntax tree of syntactic units is constructed for each syntactic units,
And the node variable of the syntax tree of the syntactic units is replaced with into the data to be presented;And
Feedback step: traversing each node of the syntax tree of the syntactic units to obtain the type of each node, right
The corresponding scope of the node of preset kind executes preset operation, obtains target template text and feeds back to the user terminal.
Preferably, the receiving step further include:
Authentication is carried out to the user of the user terminal, subscriber authentication is used by then executing the segmentation step
Family authentication unsuccessfully then refuses the data access request and generates warning information to feed back to the user terminal.
Preferably, the segmentation step includes:
It identifies the keyword of preset kind and the range of text of the keyword in the template text, is based on the keyword
Range of text by the template text segmentation at several block text contents, using every block text content after segmentation as a language
Method unit.
It is preferably, described that predetermined registration operation is executed to the corresponding scope of the node of preset kind, comprising:
Identify the scope of the node of the preset kind;
Predetermined registration operation is executed to the target data in the scope of the node of the preset kind, the predetermined registration operation includes
Assignment operation, sentence replacement operation;
And the syntax tree of the syntactic units is updated according to the result after predetermined registration operation.
Preferably, the feedback step includes: that key is arranged for the target template text in advance, sharp in transmission process
The target template text described in the key pair carries out encryption transmission, decrypts the mesh when the key authentication success of user's input
Mark template text is checked for user.
To achieve the above object, the present invention also provides a kind of electronic device, which includes: memory and processing
Device, which is characterized in that storing data presentation program on the memory, the data presentation program are executed by the processor,
Realize following steps:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, regular using preset text segmentation,
It is several syntactic units by the template text segmentation;
First construction step: based on the syntactic units after segmentation, each syntactic units is parsed, the mould is constructed
The syntax tree and screening link grammar of plate text;
Second construction step: being based on the screening link grammar, and the syntax tree of syntactic units is constructed for each syntactic units,
And the node variable of the syntax tree of the syntactic units is replaced with into the data to be presented;And
Feedback step: traversing each node of the syntax tree of the syntactic units to obtain the type of each node, right
The corresponding scope of the node of preset kind executes preset operation, obtains target template text and feeds back to the user terminal.
Preferably, the segmentation step includes:
It identifies the keyword of preset kind and the range of text of the keyword in the template text, is based on the keyword
Range of text by the template text segmentation at several block text contents, using every block text content after segmentation as a language
Method unit.
It is preferably, described that predetermined registration operation is executed to the corresponding scope of the node of preset kind, comprising:
Identify the scope of the node of the preset kind;
Predetermined registration operation is executed to the target data in the scope of the node of the preset kind, the predetermined registration operation includes
Assignment operation, sentence replacement operation;
And the syntax tree of the syntactic units is updated according to the result after predetermined registration operation.
Preferably, the feedback step includes that key is arranged for the target template text in advance, sharp in transmission process
The target template text described in the key pair carries out encryption transmission, decrypts the mesh when the key authentication success of user's input
Mark template text is checked for user.
To achieve the above object, the present invention also provides a kind of computer readable storage medium, the computer-readable storages
It include data presentation program in medium, it can be achieved that data are shown as described above when the data presentation program is executed by processor
Arbitrary steps in method.
Method for exhibiting data, electronic device and storage medium proposed by the present invention, the data issued by receiving user terminal
It shows request, preconfigured template text is obtained from presetting database, be several syntactic units by template text segmentation,
And each syntactic units are parsed, the syntax tree and screening link grammar of template text are constructed, based on screening link grammar, for each language
The syntax tree of method building unit syntactic units, and the node variable of the syntax tree of syntactic units is replaced with to data to be presented,
Later each node of the syntax tree of syntactic units is traversed to obtain the type of each node, it is corresponding to the node of preset kind
Scope execute preset operation, obtain target template text and feed back to the user terminal.Using the present invention, the present age is shown
It when the dimension of data changes, is not required to remodify template text, to improve the efficiency of data displaying.
Detailed description of the invention
Fig. 1 is the applied environment figure of method for exhibiting data preferred embodiment of the present invention;
Fig. 2 is the schematic diagram of electronic device preferred embodiment of the present invention;
Fig. 3 is the module diagram of data presentation program preferred embodiment in Fig. 2;
Fig. 4 is the flow chart of method for exhibiting data preferred embodiment of the present invention;
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that described herein, specific examples are only used to explain the present invention, not
For limiting the present invention.Based on the embodiments of the present invention, those of ordinary skill in the art are not before making creative work
Every other embodiment obtained is put, shall fall within the protection scope of the present invention.
It is the applied environment figure of method for exhibiting data preferred embodiment of the present invention shown in referring to Fig.1.Electronic device 1 is installed
There is data presentation program 10.A plurality of clients 3 connect electronic device 1 by network 2.Network 2 can for internet, cloud network,
Wireless Fidelity (Wi-Fi) network, personal net (PAN), local area network (LAN) and/or Metropolitan Area Network (MAN) (MAN).It is various in network environment
Equipment, which can be configured as, is connected to communication network according to various wired and wireless communication protocols.Such wired and wireless communication
The example of agreement can include but is not limited at least one of the following: transmission control protocol and Internet protocol (TCP/IP),
User Datagram Protocol (UDP), hypertext transfer protocol (HTTP), File Transfer Protocol (FTP), ZigBee, EDGE, IEEE
802.11, light fidelity (Li-Fi), 802.16, IEEE 802.11s, IEEE 802.11g, multi-hop communication, wireless access point
(AP), equipment is to equipment communication, cellular communication protocol and/or bluetooth (Blue Tooth) communication protocol or combinations thereof.User terminal 3
Can for desktop PC, notebook, tablet computer, mobile phone or it is other application software is installed, can by network 2 with
The terminal installation that electronic device 1 is communicated.Database 4 may include different types of template text.
It is the schematic diagram of 1 preferred embodiment of electronic device of the present invention referring to shown in Fig. 2.
The electronic device 1 includes but is not limited to: memory 11, processor 12, display 13 and network interface 14.The electricity
Sub-device 1 connects network by network interface 14, obtains initial data.Wherein, the network can be intranet
(Intranet), internet (Internet), global system for mobile communications (Global System of Mobile
Communication, GSM), wideband code division multiple access (Wideband Code Division Multiple Access,
WCDMA), the wirelessly or non-wirelessly network such as 4G network, 5G network, bluetooth (Bluetooth), Wi-Fi, speech path network.
Wherein, memory 11 include at least a type of readable storage medium storing program for executing, the readable storage medium storing program for executing include flash memory,
Hard disk, multimedia card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random are visited
It asks memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), may be programmed read-only deposit
Reservoir (PROM), magnetic storage, disk, CD etc..In some embodiments, the memory 11 can be the electronics dress
Set 1 internal storage unit, such as the hard disk or memory of the electronic device 1.In further embodiments, the memory 11
It can be the External memory equipment of the electronic device 1, such as the plug-in type hard disk that the electronic device 1 is equipped with, intelligent memory card
(Smart Media Card, SMC), secure digital (Secure Digital, SD) card, flash card (Flash Card) etc..When
So, the memory 11 can also both including the electronic device 1 internal storage unit and also including its External memory equipment.This
In embodiment, memory 11 is installed on the operating system and types of applications software of the electronic device 1 commonly used in storage, such as
The program code etc. of data presentation program 10.In addition, memory 11 can be also used for temporarily storing and export or will
The Various types of data of output.
Processor 12 can be in some embodiments central processing unit (Central Processing Unit, CPU),
Controller, microcontroller, microprocessor or other data processing chips.The processor 12 fills commonly used in controlling the electronics
1 overall operation is set, such as executes data interaction or the relevant control of communication and processing etc..In the present embodiment, the processing
Device 12 is used to run the program code stored in the memory 11 or handles data, such as operation data presentation program 10
Program code etc..
Display 13 is properly termed as display screen or display unit.Display 13 can be LED and show in some embodiments
Device, liquid crystal display, touch-control liquid crystal display and Organic Light Emitting Diode (Organic Light-Emitting
Diode, OLED) touch device etc..Display 13 is for showing the information handled in the electronic apparatus 1 and for showing visualization
Working interface, such as display data statistics result.
Network interface 14 optionally may include standard wireline interface and wireless interface (such as WI-FI interface), which connects
Mouth 14 communicates to connect commonly used in establishing between the electronic device 1 and other electronic equipments.
Fig. 2 illustrates only the electronic device 1 with component 11-14 and data presentation program 10, it should be understood that
It is not required for implementing all components shown, the implementation that can be substituted is more or less component.
Optionally, the electronic device 1 can also include user interface, and user interface may include display
(Display), input unit such as keyboard (Keyboard), optional user interface can also include standard wireline interface,
Wireless interface.Optionally, in some embodiments, it is aobvious to can be light-emitting diode display, liquid crystal display, touch control type LCD for display
Show that device and Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) touch device etc..Wherein, display
Appropriate it can also be known as display screen or display unit, for showing the information handled in the electronic apparatus 1 and for showing
Visual user interface.
The electronic device 1 can also include radio frequency (Radio Frequency, RF) circuit, sensor and voicefrequency circuit etc.
Deng details are not described herein.
In the above-described embodiments, processor 12 execute memory 11 in store data presentation program 10 when may be implemented as
Lower step:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, regular using preset text segmentation,
It is several syntactic units by the template text segmentation;
First construction step: based on the syntactic units after segmentation, each syntactic units is parsed, the mould is constructed
The syntax tree and screening link grammar of plate text;
Second construction step: being based on the screening link grammar, and the syntax tree of syntactic units is constructed for each syntactic units,
And the node variable of the syntax tree of the syntactic units is replaced with into the data to be presented;And
Feedback step: traversing each node of the syntax tree of the syntactic units to obtain the type of each node, right
The corresponding scope of the node of preset kind executes preset operation, obtains target template text and feeds back to the user terminal.
About being discussed in detail for above-mentioned steps, program mould of following Fig. 3 about 10 embodiment of data presentation program is please referred to
The explanation of block figure and Fig. 4 about the flow chart of method for exhibiting data embodiment.
In other embodiments, the data presentation program 10 can be divided into multiple modules, and multiple module is deposited
It is stored in memory 12, and is executed by processor 13, to complete the present invention.The so-called module of the present invention be refer to complete it is specific
The series of computation machine program instruction section of function.
It is the Program modual graph of 10 1 embodiment of data presentation program in Fig. 2 referring to shown in Fig. 3.In the present embodiment, institute
Stating data presentation program 10 can be divided into: receiving module 110, segmentation module 120, first construct module 130, second and construct
Module 140 and feedback module 150.
Receiving module 110, the data for receiving user terminal sending show that request, the request include number to be presented
According to.
It in the present embodiment, may include wait open up in request for showing certain mechanism in the earning report in some city
(for example, to show the achievement situation in some city, content index to be presented can be with are as follows: city, sales volume, branch for the content shown
Out, net profit margin etc.), it also may include store path and mark content to be presented.That is, content to be presented can be with
It is user's typing together when submitting request, is also possible to after user submits report to show request, is specified from request
Address in obtain.
Obtaining user's method content to be presented includes: to provide user interface for user's input feature vector data, is obtained
The all data of user input, or partial data is extracted as to be presented from the data that pre-stored user inputs
Content.
In one embodiment, the receiving module 110 also carries out the user for the user terminal for initiating data displaying request
Subscriber identity information verifying, subscriber identity information are verified, and execute subsequent step, subscriber identity information authentication failed is then refused
The data described absolutely, which show request and generate warning information, feeds back to user terminal.
Divide module 120, for obtaining preconfigured template text from presetting database, utilizes preset text point
Rule is cut, is several syntactic units by the template text segmentation.
In the present embodiment, text is traversed, identify the keyword of preset kind in preconfigured template text and be somebody's turn to do
The range of text of keyword will be divided the template text segmentation at several block text contents based on the range of text of keyword
Every block text content after cutting as a syntactic units, such as: plain text unit, while key element and operation list
Member etc..
Wherein, preconfigured template text can be with are as follows:
Text:
By taking above-mentioned template text as an example, specific segmentation rule are as follows: preconfigured mould is got from presetting database
After plate text, reads since the first row first character ' text ', when reading first keyword while, identify
Text primary segmentation is 3 parts by the range (right parenthesis of the 2nd row to eighth row) of while keyword, first part's text, the
The two parts part while, the text after Part III eighth row bracket.
In the present embodiment, preconfigured template text can have circulation, branch, variable calculate function:
Circulation: in a template, it is configured with while (code1), needs to obtain the sum of ' code1 ', can just access circulation
Number;
Branch: in a template, it is configured with switch (code2).For case (code2), need to each mechanism into
Row branch process is then only needed for case (' Shenzhen ') to the Shenzhen code2=' ' value do aggregation process.
Variable calculates: assuming that being in the range of case (' Shenzhen '), for common replacement, then only needing to be replaced with
' Shenzhen '.The template does not need individually to calculate other values, when showing that mechanism is increased, does not need modification template yet.
First building module 130, for being parsed to each syntactic units, structure based on the syntactic units after segmentation
Build the syntax tree and screening link grammar of the template text.
By taking above-mentioned template text as an example, the syntactic units after each segmentation are parsed.
First piece of text grammer unit for not keyword.
Second piece is while syntactic units, and while is the keyword of Control Cooling, so needing to while syntactic units
Node addition screening chain, the keyword for screening chain is the parameter field name ' code1 ' of while, at this time screen chain state
Do you become ' code1=from ' null '? ', using second part as text, similarly obtains the variable $ { code1 }-for needing to replace and become
A is measured, does is variable a in screening chain ' code1=? ' in, continue to read switch keyword, recognizing switch parameter is
Does { code2 } increase screening chain item ' code2=newly so continuing to read using switch unit as text? ' into screening chain, this
When switch unit inside screening chain become ' code1=? ', ' code2=? '.And so on, complete syntax tree and screening
The building of link grammar.
Screening chain is the chained list of a nested layer level relationship, each node has corresponding screening chain, and prosthomere is worked as in expression
Point state in which.The effect for screening chain is exactly to judge whether this sentence belongs to this node.For example, some node it
Under, all values of a certain node must by its father node constraint and influence, judge that a value whether on present node, needs
To judge by the state of father node, i.e. screening chain, can accurately branch's circulation be controlled and be calculated.
Syntax tree (abstract syntax tree) is the tree-shaped form of expression of the abstract syntax structure of text, is to be based on
The three-address code of the belt type of register, has two kinds of forms of sentence and expression formula, and each node in syntax tree indicates text
One of this structure.What one section of text was made of a series of sentences, and a sentence is decomposed into several expression formulas.
For example, arithmetic expression ' 3+5 ' is first carried out, result is from an assignment statement ' x=3+5 ' is grammatically analyzed
' 8 ', then by assignment expression ' x=8 ', variable ' x ' is assigned a value of ' 8 '.(as above using the operator of expression formula as tree root
'+', '=' in example), the variable and constant (' x ', ' 3 ', ' 5 ' etc.) for participating in operation have just obtained expression formula pair as leaf
The syntax tree answered, the corresponding syntax tree of several expression formulas constitute the corresponding syntax tree of a sentence, and the grammer of several sentences
Tree just constitutes the syntax tree of whole section of text.
Second building module 140 constructs syntactic units for being based on the screening link grammar for each syntactic units
Syntax tree, and the node variable of the syntax tree of the syntactic units is replaced with into the data to be presented.
For the template of preconfigured described earlier, after syntax tree has been built, input data into syntax tree,
When reading while node, the parameter code1 of while has 3 values-[A, B, C], so the part while can repetition running 3
Secondary, screening chain for the first time is ' code1=A ', and programmed screening chain is ' code1=B ', and it is ' code1=that third time, which screens chain,
C ', when screen chain be A when, read variable a, at this time inquiry screening chain, only the 1st article and the 2nd data it is eligible, this
The value of ' code1 ' of two datas is all A, so this variations per hour a has been substituted for A.
When screening chain code1=A, into the part switch, the parameter of switch is code2, does branch parameter,
Screening chain is ' code1=A ' at this time, so only the 1st article and the 2nd data can enter the part switch, switch's
In case (' aa '), screening chain becomes ' code1=A ', ' code2=aa ', and the data for meeting screening chain at this time only have first
Item then deletes the section of the part case (' cc ') so the value of sum (code4) is 2, case (' cc ') corresponding without numerical value
Point.And so on, it is operated according to the variable replacement that screening chain completes syntax tree.
Wherein, in while intra-node, there is 2 important factors, one be while parameter, parameter represents circulation
Number, another factor is exactly the text inside while unit, and the text is substantially also a syntax tree, it is accurate for
It is the subtree on while node, it is possible to using this subtree as an individual syntactic units.Since while is that have item
Part, need to calculate the state of while parameter at this time when replacing variable, so needing that while is added toward inside screening chain
The state value of parameter at this time.
Such as: inside while syntactic units, need to carry out the value under the current state of calculating add (a, b), by sieve
Select chain screens all data, if there is 1000 datas, the data for being in this screening chain state only have 200, that
This 200 data is summarized, obtains a's and for A, b's and be B, then the C that A is added with B, learn C for add
The value of (a, b) under current state.
Feedback module 150, each node for the syntax tree to the syntactic units are traversed to obtain each node
Type executes preset operation to the corresponding scope of the node of preset kind, obtains target template text and feeds back to described
User terminal.
Based on the structure of the syntax tree, syntax tree is traversed using depth-priority-searching method, to each section of the syntax tree
Point is traversed to obtain the type of each node, corresponding to the node according to the type of node when traversing preset node
Scope executes preset operation.For example, executing sentence operation for plain text node;For arithmetic function node, hold
Line function processing operation.
In the present embodiment, sequence is executed according to the logic to running node data, to each node of the syntax tree
Sequentially traversed.Since syntax tree represents the execution framework to running node data, thus, to patrolling for running node data
What volume execution sequence also determined each node in syntax tree executes sequence.
Predetermined registration operation is executed to node corresponding scope to preset kind node, comprising:
The scope for identifying the default node, the effect according to the type of the default node, to the default node
Target data in domain carries out preset operation, and treated as a result, updating the syntax tree according to replacement.Preset operation
It can be following operation: assignment operation, function processing operation, logical operation, sentence operation, member's expression formula processing operation, solution
Close operation etc..
In the present embodiment, key can also be set for the target template text in advance, institute is utilized in transmission process
It states target template text described in key pair and carries out encryption transmission, prevent the situation that user account is stolen, it is close when user's input
The target template text is decrypted when key is proved to be successful to check for user.
In addition, the present invention also provides a kind of methods that data are shown.It is method for exhibiting data of the present invention referring to shown in Fig. 4
Embodiment method flow schematic diagram.The processor 12 of electronic device 1 executes the data presentation program stored in memory 11
The following steps for the method that data are shown are realized when 10:
Step S10: the data that user terminal issues are received and show that request, the request include data to be presented.
It in the present embodiment, may include wait open up in request for showing certain mechanism in the earning report in some city
(for example, to show the achievement situation in some city, content index to be presented can be with are as follows: city, sales volume, branch for the content shown
Out, net profit margin etc.), it also may include store path and mark content to be presented.That is, content to be presented can be with
It is user's typing together when submitting request, is also possible to after user submits report to show request, is specified from request
Address in obtain.
Obtaining user's method content to be presented includes: to provide user interface for user's input feature vector data, is obtained
The all data of user input, or partial data is extracted as to be presented from the data that pre-stored user inputs
Content.
In one embodiment, the receiving module 110 also carries out the user for the user terminal for initiating data displaying request
Subscriber identity information verifying, subscriber identity information are verified, and execute subsequent step, subscriber identity information authentication failed is then refused
The data described absolutely, which show request and generate warning information, feeds back to user terminal.For example, receiving module 110 is by the identity information of user
Matched with the preset white list for having request permissions, when in white list exist and the matched data of subscriber identity information
When, it is believed that user has permission;When data matched with subscriber identity information are not present in white list, it is believed that user does not have
Permission.
Step S20: obtaining preconfigured template text from presetting database, regular using preset text segmentation,
It is several syntactic units by the template text segmentation.
In the present embodiment, text is traversed, identify the keyword of preset kind in preconfigured template text and be somebody's turn to do
The range of text of keyword will be divided the template text segmentation at several block text contents based on the range of text of keyword
Every block text content after cutting as a syntactic units, such as: plain text unit, while key element and operation list
Member etc..
Wherein, preconfigured template text can be with are as follows:
Text:
By taking above-mentioned template text as an example, specific segmentation rule are as follows: preconfigured mould is got from presetting database
After plate text, reads since the first row first character ' text ', when reading first keyword while, identify
Text primary segmentation is 3 parts by the range (right parenthesis of the 2nd row to eighth row) of while keyword, first part's text, the
The two parts part while, the text after Part III eighth row bracket.
In the present embodiment, preconfigured template text can have circulation, branch, variable calculate function:
Circulation: in a template, it is configured with while (code1), needs to obtain the sum of ' code1 ', can just access circulation
Number;
Branch: in a template, it is configured with switch (code2).For case (code2), need to each mechanism into
Row branch process is then only needed for case (' Shenzhen ') to the Shenzhen code2=' ' value do aggregation process.
Variable calculates: assuming that being in the range of case (' Shenzhen '), for common replacement, then only needing to be replaced with
' Shenzhen '.The template does not need individually to calculate other values, when showing that mechanism is increased, does not need modification template yet.
Step S30: based on the syntactic units after segmentation, parsing each syntactic units, constructs the template text
This syntax tree and screening link grammar.
By taking above-mentioned template text as an example, the syntactic units after each segmentation are parsed.
First piece of text grammer unit for not keyword.
Second piece is while syntactic units, and while is the keyword of Control Cooling, so needing to while syntactic units
Node addition screening chain, the keyword for screening chain is the parameter field name ' code1 ' of while, at this time screen chain state
Do you become ' code1=from ' null '? ', using second part as text, similarly obtains the variable $ { code1 }-for needing to replace and become
A is measured, does is variable a in screening chain ' code1=? ' in, continue to read switch keyword, recognizing switch parameter is
Does { code2 } increase screening chain item ' code2=newly so continuing to read using switch unit as text? ' into screening chain, this
When switch unit inside screening chain become ' code1=? ', ' code2=? '.And so on, complete syntax tree and screening
The building of link grammar.
Screening chain is the chained list of a nested layer level relationship, each node has corresponding screening chain, and prosthomere is worked as in expression
Point state in which.The effect for screening chain is exactly to judge whether this sentence belongs to this node.For example, some node it
Under, all values of a certain node must by its father node constraint and influence, judge that a value whether on present node, needs
To judge by the state of father node, i.e. screening chain, can accurately branch's circulation be controlled and be calculated.
Syntax tree (abstract syntax tree) is the tree-shaped form of expression of the abstract syntax structure of text, is to be based on
The three-address code of the belt type of register, has two kinds of forms of sentence and expression formula, and each node in syntax tree indicates text
One of this structure.What one section of text was made of a series of sentences, and a sentence is decomposed into several expression formulas.
For example, arithmetic expression ' 3+5 ' is first carried out, result is from an assignment statement ' x=3+5 ' is grammatically analyzed
' 8 ', then by assignment expression ' x=8 ', variable ' x ' is assigned a value of ' 8 '.(as above using the operator of expression formula as tree root
'+', '=' in example), the variable and constant (' x ', ' 3 ', ' 5 ' etc.) for participating in operation have just obtained expression formula pair as leaf
The syntax tree answered, the corresponding syntax tree of several expression formulas constitute the corresponding syntax tree of a sentence, and the grammer of several sentences
Tree just constitutes the syntax tree of whole section of text.
Step S40: being based on the screening link grammar, the syntax tree of syntactic units is constructed for each syntactic units, and will
The node variable of the syntax tree of the syntactic units replaces with the data to be presented.
For the template of preconfigured described earlier, after syntax tree has been built, input data into syntax tree,
When reading while node, the parameter code1 of while has 3 values-[A, B, C], so the part while can repetition running 3
Secondary, screening chain for the first time is ' code1=A ', and programmed screening chain is ' code1=B ', and it is ' code1=that third time, which screens chain,
C ', when screen chain be A when, read variable a, at this time inquiry screening chain, only the 1st article and the 2nd data it is eligible, this
The value of ' code1 ' of two datas is all A, so this variations per hour a has been substituted for A.
When screening chain code1=A, into the part switch, the parameter of switch is code2, does branch parameter,
Screening chain is ' code1=A ' at this time, so only the 1st article and the 2nd data can enter the part switch, switch's
In case (' aa '), screening chain becomes ' code1=A ', ' code2=aa ', and the data for meeting screening chain at this time only have first
Item then deletes the section of the part case (' cc ') so the value of sum (code4) is 2, case (' cc ') corresponding without numerical value
Point.And so on, it is operated according to the variable replacement that screening chain completes syntax tree.
Wherein, in while intra-node, there is 2 important factors, one be while parameter, parameter represents circulation
Number, another factor is exactly the text inside while unit, and the text is substantially also a syntax tree, it is accurate for
It is the subtree on while node, it is possible to using this subtree as an individual syntactic units.Since while is that have item
Part, need to calculate the state of while parameter at this time when replacing variable, so needing that while is added toward inside screening chain
The state value of parameter at this time.
Such as: inside while syntactic units, need to carry out the value under the current state of calculating add (a, b), by sieve
Select chain screens all data, if there is 1000 datas, the data for being in this screening chain state only have 200, that
This 200 data is summarized, obtains a's and for A, b's and be B, then the C that A is added with B, learn C for add
The value of (a, b) under current state.
Step S50: each node of the syntax tree of the syntactic units is traversed to obtain the type of each node, to pre-
If the corresponding scope of the node of type executes preset operation, obtains target template text and feed back to the user terminal.
In the present embodiment, the structure based on the syntax tree traverses syntax tree using depth-priority-searching method, to institute's predicate
Each node of method tree is traversed to obtain the type of each node, when traversing preset node, according to the type pair of node
The corresponding scope of the node executes preset operation.For example, executing sentence operation for plain text node;For calculating
Number function node, executes function processing operation.
In the present embodiment, sequence is executed according to the logic to running node data, to each node of the syntax tree
Sequentially traversed.Since syntax tree represents the execution framework to running node data, thus, to patrolling for running node data
What volume execution sequence also determined each node in syntax tree executes sequence.
Predetermined registration operation is executed to node corresponding scope to preset kind node, comprising:
The scope for identifying the default node, the effect according to the type of the default node, to the default node
Target data in domain carries out preset operation, and treated as a result, updating the syntax tree according to replacement.Preset operation
It can be following operation: assignment operation, function processing operation, logical operation, sentence operation, member's expression formula processing operation, solution
Close operation etc..
In the present embodiment, key can also be set for the target template text in advance, institute is utilized in transmission process
It states target template text described in key pair and carries out encryption transmission, prevent the situation that user account is stolen, it is close when user's input
The target template text is decrypted when key is proved to be successful to check for user.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, which can
To be hard disk, multimedia card, SD card, flash card, SMC, read-only memory (ROM), Erasable Programmable Read Only Memory EPROM
(EPROM), any one in portable compact disc read-only memory (CD-ROM), USB storage etc. or several timess
Meaning combination.It include data presentation program 10 in the computer readable storage medium, the data presentation program 10 is by processor
Following operation is realized when execution:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, regular using preset text segmentation,
It is several syntactic units by the template text segmentation;
First construction step: based on the syntactic units after segmentation, each syntactic units is parsed, the mould is constructed
The syntax tree and screening link grammar of plate text;
Second construction step: being based on the screening link grammar, and the syntax tree of syntactic units is constructed for each syntactic units,
And the node variable of the syntax tree of the syntactic units is replaced with into the data to be presented;And
Feedback step: traversing each node of the syntax tree of the syntactic units to obtain the type of each node, right
The corresponding scope of the node of preset kind executes preset operation, obtains target template text and feeds back to the user terminal.
The specific implementation of the specific embodiment of the computer readable storage medium of the present invention and above-mentioned method for exhibiting data
Mode is roughly the same, and details are not described herein.
It should be noted that the serial number of the above embodiments of the invention is only for description, do not represent the advantages or disadvantages of the embodiments.And
The terms "include", "comprise" herein or any other variant thereof is intended to cover non-exclusive inclusion, so that packet
Process, device, article or the method for including a series of elements not only include those elements, but also including being not explicitly listed
Other element, or further include for this process, device, article or the intrinsic element of method.Do not limiting more
In the case where, the element that is limited by sentence "including a ...", it is not excluded that including process, device, the article of the element
Or there is also other identical elements in method.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, electronic device or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of method for exhibiting data is applied to electronic device, which is characterized in that the described method includes:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, using preset text segmentation rule, by institute
Stating template text segmentation is several syntactic units;
First construction step: based on the syntactic units after segmentation, parsing each syntactic units, constructs the template text
This syntax tree and screening link grammar;
Second construction step: being based on the screening link grammar, the syntax tree of syntactic units is constructed for each syntactic units, and will
The node variable of the syntax tree of the syntactic units replaces with the data to be presented;And
Feedback step: being traversed to obtain the type of each node to each node of the syntax tree of the syntactic units, to default
The corresponding scope of the node of type executes preset operation, obtains target template text and feeds back to the user terminal.
2. method for exhibiting data as described in claim 1, which is characterized in that the receiving step further include:
Authentication is carried out to the user of the user terminal, subscriber authentication is by then executing the segmentation step, Yong Hushen
Part authentication failed then refuses the data access request and generates warning information to feed back to the user terminal.
3. method for exhibiting data as described in claim 1, which is characterized in that the segmentation step includes:
Identify the keyword of preset kind and the range of text of the keyword, the text based on the keyword in the template text
This range by the template text segmentation at several block text contents, using every block text content after segmentation as a grammer list
Member.
4. method for exhibiting data as described in claim 1, which is characterized in that described to the corresponding effect of the node of preset kind
Domain executes predetermined registration operation, comprising:
Identify the scope of the node of the preset kind;
Predetermined registration operation is executed to the target data in the scope of the node of the preset kind, the predetermined registration operation includes assignment
Operation, sentence replacement operation;
And the syntax tree of the syntactic units is updated according to the result after predetermined registration operation.
5. the method for exhibiting data as described in Claims 1-4 any one, which is characterized in that the feedback step includes: pre-
Key first is set for the target template text, is added in transmission process using target template text described in the key pair
Close transmission is decrypted the target template text when the key authentication success of user's input and is checked for user.
6. a kind of electronic device, which includes memory and processor, which is characterized in that stores number on the memory
According to presentation program, the data presentation program is executed by the processor, realizes following steps:
Receiving step: the data that user terminal issues are received and show that request, the request include data to be presented;
Segmentation step: obtaining preconfigured template text from presetting database, using preset text segmentation rule, by institute
Stating template text segmentation is several syntactic units;
First construction step: based on the syntactic units after segmentation, parsing each syntactic units, constructs the template text
This syntax tree and screening link grammar;
Second construction step: being based on the screening link grammar, the syntax tree of syntactic units is constructed for each syntactic units, and will
The node variable of the syntax tree of the syntactic units replaces with the data to be presented;And
Feedback step: being traversed to obtain the type of each node to each node of the syntax tree of the syntactic units, to default
The corresponding scope of the node of type executes preset operation, obtains target template text and feeds back to the user terminal.
7. electronic device as claimed in claim 6, which is characterized in that the segmentation step includes:
Identify the keyword of preset kind and the range of text of the keyword, the text based on the keyword in the template text
This range by the template text segmentation at several block text contents, using every block text content after segmentation as a grammer list
Member.
8. electronic device as claimed in claim 6, which is characterized in that it is characterized in that, the node pair to preset kind
The scope answered executes predetermined registration operation, comprising:
Identify the scope of the node of the preset kind;
Predetermined registration operation is executed to the target data in the scope of the node of the preset kind, the predetermined registration operation includes assignment
Operation, sentence replacement operation;
And the syntax tree of the syntactic units is updated according to the result after predetermined registration operation.
9. electronic device as claimed in claim 6, which is characterized in that the feedback step includes: in advance for the target mould
Key is arranged in plate text, carries out encryption transmission using target template text described in the key pair in transmission process, works as user
The target template text is decrypted when the key authentication success of input to check for user.
10. a kind of computer readable storage medium, which is characterized in that include that data are shown in the computer readable storage medium
Program, it can be achieved that data are shown as described in any one of claims 1 to 5 when the data presentation program is executed by processor
The step of method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910434187.9A CN110209766B (en) | 2019-05-23 | 2019-05-23 | Data display method, electronic device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910434187.9A CN110209766B (en) | 2019-05-23 | 2019-05-23 | Data display method, electronic device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110209766A true CN110209766A (en) | 2019-09-06 |
CN110209766B CN110209766B (en) | 2021-01-29 |
Family
ID=67788369
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910434187.9A Active CN110209766B (en) | 2019-05-23 | 2019-05-23 | Data display method, electronic device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110209766B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599039A (en) * | 2019-09-16 | 2019-12-20 | 平安科技(深圳)有限公司 | Product management method and device, electronic equipment and storage medium |
CN111078863A (en) * | 2019-12-16 | 2020-04-28 | 北京明略软件***有限公司 | Data acquisition method and device, data processing equipment and storage medium |
CN111159203A (en) * | 2019-12-31 | 2020-05-15 | 中科曙光国际信息产业有限公司 | Data association analysis method, platform, electronic device and storage medium |
CN111897523A (en) * | 2020-06-29 | 2020-11-06 | 北京金茂绿建科技有限公司 | Information display method and device |
CN113946615A (en) * | 2021-10-19 | 2022-01-18 | 平安普惠企业管理有限公司 | Data structuring processing method, device, equipment and storage medium |
CN118113302A (en) * | 2024-04-30 | 2024-05-31 | 浪潮电子信息产业股份有限公司 | Tree-shaped intermediate representation generation method, system, equipment, medium and product |
Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0949571A2 (en) * | 1998-04-07 | 1999-10-13 | Xerox Corporation | Document re-authoring systems and methods for providing device-independent access to the world wide web |
US20080312954A1 (en) * | 2007-06-15 | 2008-12-18 | Validus Medical Systems, Inc. | System and Method for Generating and Promulgating Physician Order Entries |
US20140195651A1 (en) * | 2013-01-04 | 2014-07-10 | Qualcomm Incorporated | Live timing for dynamic adaptive streaming over http (dash) |
CN104199831A (en) * | 2014-07-31 | 2014-12-10 | 深圳市腾讯计算机***有限公司 | Information processing method and device |
CN106469140A (en) * | 2015-08-17 | 2017-03-01 | 朗新科技股份有限公司 | A kind of report generating system and its method |
CN106776929A (en) * | 2016-11-30 | 2017-05-31 | 北京锐安科技有限公司 | A kind of method for information retrieval and device |
CN107273117A (en) * | 2017-05-25 | 2017-10-20 | 深圳市彬讯科技有限公司 | A kind of quick Code automatic build system for programming friendly |
CN108363743A (en) * | 2018-01-24 | 2018-08-03 | 清华大学深圳研究生院 | A kind of intelligence questions generation method, device and computer readable storage medium |
CN108519963A (en) * | 2018-03-02 | 2018-09-11 | 山东科技大学 | A method of procedural model is automatically converted to multi-language text |
CN108681529A (en) * | 2018-03-26 | 2018-10-19 | 山东科技大学 | A kind of multi-language text and speech production method of procedural model figure |
CN108804532A (en) * | 2018-05-03 | 2018-11-13 | 腾讯科技(深圳)有限公司 | A kind of recognition methods, the device of the excavation and query intention of query intention |
CN109033764A (en) * | 2017-06-09 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Antialiasing processing method and terminal, computer equipment |
CN109241101A (en) * | 2018-08-31 | 2019-01-18 | 阿里巴巴集团控股有限公司 | A kind of database inquiry optimization method, apparatus and computer equipment |
CN109299003A (en) * | 2018-08-31 | 2019-02-01 | 苏州洞察云信息技术有限公司 | A kind of full-automatic testing case driving generation system towards complex software |
-
2019
- 2019-05-23 CN CN201910434187.9A patent/CN110209766B/en active Active
Patent Citations (14)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP0949571A2 (en) * | 1998-04-07 | 1999-10-13 | Xerox Corporation | Document re-authoring systems and methods for providing device-independent access to the world wide web |
US20080312954A1 (en) * | 2007-06-15 | 2008-12-18 | Validus Medical Systems, Inc. | System and Method for Generating and Promulgating Physician Order Entries |
US20140195651A1 (en) * | 2013-01-04 | 2014-07-10 | Qualcomm Incorporated | Live timing for dynamic adaptive streaming over http (dash) |
CN104199831A (en) * | 2014-07-31 | 2014-12-10 | 深圳市腾讯计算机***有限公司 | Information processing method and device |
CN106469140A (en) * | 2015-08-17 | 2017-03-01 | 朗新科技股份有限公司 | A kind of report generating system and its method |
CN106776929A (en) * | 2016-11-30 | 2017-05-31 | 北京锐安科技有限公司 | A kind of method for information retrieval and device |
CN107273117A (en) * | 2017-05-25 | 2017-10-20 | 深圳市彬讯科技有限公司 | A kind of quick Code automatic build system for programming friendly |
CN109033764A (en) * | 2017-06-09 | 2018-12-18 | 腾讯科技(深圳)有限公司 | Antialiasing processing method and terminal, computer equipment |
CN108363743A (en) * | 2018-01-24 | 2018-08-03 | 清华大学深圳研究生院 | A kind of intelligence questions generation method, device and computer readable storage medium |
CN108519963A (en) * | 2018-03-02 | 2018-09-11 | 山东科技大学 | A method of procedural model is automatically converted to multi-language text |
CN108681529A (en) * | 2018-03-26 | 2018-10-19 | 山东科技大学 | A kind of multi-language text and speech production method of procedural model figure |
CN108804532A (en) * | 2018-05-03 | 2018-11-13 | 腾讯科技(深圳)有限公司 | A kind of recognition methods, the device of the excavation and query intention of query intention |
CN109241101A (en) * | 2018-08-31 | 2019-01-18 | 阿里巴巴集团控股有限公司 | A kind of database inquiry optimization method, apparatus and computer equipment |
CN109299003A (en) * | 2018-08-31 | 2019-02-01 | 苏州洞察云信息技术有限公司 | A kind of full-automatic testing case driving generation system towards complex software |
Non-Patent Citations (2)
Title |
---|
杜仕甫: "基于ARM-Linux的嵌入式数据库技术研究与应用", 《中国优秀硕士学位论文全文数据库信息科技辑》 * |
郑韡 等: "基于连续数据流的动态手势识别算法", 《北京航空航天大学学报》 * |
Cited By (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110599039A (en) * | 2019-09-16 | 2019-12-20 | 平安科技(深圳)有限公司 | Product management method and device, electronic equipment and storage medium |
CN110599039B (en) * | 2019-09-16 | 2023-06-06 | 平安科技(深圳)有限公司 | Product management method and device, electronic equipment and storage medium |
CN111078863A (en) * | 2019-12-16 | 2020-04-28 | 北京明略软件***有限公司 | Data acquisition method and device, data processing equipment and storage medium |
CN111159203A (en) * | 2019-12-31 | 2020-05-15 | 中科曙光国际信息产业有限公司 | Data association analysis method, platform, electronic device and storage medium |
CN111159203B (en) * | 2019-12-31 | 2023-10-31 | 中科曙光国际信息产业有限公司 | Data association analysis method, platform, electronic equipment and storage medium |
CN111897523A (en) * | 2020-06-29 | 2020-11-06 | 北京金茂绿建科技有限公司 | Information display method and device |
CN111897523B (en) * | 2020-06-29 | 2024-03-15 | 北京金茂绿建科技有限公司 | Information display method and device |
CN113946615A (en) * | 2021-10-19 | 2022-01-18 | 平安普惠企业管理有限公司 | Data structuring processing method, device, equipment and storage medium |
CN118113302A (en) * | 2024-04-30 | 2024-05-31 | 浪潮电子信息产业股份有限公司 | Tree-shaped intermediate representation generation method, system, equipment, medium and product |
Also Published As
Publication number | Publication date |
---|---|
CN110209766B (en) | 2021-01-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110209766A (en) | Method for exhibiting data, electronic device and storage medium | |
US10936974B2 (en) | Automated training and selection of models for document analysis | |
CN109791642B (en) | Automatic generation of workflow | |
CN110516178A (en) | Multistage items methods of exhibiting, server and storage medium based on big data | |
CN109446218A (en) | SQL statement generation method, device and computer readable storage medium | |
US10387815B2 (en) | Continuously variable resolution of resource allocation | |
CN109471857A (en) | Data modification method, device and storage medium based on SQL statement | |
US10936308B2 (en) | Multi-tenant collaborative learning | |
US11593074B2 (en) | System, method, and apparatus for data-centric networked application development services | |
CN104133772A (en) | Automatic test data generation method | |
US10445072B1 (en) | Execution order block for graphical programming | |
CN110866180A (en) | Resource recommendation method, server and storage medium | |
CN108197091B (en) | Method, system and related equipment for creating data table | |
US10042619B2 (en) | System and method for efficiently managing enterprise architecture using resource description framework | |
CN108241529B (en) | Salary calculation method, application server and computer readable storage medium | |
CN106844772A (en) | The update method and device of application database | |
CN109657128A (en) | Data query method, apparatus and storage medium | |
CN107679056A (en) | Generate method, electronic installation and the readable storage medium storing program for executing of SQL statement | |
CN106843984A (en) | The update method and device of application database | |
US20190205454A1 (en) | Tracking and viewing model changes based on time | |
CN110096304A (en) | Task construction method, device, equipment and storage medium based on Jenkins | |
CN113326523A (en) | Privacy calculation method and device and electronic equipment | |
CN111651472A (en) | Data query method, server and storage medium | |
WO2023249688A1 (en) | Systems, methods, and storage media for verifying data | |
CN110866007A (en) | Information management method, system and computer equipment for big data application and table |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |