CN108681600A - Food tracing information display method, device and system - Google Patents
Food tracing information display method, device and system Download PDFInfo
- Publication number
- CN108681600A CN108681600A CN201810488056.4A CN201810488056A CN108681600A CN 108681600 A CN108681600 A CN 108681600A CN 201810488056 A CN201810488056 A CN 201810488056A CN 108681600 A CN108681600 A CN 108681600A
- Authority
- CN
- China
- Prior art keywords
- information
- food
- displaying
- food tracing
- tracing information
- 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.)
- Pending
Links
- 235000013305 food Nutrition 0.000 title claims abstract description 302
- 238000000034 method Methods 0.000 title claims abstract description 42
- 238000003860 storage Methods 0.000 claims description 18
- 230000005540 biological transmission Effects 0.000 claims description 11
- 238000004519 manufacturing process Methods 0.000 claims description 11
- 239000002994 raw material Substances 0.000 claims description 9
- 238000001514 detection method Methods 0.000 claims description 7
- 238000004458 analytical method Methods 0.000 abstract description 5
- 230000008569 process Effects 0.000 description 9
- 238000010586 diagram Methods 0.000 description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000010276 construction Methods 0.000 description 3
- 238000011161 development Methods 0.000 description 2
- 235000013399 edible fruits Nutrition 0.000 description 2
- 235000021393 food security Nutrition 0.000 description 2
- 235000014594 pastries Nutrition 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001684 chronic effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000013497 data interchange Methods 0.000 description 1
- 238000000151 deposition Methods 0.000 description 1
- 238000013461 design Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000001747 exhibiting effect Effects 0.000 description 1
- 230000008821 health effect Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000005055 memory storage Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 231100000252 nontoxic Toxicity 0.000 description 1
- 230000003000 nontoxic effect Effects 0.000 description 1
- 235000016709 nutrition Nutrition 0.000 description 1
- 231100000614 poison Toxicity 0.000 description 1
- 230000007096 poisonous effect Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
Abstract
The invention provides a method, a device and a system for displaying food tracing information, wherein the method comprises the following steps: the method comprises the steps that at least one piece of food tracing information created by at least one enterprise terminal according to a pre-defined JSON mark analysis structure is obtained, wherein each piece of food tracing information comprises at least one user-defined display item and a corresponding display style value; respectively writing each piece of food tracing information into a block chain which is deployed in advance; respectively receiving an information tracing request sent by each client terminal; reading corresponding food tracing information from the block chain according to the information tracing request; and sending the read food tracing information to a corresponding client terminal so that the client terminal can analyze the food tracing information according to the JSON mark analysis structure and display the corresponding self-defined display item according to the analyzed display style value. The scheme can enable the displayed food tracing information to highlight the characteristics of corresponding foods.
Description
Technical field
The present invention relates to technical field of data processing, more particularly to a kind of food tracing information displaying method, device and it is
System.
Background technology
Food security refers to that food is nontoxic, harmless, meets the nutritional requirement that should have, does not cause any urgency to health
Property, subacute or chronic hazard.Under the driving of interests, poisonous and harmful food is sold in some illegal enterprise's manufactures, causes to eat
Product safety problem takes place frequently.In order to which food-safe problem is checked in time, related governmental departments have been put into effect a series of about pushing away
Into the relevant policies of food tracing System Construction, to by the food securities phase such as raw material sources, production process, process of circulation
The retrospect of information is closed, the food-safe attention degree of enterprise achievees the purpose that checking food-safety problem takes place frequently.
Currently, food enterprise generally issues food tracing information by trace platform, trace platform is receiving user's profit
After request with the transmission of the terminal devices such as mobile phone, computer, corresponding food tracing information is issued to the mobile phone or computer of user, with
Food tracing information is showed into user.
For the method being shown at present to food tracing information, food enterprise needs are chased after according to what trace platform provided
The food tracing information of corresponding food is published to trace platform by the information model that traces back, but each not phase of the production process of different food products
Together, various food carry out food tracing information publication according to unified tracing information template so that correspond to different food products
Food tracing information displaying pattern having the same can not protrude the characteristic of food by food tracing information.
Invention content
An embodiment of the present invention provides food tracing information displaying method, apparatus and systems, can make shown food
Tracing information protrudes the characteristic of corresponding food.
In a first aspect, an embodiment of the present invention provides a kind of food tracing information displaying methods, including:
Obtain at least one food created according to pre-defined JSON label analytic structures by least one enterprise terminal
Product tracing information, wherein each described food tracing information includes at least one self-defined displaying item and corresponding displaying
Pattern value;
On the block chain that each described food tracing information write-in is disposed in advance respectively;
Further include:
The information tracing request of each client terminal transmission is received respectively;
It is traced and is asked according to described information, the corresponding food tracing information is read from the block chain;
The food tracing information read is sent to the corresponding client terminal, so that the client terminal
Analytic structure is marked to parse the food tracing information according to the JSON, and according to the displaying pattern parsed
Value is shown the corresponding self-defined displaying item.
Optionally, the self-defined displaying item includes:Title, article, picture, video, link, table, flow list or
Carousel figure, wherein
The corresponding displaying pattern value of the title is used to define font size, font color and the background of the title
Color;
The corresponding displaying pattern value of the article is used to define font size, font color, the font of the article
Retraction and background color;
The corresponding displaying pattern value of the picture is used to define the width and height dimensions of the picture;
The corresponding displaying pattern value of the video is used to define the width and height dimensions of the video;
Link color, underscore and the font that the corresponding displaying pattern value is linked for defining the link is big
It is small;
The corresponding displaying pattern value of the table is used to define the font size of the table, font color, ranks
Size and table border;
The corresponding displaying pattern value of the flow list is with being used to define index value, the flow chart of the flow list
Location, word size, text color and the size of space;
The corresponding displaying pattern value of the carousel figure be used to define the carousel figure size, whether automatic carousel,
Carousel time interval, whether recycle carousel and picture click redirect path.
Optionally,
The food tracing information further comprises:Product information, circulation information, production information, detection information, raw material letter
Any one or more basis displaying items in breath and company information.
Optionally,
Before on the block chain for respectively disposing each described food tracing information write-in in advance, further wrap
It includes:A corresponding block chain is disposed for each food classification;
On the block chain that each described food tracing information write-in is disposed in advance respectively, including:Basis respectively
The food classification of food corresponding to each described food tracing information, food tracing information write-in is corresponding described
On block chain.
Optionally, which further comprises:
It is counted to the displaying pattern value that each food tracing information on the block chain includes is written,
Determine the corresponding highest recommendation displaying pattern value of utilization rate of each described self-defined displaying item;
JSON label analytic structures are updated according to each recommendation displaying pattern value, and will be updated
The JSON labels analytic structure is sent to each enterprise terminal.
Second aspect, the embodiment of the present invention additionally provide a kind of food tracing device for displaying information, including:Acquisition of information list
Member, information memory cell, Information reading unit and information retransmission unit;
Described information acquiring unit marks parsing by least one enterprise terminal for obtaining according to pre-defined JSON
At least one food tracing information of Structure Creating, wherein each described food tracing information includes at least one self-defined
Show item and corresponding displaying pattern value;
Described information storage unit, each described food tracing information for respectively getting information acquisition unit
It is written in the block chain disposed in advance;
Described information reading unit, the information tracing request for receiving the transmission of each client terminal respectively, and according to
The information tracing received asks to read corresponding institute on the block chain from described information storage unit into row write data
State food tracing information;
Described information retransmission unit, the food tracing information for reading described information reading unit are sent to
The corresponding client terminal, the client terminal that looks like mark analytic structure to believe the food tracing according to the JSON
Breath is parsed, and is shown to the corresponding self-defined displaying item according to the displaying pattern value parsed.
Optionally, which further comprises:Block chain deployment unit;
The block chain deployment unit, for disposing a corresponding block chain for each food type;
Described information storage unit, for respectively according to the foodstuff of food corresponding to food tracing information described in each
Not, the food tracing information is written on the corresponding block chain disposed by the block chain deployment unit.
Optionally, which further comprises:Topology update unit;
The topology update unit, for described information storage unit being written each food on the block chain
The displaying pattern value that tracing information includes is counted, and determines the corresponding utilization rate of each described self-defined displaying item most
High recommendation shows pattern value, and is carried out more to JSON label analytic structures according to each recommendation displaying pattern value
Newly, and by the updated JSON labels analytic structure it is sent to each enterprise terminal.
The third aspect, the embodiment of the present invention additionally provide a kind of food tracing information display system, including:Second aspect carries
Any one food tracing device for displaying information, at least one enterprise terminal and at least one user terminal supplied;
Each described enterprise terminal, for according to external triggering, according to JSON label analytic structures create to
Few food tracing information, and at least one food tracing information of establishment is sent to the food tracing and is believed
Breath displaying device;
Each described user terminal, for sending described information to the food tracing device for displaying information according to triggering
Retrospect request, and chased after according to the JSON food for marking analytic structure to issue the food tracing device for displaying information
Information of tracing back is parsed, and is shown to the corresponding self-defined displaying item according to the displaying pattern value parsed.
Optionally,
The user terminal, is further used for according to pre-defined basis displaying pattern value, to from the food tracing
At least one basis displaying item parsed in information is shown.
Food tracing information displaying method provided in an embodiment of the present invention, apparatus and system, enterprise terminal is according in advance
After the JSON label analytic structures of definition create food tracing information, each food tracing for respectively creating each enterprise terminal
In the block chain that information write-in is disposed in advance, after receiving the information tracing request of client terminal transmission, read from block chain
It takes corresponding food tracing information to be sent to client terminal, food tracing information is parsed by client terminal, client is whole
End can be shown corresponding self-defined displaying item in food tracing information according to the displaying pattern parsed.Thus may be used
See, since the food tracing information that enterprise terminal creates includes at least one self-defined displaying item and each self-defined displaying
The corresponding displaying pattern value of item, enterprise can make self-defined exhibition by defining different displaying pattern values for self-defined displaying item
Aspect shows different patterns in user terminal, therefore enterprise can be directed to different food products and define including different displaying pattern values
Food tracing information so that food tracing information can be with the characteristic of the corresponding food of image.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is the present invention
Some embodiments for those of ordinary skill in the art without creative efforts, can also basis
These attached drawings obtain other attached drawings.
Fig. 1 is a kind of flow chart of food tracing information displaying method provided by one embodiment of the present invention;
Fig. 2 is the schematic diagram of equipment where a kind of food tracing device for displaying information provided by one embodiment of the present invention;
Fig. 3 is a kind of schematic diagram of food tracing device for displaying information provided by one embodiment of the present invention;
Fig. 4 is the schematic diagram of another food tracing device for displaying information provided by one embodiment of the present invention;
Fig. 5 is the schematic diagram of another food tracing device for displaying information provided by one embodiment of the present invention;
Fig. 6 is a kind of schematic diagram of food tracing information display system provided by one embodiment of the present invention;
Fig. 7 is the flow chart of another food tracing information displaying method provided by one embodiment of the present invention.
Specific implementation mode
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention
In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is
A part of the embodiment of the present invention, instead of all the embodiments, based on the embodiments of the present invention, those of ordinary skill in the art
The every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
As shown in Figure 1, an embodiment of the present invention provides a kind of food tracing information displaying method, this method may include with
Lower step:
Step 101:It obtains and is created extremely according to pre-defined JSON label analytic structures by least one enterprise terminal
Few food tracing information, wherein each described food tracing information includes at least one self-defined displaying item and relatively
The displaying pattern value answered;
Step 102:On the block chain that the write-in of each food tracing information is disposed in advance respectively;
Step 103:The information tracing request of each client terminal transmission is received respectively;
Step 104:It is asked according to information tracing, corresponding food tracing information is read from block chain;
Step 105:The food tracing information read is sent to corresponding client terminal so that client terminal according to
JSON label analytic structures parse food tracing information, and are made by oneself to corresponding according to the displaying pattern value parsed
Justice displaying item is shown.
An embodiment of the present invention provides a kind of food tracing information displaying method, enterprise terminal is pre-defined in basis
After JSON marks analytic structure to create food tracing information, each food tracing information that each enterprise terminal creates is write respectively
Enter in the block chain disposed in advance, after receiving the information tracing request of client terminal transmission, is read from block chain opposite
The food tracing information answered is sent to client terminal, is parsed to food tracing information by client terminal, and client terminal can be with
Corresponding self-defined displaying item in food tracing information is shown according to the displaying pattern parsed.It can be seen that by
Include that at least one self-defined displaying item and each self-defined displaying item are right in the food tracing information that enterprise terminal creates
The displaying pattern value answered, enterprise can make self-defined displaying item by defining different displaying pattern values for self-defined displaying item
Different patterns are shown in user terminal, therefore enterprise can be directed to different food products and define the food for including different displaying pattern values
Tracing information so that food tracing information can be with the characteristic of the corresponding food of image.
Optionally, the self-defined displaying item that food tracing information includes is can be by the displaying item of enterprise's self-defining, certainly
Definition displaying item may include title, article, picture, video, link, table, flow list or carousel figure.
It, can be respectively by each self-defined displaying item when marking analytical mechanism to create food tracing information according to JSON
As attribute-name, and formulate the displaying pattern value corresponding to it.Specifically, using title as when attribute-name, attribute value is general
For brief illustrative words, the corresponding displaying pattern value of title is for defining its font size, font color and background color;
Using article as when attribute-name, attribute value is usually introductory word or detailed description word, the corresponding displaying of article
Pattern value is for defining its font size, font color, font retraction and background color;Using picture as when attribute-name, belong to
Property value be usually food picture path, enterprise's picture, honorary certificate picture etc., the corresponding displaying pattern value of picture is for defining it
Width and height dimensions;Using video as when attribute-name, attribute value is usually that food path is introduced by food or enterprise, and video is corresponding
Displaying pattern value is for defining its width and height dimensions;When by link as attribute-name, attribute value is usually store on food line
Link or the link of digital map navigation link corresponding displaying pattern value for defining link color, underscore and font size;
Using table as when attribute-name, attribute value is usually the detection of examining report, and the corresponding displaying pattern value of table is for fixed
Its adopted font size, font color, ranks size and table border;Using flow list as when attribute-name, attribute value is general
It is the process description in process of manufacture, the corresponding displaying pattern value of flow list is for defining its index value, flow chart
Location, word size, text color and the size of space;Using carousel figure as when attribute-name, attribute value is usually the picture of food
Path, the honorary certificate picture path of enterprise, credentials picture path, the corresponding displaying pattern value of carousel figure is for defining wheel
Broadcast figure size, whether automatic carousel, carousel time interval, whether recycle carousel and picture click redirect path.
Food tracing information may include in title, article, picture, video, link, table, flow list and carousel figure
The self-defined displaying items of one or more, and displaying pattern value of each self-defined displaying item can be defined respectively so that no
Food tracing information with food is shown in user terminal with different displaying patterns, enriches the displaying of food tracing information
Form promote food enterprise to food to which food enterprise can carry out personalized displaying to the food tracing information of its food
The satisfaction that product tracing information is shown.
Optionally, food tracing information in addition to include by the customized self-defined displaying item of enterprise other than, food tracing letter
Breath can also include the displaying of the basis such as product information, circulation information, production information, detection information, raw material information, company information
.Correspondingly, when food tracing information includes basis displaying item, after food tracing information is sent to user terminal,
User terminal can mark the basis displaying pattern value that analytic structure defines to show item to each basis parsed according to JSON
It is shown.
Food tracing information includes product information, circulation information, production information, detection information, raw material information and enterprise's letter
Displaying item in the basis such as breath shows the raw material, production that item can be to corresponding food by each basis that food tracing information includes
Process, process of circulation etc. are traced, to which user can differentiate whether food is safe according to food tracing information, with to food
Enterprise exercises supervision and reports, peomotes the construction of foodstuff security system.
Optionally, before the food tracing information write-in block chain that will be got, each food classification can be directed to
A corresponding block chain is disposed, in this way, after getting a food tracing information, it can be according to the food tracing information
The food tracing information is written on corresponding block chain the food classification of corresponding food.
For example, creating block chain 1 for fruit based food, block chain 2 is created for pastry food, then block chain 1 is used
In the food tracing information of storage fruit based food, block chain 2 is used to store the food tracing information of pastry food.In addition,
Each block chain node can correspond to an enterprise, can also correspond to multiple enterprises, i.e. a block chain node includes each
A block chain can be used for storing the food tracing information of an enterprise, can be used for the food tracing letter for storing multiple enterprises
Breath.
Block chain is disposed respectively for different food products classification, and to belong to same foodstuff other for storing for the same block chain
The corresponding food tracing information of food can be managed collectively food tracing information according to food classification, contributes in this way
Improve the efficiency being managed to food tracing information.
Optionally, after food tracing information is written in block chain, each food on block chain can be chased after
The displaying pattern that information of tracing back includes is counted, and is determined that each self-defined displaying item is corresponding and is used the highest recommendation of probability
It shows pattern value, and then JSON label analytic structures can be updated according to each recommendation displaying pattern value determined,
And updated JSON label analytic structures are sent to each enterprise terminal, each enterprise terminal can be according to update later
JSON label analytic structures afterwards create food tracing information.
Specifically, a large amount of food tracing information is stored in block chain, each food tracing information includes at least
One self-defined displaying item, each displaying item is corresponding with corresponding displaying pattern value, by each food on block chain
The displaying pattern value of each self-defined displaying item included by tracing information is counted, it may be determined that each self-defined displaying
The access times of each corresponding displaying pattern value, so that it is determined that going out the corresponding utilization rate of each self-defined displaying item most
High recommendation shows pattern value.
For example, by being counted to displaying pattern value, self-defined displaying item title uses the highest displaying pattern of probability
Value is displaying pattern value 1, then will show that pattern value 1 is determined as the self-defined recommendation for showing item title and shows pattern value, self-defined
Show that displaying pattern value 2 to show pattern value 2, is then determined as self-defined exhibition by item article using the highest displaying pattern value of probability
The recommendation of aspect article shows pattern value, similarly determines that the corresponding recommendation of other each self-defined displaying items shows pattern value.
JSON label analytic structures are updated later, each self-defined displaying item is silent in updated JSON labels analytic structure
It is corresponding recommendation displaying pattern value to recognize displaying pattern value.
By being counted to the food tracing information in written block chain, each self-defined displaying item is determined respectively
Corresponding recommendation shows pattern value, and then according to corresponding the recommendations displaying pattern value of each self-defined displaying item to JSON label solutions
Analysis structure is updated, and updated JSON label analytic structures are sent to each enterprise terminal, and enterprise terminal is just later
Analytic structure can be marked to create new food tracing information according to updated JSON.Analytic structure wound is being marked according to JSON
When building food tracing information, the displaying pattern value conduct that JSON label analytic structure acquiescences may be used in enterprise customer is accordingly made by oneself
Justice shows the displaying pattern value of item, and enterprise customer shows pattern value without self-defining at this time, improves food tracing information wound
The efficiency built.
As shown in Figure 2 and Figure 3, an embodiment of the present invention provides a kind of food tracing device for displaying information.Device embodiment can
By software realization, can also be realized by way of hardware or software and hardware combining.For hardware view, such as Fig. 2 institutes
Show, is a kind of hardware structure diagram of equipment where food tracing device for displaying information provided in an embodiment of the present invention, in addition to Fig. 2 institutes
Except the processor, memory, network interface and the nonvolatile memory that show, the equipment in embodiment where device is usually also
It may include other hardware, such as be responsible for the forwarding chip of processing message.For implemented in software, as shown in figure 3, as one
Device on a logical meaning is to be referred to corresponding computer program in nonvolatile memory by the CPU of equipment where it
It enables and reads what operation in memory was formed.Food tracing device for displaying information provided in this embodiment, including:Information acquisition unit
301, information memory cell 302, Information reading unit 303 and information retransmission unit 304;
Information acquisition unit 301 marks parsing by least one enterprise terminal for obtaining according to pre-defined JSON
At least one food tracing information of Structure Creating, wherein each food tracing information includes at least one self-defined displaying
Item and corresponding displaying pattern value;
Information memory cell 302, for respectively writing each food tracing information that information acquisition unit 301 is got
Enter in the block chain disposed in advance;
Information reading unit 303, the information tracing request for receiving the transmission of each client terminal respectively, and according to connecing
The information tracing received asks to read corresponding food tracing letter on from information memory cell 302 into the block chain of row write data
Breath;
Information retransmission unit 304, the food tracing information for reading Information reading unit 303 are sent to corresponding
Client terminal, meaning client terminal marks analytic structure to parse food tracing information according to JSON, and according to parsing
The displaying pattern value gone out is shown corresponding self-defined displaying item.
Optionally, on the basis of food tracing device for displaying information shown in Fig. 3, as shown in figure 4, the food tracing information
Displaying device may further include:Block chain deployment unit 405;
Block chain deployment unit 405, for disposing a corresponding block chain for each food type;
Information memory cell 302 is used for respectively according to the food classification of food corresponding to each food tracing information, will
Food tracing information is written on the corresponding block chain disposed by block chain deployment unit 405.
Optionally, shown in Fig. 3 or Fig. 4 on the basis of food tracing device for displaying information, as shown in figure 5, the food chases after
The device for displaying information that traces back may further include:Topology update unit 506;
Topology update unit 506, for information memory cell 302 being written each food tracing packet on block chain
The displaying pattern value included is counted, and determines the highest recommendation displaying pattern of the corresponding utilization rate of each self-defined displaying item
Value, and show that pattern value is updated JSON label analytic structures according to each recommendation, and updated JSON is marked and is solved
Analysis structure is sent to each enterprise terminal.
It should be noted that the contents such as information exchange, implementation procedure between each unit in above-mentioned apparatus, due to this
Inventive method embodiment is based on same design, and particular content can be found in the narration in the method for the present invention embodiment, no longer superfluous herein
It states.
As shown in fig. 6, one embodiment of the invention provides a kind of food tracing information display system, including:Above-mentioned
Food tracing device for displaying information 601, at least one enterprise terminal 602 and at least one user that one embodiment of anticipating provides are whole
End 603;
Each enterprise terminal 602, for according to external triggering, being created according to JSON label analytic structures at least one
Food tracing information, and at least one food tracing information of establishment is sent to food tracing device for displaying information 601;
Each user terminal 603 is asked for sending information tracing to food tracing device for displaying information 601 according to triggering
It asks, and marks analytic structure to parse the food tracing information that food tracing device for displaying information issues according to JSON, press
Corresponding self-defined displaying item is shown according to the displaying pattern value parsed.
Optionally, on the basis of food tracing information display system shown in Fig. 6, when the food that enterprise terminal 602 is created
When product tracing information includes basis displaying item, user terminal 603 is further used for according to pre-defined basis displaying pattern value,
At least one basis displaying item parsed from food tracing information is shown.
With reference to food tracing information display system shown in fig. 6, food tracing provided in an embodiment of the present invention is believed
Breath methods of exhibiting is described in further detail, as shown in fig. 7, this method may comprise steps of:
Step 701:A corresponding block chain is created for each food classification.
In embodiments of the present invention, a corresponding block chain is created for each food classification, belonged to for storing
In the corresponding food tracing information of the other food of the foodstuff.
Step 702:Obtain the food tracing information that each enterprise terminal creates.
In embodiments of the present invention, each enterprise terminal marks parsing knot according to the triggering of enterprise customer according to JSON
Structure creates food tracing information, and created food tracing information includes self-defined displaying information and basis shows information, self-defined
The displaying information displaying pattern value corresponding with each self-defined displaying item that includes at least one self-defined displaying item.It is self-defined
Show that information includes any one or more in title, article, picture, video, link, table, flow list and carousel figure
Self-defined displaying item, basis displaying information includes product information, circulation information, production information, detection information, raw material information and enterprise
Any one or more basis displaying items in industry information.
Step 703:Food tracing information is written on opposite block chain.
In embodiments of the present invention, for each food tracing information, according to food corresponding to the food tracing information
The food tracing information is written on block chain corresponding with food classification by affiliated food classification.Specifically, food chases after
Information of tracing back marks analytic structure to carry out data assembling according to JSON, will in conjunction with the mode of own service and personalized display data
Data are written to by intelligent contract on block chain, realize food tracing information cochain, the number as displaying food tracing information
According to source.Wherein, it refers to based on a kind of data interchange format of lightweight that JSON, which marks analytic structure, includes basis
Show the template of the template and self-defined displaying information of information.
Step 704:Receive the information tracing request that user terminal is sent.
In embodiments of the present invention, user terminal, which can be smart mobile phone, tablet computer, personal computer etc., to network
Equipment, when user by user terminal scanning be attached to the Quick Response Code on food when, user terminal can be to food tracing
Device for displaying information sends information tracing request.
Step 705:Corresponding food tracing information is read from block chain according to information tracing request, and will be read
Food tracing information be sent to corresponding user terminal.
In embodiments of the present invention, it after receiving information tracing request, is asked from corresponding area according to information tracing
Food tracing information is read on block chain, and will read user's end that food tracing information all is sent to transmission information tracing request
End.Specifically, it is communicated by using the RPC frames of the leading exploitation of Google, calls the software development kit of Java, food is chased after
Information of tracing back reads user terminal from block chain.
Step 706:Food tracing information is parsed and shown.
In embodiments of the present invention, user terminal is after receiving food tracing information, can to food tracing information into
Row displaying obtains self-defined displaying information and basis displaying information.For the basis displaying information parsed, according to pre-defined
Basis displaying pattern value to basis displaying information include it is each basis displaying item be shown.It is self-defined for what is parsed
Show information, each the self-defined displaying item for including according to self-defined displaying information and corresponding displaying pattern value, respectively
The each self-defined displaying item for including to self-defined displaying information is shown.
Specifically, user terminal marks analytic structure to carry out data solution to the food tracing information got according to JSON
Analysis, is parsed into the structure for meeting cascading style sheets (CSS3) language standard.Structure after parsing is used and is moved based on mixed mode
The ANGULARJS frames of dynamic application and development pattern carry out data parsing assembling, show appearance with the form for meeting mobile terminal webpage.
Wherein, mixed mode mobile application refers to that programming language uses HTML hypertext markup language, primary independent of Android or IOS
Development language, but may operate in Android and the application in IOS systems or webpage.ANGULARJS frames refer to
JavaScript frames, it is a library with written in JavaScript, can complete the displaying and interaction of data on webpage.
The embodiment of the present invention additionally provides a kind of readable medium, including executes instruction, when the processor of storage control is held
When being executed instruction described in row, the storage control executes the food tracing information displaying method that above-mentioned each embodiment provides.
The embodiment of the present invention additionally provides a kind of storage control, including:Processor, memory and bus;
The memory is executed instruction for storing, and the processor is connect with the memory by the bus, when
When the storage control operation, the above-mentioned each embodiment of the execution that the processor executes the memory storage provides
Food tracing information displaying method.
In conclusion food tracing information displaying method, apparatus and system that each embodiment of the present invention provides, at least have
It has the advantages that:
1, in embodiments of the present invention, enterprise terminal is chased after according to pre-defined JSON label analytic structure establishment food
After information of tracing back, in the block chain for respectively disposing each food tracing information write-in that each enterprise terminal creates in advance, connecing
After the information tracing request for receiving client terminal transmission, corresponding food tracing information is read from block chain and is sent to client
Terminal parses food tracing information by client terminal, and client terminal can be according to the displaying pattern parsed to food
Corresponding self-defined displaying item is shown in tracing information.It can be seen that since the food tracing that enterprise terminal creates is believed
The breath displaying pattern value corresponding with each self-defined displaying item that includes at least one self-defined displaying item, enterprise pass through for from
Definition displaying item defines different displaying pattern values, and self-defined displaying item can be made to show different patterns in user terminal, because
This enterprise can be directed to different food products and define the food tracing information for including different displaying pattern values so that food tracing information can
With the characteristic of the corresponding food of image.
2, in embodiments of the present invention, distributed storage technology of the block chain as a kind of decentralization, have it is credible,
It can not distort, the characteristics such as security privacy, therefore in the food tracing information storage to block chain got, can be chased after to avoid food
Information of tracing back is tampered so that user can inquire true food tracing information, ensure the credibility of food tracing information.
3, in embodiments of the present invention, food tracing information may include title, article, picture, video, link, table,
The self-defined displaying item of one or more of flow list and carousel figure, and each self-defined displaying item can be defined respectively
Show pattern value so that the food tracing information of different food products is shown in user terminal with different displaying patterns, is enriched
The form of food tracing information displaying, to which food enterprise can carry out the food tracing information of its food personalized exhibition
Show, promotes the satisfaction that food enterprise is shown food tracing information.
4, in embodiments of the present invention, food tracing information includes product information, circulation information, production information, detection letter
The basis such as breath, raw material information and company information displaying item, can be right by each basis displaying item that food tracing information includes
Raw material, production process, the process of circulation etc. of corresponding food are traced, and are eaten to which user can differentiate according to food tracing information
Whether product are safe, to exercise supervision and report to food enterprise, peomote the construction of foodstuff security system.
5, in embodiments of the present invention, block chain is disposed respectively for different food products classification, the same block chain is for depositing
Storage belongs to the corresponding food tracing information of the other food of same foodstuff, in this way can be according to food classification to food tracing information
It is managed collectively, helps to improve the efficiency being managed to food tracing information.
6, in embodiments of the present invention, true respectively by being counted to the food tracing information in written block chain
The corresponding recommendation displaying pattern value of fixed each self-defined displaying item, and then according to the corresponding recommendation exhibition of each self-defined displaying item
Show that pattern value is updated JSON label analytic structures, and updated JSON label analytic structures are sent to each enterprise
Terminal, later enterprise terminal can according to updated JSON mark analytic structure create new food tracing information.In root
When creating food tracing information according to JSON label analytic structures, the exhibition of JSON label analytic structure acquiescences may be used in enterprise customer
Showing displaying pattern value of the pattern value as corresponding self-defined displaying item, enterprise customer shows pattern value without self-defining at this time,
Improve the efficiency of food tracing information creating.
It should be noted that herein, such as first and second etc relational terms are used merely to an entity
Or operation is distinguished with another entity or operation, is existed without necessarily requiring or implying between these entities or operation
Any actual relationship or order.Moreover, the terms "include", "comprise" or its any other variant be intended to it is non-
It is exclusive to include, so that the process, method, article or equipment including a series of elements includes not only those elements,
But also include other elements that are not explicitly listed, or further include solid by this process, method, article or equipment
Some elements.In the absence of more restrictions, the element limited by sentence " including one ", is not arranged
Except there is also other identical factors in the process, method, article or apparatus that includes the element.
One of ordinary skill in the art will appreciate that:Realize that all or part of step of above method embodiment can pass through
The relevant hardware of program instruction is completed, and program above-mentioned can be stored in computer-readable storage medium, the program
When being executed, step including the steps of the foregoing method embodiments is executed;And storage medium above-mentioned includes:ROM, RAM, magnetic disc or light
In the various media that can store program code such as disk.
Finally, it should be noted that:The foregoing is merely presently preferred embodiments of the present invention, is merely to illustrate the skill of the present invention
Art scheme, is not intended to limit the scope of the present invention.Any modification for being made all within the spirits and principles of the present invention,
Equivalent replacement, improvement etc., are included within the scope of protection of the present invention.
Claims (10)
1. a kind of food tracing information displaying method, which is characterized in that including:
It obtains and is chased after according at least one food that pre-defined JSON label analytic structures create by least one enterprise terminal
It traces back information, wherein each described food tracing information includes at least one self-defined displaying item and corresponding displaying pattern
Value;
On the block chain that each described food tracing information write-in is disposed in advance respectively;
Further include:
The information tracing request of each client terminal transmission is received respectively;
It is traced and is asked according to described information, the corresponding food tracing information is read from the block chain;
The food tracing information read is sent to the corresponding client terminal so that the client terminal according to
The JSON labels analytic structure parses the food tracing information, and according to the displaying pattern value pair parsed
The corresponding self-defined displaying item is shown.
2. according to the method described in claim 1, it is characterized in that, the self-defined displaying item includes:Title, article, picture,
Video, link, table, flow list or carousel figure, wherein
The corresponding displaying pattern value of the title is used to define font size, font color and the background face of the title
Color;
The corresponding displaying pattern value of the article is used to define the font size of the article, font color, font retraction
And background color;
The corresponding displaying pattern value of the picture is used to define the width and height dimensions of the picture;
The corresponding displaying pattern value of the video is used to define the width and height dimensions of the video;
Link color, underscore and the font size for linking the corresponding displaying pattern value and being used to define the link;
The corresponding displaying pattern value of the table is used to define font size, font color, the ranks size of the table
And table border;
The corresponding displaying pattern value of the flow list be used to define the index value of the flow list, flow chart address,
Word size, text color and the size of space;
The corresponding displaying pattern value of the carousel figure be used to define the carousel figure size, whether automatic carousel, carousel
Time interval, whether recycle carousel and picture click redirect path.
3. according to the method described in claim 2, it is characterized in that,
The food tracing information further comprises:Product information, circulation information, production information, detection information, raw material information and
Any one or more basis displaying items in company information.
4. according to the method described in claim 1, it is characterized in that,
Before on the block chain for respectively disposing each described food tracing information write-in in advance, further comprise:
A corresponding block chain is disposed for each food classification;
On the block chain that each described food tracing information write-in is disposed in advance respectively, including:Respectively according to each
The corresponding block is written in the food tracing information by the food classification of food corresponding to a food tracing information
On chain.
5. according to any method in Claims 1-4, which is characterized in that further comprise:
It counts, determines to the displaying pattern value that each food tracing information on the block chain includes is written
The corresponding highest recommendation of utilization rate of each described self-defined displaying item shows pattern value;
JSON label analytic structures are updated according to each recommendation displaying pattern value, and will be updated described
JSON label analytic structures are sent to each enterprise terminal.
6. a kind of food tracing device for displaying information, which is characterized in that including:Information acquisition unit, information memory cell, information
Reading unit and information retransmission unit;
Described information acquiring unit marks analytic structure by least one enterprise terminal for obtaining according to pre-defined JSON
At least one food tracing information created, wherein each described food tracing information includes at least one self-defined displaying
Item and corresponding displaying pattern value;
Described information storage unit, each described food tracing information write-in for respectively getting information acquisition unit
In the block chain disposed in advance;
Described information reading unit, the information tracing request for receiving the transmission of each client terminal respectively, and according to reception
To information tracing ask to read the corresponding food on the block chain from described information storage unit into row write data
Product tracing information;
Described information retransmission unit, the food tracing information for reading described information reading unit are sent to relatively
The client terminal answered, look like the client terminal according to the JSON mark analytic structure to the food tracing information into
Row parsing, and the corresponding self-defined displaying item is shown according to the displaying pattern value parsed.
7. device according to claim 6, which is characterized in that further comprise:Block chain deployment unit;
The block chain deployment unit, for disposing a corresponding block chain for each food type;
Described information storage unit, for respectively according to the food classification of food corresponding to food tracing information described in each,
The food tracing information is written on the corresponding block chain disposed by the block chain deployment unit.
8. the device described according to claim 6 or 7, which is characterized in that further comprise:Topology update unit;
The topology update unit, for described information storage unit being written each food tracing on the block chain
The displaying pattern value that information includes is counted, and determines that the corresponding utilization rate of each described self-defined displaying item is highest
Recommend displaying pattern value, and JSON label analytic structures are updated according to each recommendation displaying pattern value, and
The updated JSON labels analytic structure is sent to each enterprise terminal.
9. a kind of food tracing information display system, which is characterized in that including:Any food chases after in claim 6 to 8
Trace back device for displaying information, at least one enterprise terminal and at least one user terminal;
Each described enterprise terminal, for according to external triggering, at least one to be created according to JSON label analytic structures
A food tracing information, and at least one food tracing information of establishment is sent to the food tracing information exhibition
Showing device;
Each described user terminal, for sending described information retrospect to the food tracing device for displaying information according to triggering
Request, and mark analytic structure to believe the food tracing that the food tracing device for displaying information issues according to the JSON
Breath is parsed, and is shown to the corresponding self-defined displaying item according to the displaying pattern value parsed.
10. system according to claim 9, which is characterized in that
The user terminal, is further used for according to pre-defined basis displaying pattern value, to from the food tracing information
In parse it is at least one it is described basis displaying item be shown.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810488056.4A CN108681600A (en) | 2018-05-21 | 2018-05-21 | Food tracing information display method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810488056.4A CN108681600A (en) | 2018-05-21 | 2018-05-21 | Food tracing information display method, device and system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108681600A true CN108681600A (en) | 2018-10-19 |
Family
ID=63806943
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810488056.4A Pending CN108681600A (en) | 2018-05-21 | 2018-05-21 | Food tracing information display method, device and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108681600A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670327A (en) * | 2018-12-25 | 2019-04-23 | 北京食安链科技有限公司 | A kind of food safety common query system based on block chain |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708410A (en) * | 2012-03-14 | 2012-10-03 | 山东省射频识别应用工程技术研究中心有限公司 | Network tracing system and network tracing method for non-staple food industrial chain |
CN103475571A (en) * | 2013-04-25 | 2013-12-25 | 腾讯科技(深圳)有限公司 | Internet interaction method, related equipment and system |
CN103559579A (en) * | 2013-11-06 | 2014-02-05 | 广东兰贝斯信息科技有限公司 | Method for self-defining tracing procedures in organic food traceability system |
US20160098036A1 (en) * | 2014-10-07 | 2016-04-07 | Siemens Aktiengesellschaft | Method of and system for controlling a manufacturing process |
CN107392625A (en) * | 2017-06-29 | 2017-11-24 | 雷霞 | Distributed medicine source tracing method and device based on block chain |
-
2018
- 2018-05-21 CN CN201810488056.4A patent/CN108681600A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102708410A (en) * | 2012-03-14 | 2012-10-03 | 山东省射频识别应用工程技术研究中心有限公司 | Network tracing system and network tracing method for non-staple food industrial chain |
CN103475571A (en) * | 2013-04-25 | 2013-12-25 | 腾讯科技(深圳)有限公司 | Internet interaction method, related equipment and system |
CN103559579A (en) * | 2013-11-06 | 2014-02-05 | 广东兰贝斯信息科技有限公司 | Method for self-defining tracing procedures in organic food traceability system |
US20160098036A1 (en) * | 2014-10-07 | 2016-04-07 | Siemens Aktiengesellschaft | Method of and system for controlling a manufacturing process |
CN107392625A (en) * | 2017-06-29 | 2017-11-24 | 雷霞 | Distributed medicine source tracing method and device based on block chain |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670327A (en) * | 2018-12-25 | 2019-04-23 | 北京食安链科技有限公司 | A kind of food safety common query system based on block chain |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
Murray | Interactive data visualization for the web: an introduction to designing with D3 | |
Yau | Visualize this: the FlowingData guide to design, visualization, and statistics | |
US11893337B2 (en) | Method and apparatus for browsing information | |
Duke et al. | Seeing is believing: good graphic design principles for medical research | |
Rahlf | Data visualisation with R: 100 examples | |
CN108536658B (en) | Method and device for generating custom tag data | |
US20180041458A1 (en) | Adaptive presentation of comments based on sentiment | |
CN106789584B (en) | Client system for tourist product sales | |
CN111259644A (en) | Rich text processing method, editor, equipment and storage medium | |
CN109598171A (en) | A kind of data processing method based on two dimensional code, apparatus and system | |
US10331442B2 (en) | Visual design evaluation | |
CN106599968A (en) | Multi-dimensional input commodity information processing method and apparatus for generating 2D codes | |
CN111382192A (en) | Data list display method and device and electronic equipment | |
CN108681600A (en) | Food tracing information display method, device and system | |
US8296326B1 (en) | Grid-based user interface techniques for interacting with nested hierarchical data structures | |
Wade | Advanced Analytics in Power BI with R and Python | |
CN103034990A (en) | Method and device for checking publications | |
CN106649724B (en) | Information display method and device and user terminal | |
CN113268190B (en) | Information interaction method, system, device, electronic equipment and storage medium | |
CN111259069B (en) | Configuration-based data visualization implementation method | |
US20140095698A1 (en) | Monitoring and reporting relevant activities | |
CN113515505A (en) | Data model generation method and device of data warehouse and electronic equipment | |
US11461429B1 (en) | Systems and methods for website segmentation and quality analysis | |
Kirk | Visualization Insights From Anna Wiederkehr’s “US Election 2020 Forecast” | |
US11921797B2 (en) | Computer service for indexing threaded comments with pagination support |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20181019 |