CN108335120A - Assets source tracing method, device, electronic equipment, storage medium based on block chain - Google Patents
Assets source tracing method, device, electronic equipment, storage medium based on block chain Download PDFInfo
- Publication number
- CN108335120A CN108335120A CN201810188411.6A CN201810188411A CN108335120A CN 108335120 A CN108335120 A CN 108335120A CN 201810188411 A CN201810188411 A CN 201810188411A CN 108335120 A CN108335120 A CN 108335120A
- Authority
- CN
- China
- Prior art keywords
- source
- assets
- tracing
- block chain
- asset
- 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
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/018—Certifying business or products
- G06Q30/0185—Product, service or business identity fraud
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q30/00—Commerce
- G06Q30/06—Buying, selling or leasing transactions
- G06Q30/0601—Electronic shopping [e-shopping]
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06Q—INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
- G06Q40/00—Finance; Insurance; Tax strategies; Processing of corporate or income taxes
- G06Q40/04—Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
Landscapes
- Business, Economics & Management (AREA)
- Accounting & Taxation (AREA)
- Finance (AREA)
- Engineering & Computer Science (AREA)
- Strategic Management (AREA)
- Marketing (AREA)
- Economics (AREA)
- Physics & Mathematics (AREA)
- General Business, Economics & Management (AREA)
- General Physics & Mathematics (AREA)
- Development Economics (AREA)
- Theoretical Computer Science (AREA)
- Entrepreneurship & Innovation (AREA)
- Technology Law (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention provides a kind of assets source tracing method, device, electronic equipment, storage medium based on block chain, the assets source tracing method based on block chain, including:Receive the asset identification of assets;Determine the abstract query pattern figure for being associated with the assets;Query pattern figure is generated according to the business model for being associated with the asset identification based on the abstract query pattern figure;And the data of tracing to the source for being associated with the asset identification are inquired from the database of tracing to the source being arranged in the block chain chain according to the query pattern figure.Query performance of efficiently tracing to the source may be implemented in method and device provided by the invention.
Description
Technical field
The present invention relates to computer application technology more particularly to a kind of assets source tracing method, dresses based on block chain
It sets, electronic equipment, storage medium.
Background technology
Block chain is being applied to as a believable data management technique among asset management scene.At these
Under scene, assets are traced to the source, and using how to be carried out to the asset data that block chain stores, efficient inquiry problem is particularly critical, it is area
Block chain can maturely apply to the key problem in all kinds of asset management fields.
In the related technology, generally use two ways carries out asset management:
1) participant respectively uses the asset management system of centralization storage
However, such asset management mode will have multiparty data redundancy, data are inconsistent, the problems such as easily distorting.
2) participant is directly realized by assets using existing block chain data-interface and traces to the source function
However, in such asset management mode, since assets are traced to the source, demand is changeable, and the existing database of block chain lacks
It is suitable for assets to trace to the source the data storage (time series and chart database) of demand, and block chain available data interface polls energy
Power is limited, and the reusability for inquiry of tracing to the source is insufficient.In addition, be related to asset size it is larger when, query performance is poor.
It can be seen that how to realize that efficient query performance of tracing to the source is urgent problem to be solved of the present invention.
Invention content
The present invention provides a kind of assets side of tracing to the source based on block chain to overcome defect existing for above-mentioned the relevant technologies
Method, device, electronic equipment, storage medium, and then efficient query performance of tracing to the source is realized at least to a certain extent.
According to an aspect of the present invention, a kind of assets source tracing method based on block chain is provided, including:
Receive the asset identification of assets;
Determine the abstract query pattern figure for being associated with the assets;
Query pattern figure is generated according to the business model for being associated with the asset identification based on the abstract query pattern figure;With
And
The data of tracing to the source for being associated with the asset identification are inquired from database of tracing to the source according to the query pattern figure.
Optionally, for the data lab setting of tracing to the source in the block chain chain, the database of tracing to the source includes time series
Database, the time series databases temporally store the Asset State of association asset identification and corresponding timestamp.
Optionally, there is the time series databases heat to cache.
Optionally, described inquired from database of tracing to the source according to the query pattern figure is associated with tracing to the source for the asset identification
Data include:
The intelligent Contracts Definitions of tracing to the source for being associated with the asset identification are generated according to the query pattern figure;And
It is inquired and is closed from the time series databases being arranged in the block chain chain according to the intelligent Contracts Definitions of tracing to the source
Join the data of tracing to the source of the asset identification.
Optionally, the intelligent Contracts Definitions of tracing to the source determine the underlying assets for being associated with the asset identification and to be inquired
Asset State;
The data of tracing to the source for being associated with the asset identification include being associated with the Asset State and the association phase of the asset identification
Close the Asset State of the asset identification of assets.
Optionally, it is described generated according to the query pattern figure be associated with the asset identification trace to the source intelligent Contracts Definitions it
After further include:
The data of tracing to the source for being associated with the asset identification are obtained from external data interface.
Optionally, the asset identification for receiving assets further includes:
When the variation of the Asset State of assets, the Asset State and corresponding timestamp are stored to the time series
Database.
Optionally, database of tracing to the source described in being arranged in the block chain chain includes chart database, the chart database
The business model is stored, the business model describes assets and assets, assets and tissue/entity, group in the form of digraph
Knit/relationship between entity and tissue/entity.
According to another aspect of the invention, a kind of assets based on block chain are also provided to trace to the source device, including:
Receiving module, the asset identification for receiving assets;
Abstract query pattern figure determining module, for determining the abstract query pattern figure for being associated with the assets;
Query pattern figure generation module, for the industry based on the abstract query pattern figure according to the association asset identification
Business model generates query pattern figure;And
It traces to the source module, tracing back for the asset identification is associated with for being inquired from database of tracing to the source according to the query pattern figure
Source data.
According to another aspect of the invention, a kind of electronic equipment is also provided, the electronic equipment includes:Processor;Storage
Medium is stored thereon with computer program, executes when the computer program is run by the processor and is based on as described above
The assets source tracing method of block chain.
According to another aspect of the invention, a kind of storage medium is also provided, computer journey is stored on the storage medium
Sequence executes the assets source tracing method based on block chain as described above when the computer program is run by processor.
Compared with prior art, advantage of the invention is that:
1) inquiry that will trace to the source is converted into graph pattern matching problem, enhances participant user and writes tracing to the source based on block chain
The flexibility of inquiry;
2) it is that the design of block chain is suitable for the storage organization that assets are traced to the source, assets relevant updates data organization is time sequence
Row, optimize the efficiency of relational query.
Description of the drawings
Its example embodiment is described in detail by referring to accompanying drawing, above and other feature of the invention and advantage will become
It is more obvious.
Fig. 1 shows the flow chart of the assets source tracing method according to the ... of the embodiment of the present invention based on block chain.
Fig. 2 shows the schematic diagrames according to the assets traceability system based on block chain of the specific embodiment of the invention.
Fig. 3 shows the signal that the assets traceability system based on block chain according to the specific embodiment of the invention is traced to the source
Figure.
Fig. 4 shows the business mould of the chart database storage according to the ... of the embodiment of the present invention being arranged in the block chain chain
The schematic diagram of type.
Fig. 5 shows the time series databases storage according to the ... of the embodiment of the present invention being arranged in the block chain chain
The schematic diagram of assets related data structures.
Fig. 6 shows that the assets according to the ... of the embodiment of the present invention based on block chain are traced to the source the block diagram of device.
Fig. 7 schematically shows a kind of computer readable storage medium schematic diagram in exemplary embodiment of the present.
Fig. 8 schematically shows a kind of electronic equipment schematic diagram in exemplary embodiment of the present.
Specific implementation mode
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes
Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, thesing embodiments are provided so that the present invention will more
Fully and completely, and by the design of example embodiment comprehensively it is communicated to those skilled in the art.Described feature, knot
Structure or characteristic can be in any suitable manner incorporated in one or more embodiments.
In addition, attached drawing is only the schematic illustrations of the present invention, it is not necessarily drawn to scale.Identical attached drawing mark in figure
Note indicates same or similar part, thus will omit repetition thereof.Some block diagrams shown in attached drawing are work(
Energy entity, not necessarily must be corresponding with physically or logically independent entity.Software form may be used to realize these work(
Energy entity, or these functional entitys are realized in one or more hardware modules or integrated circuit, or at heterogeneous networks and/or place
These functional entitys are realized in reason device device and/or microcontroller device.
Flow chart shown in attached drawing is merely illustrative, it is not necessary to including all steps.For example, the step of having
It can also decompose, and the step of having can merge or part merges, therefore, the sequence actually executed is possible to according to actual conditions
Change.
Fig. 1 diagrammatically illustrates the flow chart of the assets source tracing method according to the ... of the embodiment of the present invention based on block chain.Ginseng
Fig. 1 is examined, the assets source tracing method based on block chain may comprise steps of:
Step S110:Receive the asset identification of assets;
Step S120:Determine the abstract query pattern figure for being associated with the assets;
Step S130:Inquiry is generated according to the business model for being associated with the asset identification based on the abstract query pattern figure
Ideograph;And
Step S140:The number of tracing to the source for being associated with the asset identification is inquired from database of tracing to the source according to the query pattern figure
According to.
In the assets source tracing method based on block chain of exemplary embodiments of the present invention, on the one hand, the present invention will
Inquiry of tracing to the source is converted into graph pattern matching problem, enhances participant user and writes the flexible of the inquiry of tracing to the source based on block chain
Property;On the other hand, the present invention is that the design of block chain is suitable for the storage organization that assets are traced to the source, and assets relevant updates data organization is
Time series optimizes the efficiency of relational query.
It should be noted that although describing each step of method in the present invention with particular order in the accompanying drawings, this is simultaneously
Undesired or hint must execute these steps according to the particular order, or have to carry out the step ability shown in whole
Realize desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps,
And/or a step is decomposed into execution of multiple steps etc..
Specifically, data lab setting is traced to the source described in above-mentioned steps in the block chain chain, the database of tracing to the source
Including time series databases.The time series databases temporally store the association Asset State of asset identification and corresponding
Timestamp.There is the time series databases heat to cache.Further, when the Asset State of assets changes, by the money
Occurrence state and corresponding timestamp are stored to the time series databases, to be updated to time series databases.This hair
The bright assets can be physical assets.Asset State describes the operation to assets.In certain embodiments, assets
State can also describe assets and the relationship between the relevant assets of operation or tissue/entity to assets.
Specifically, the block chain being arranged in above-mentioned steps in the block chain chain is traced to the source, database further includes diagram data
Library, the chart database store the business model, and the business model describes assets and assets, assets in the form of digraph
With the relationship between tissue/entity, tissue/entity and tissue/entity.Tissue/the entity can be such as manufacturer, pin
Sell quotient etc..Business model can be generated according to predetermined service logic.It is appreciated that the assets of same type can be different
Business model.For example, asset identification is the asset association business model A of A, asset identification is the asset association business model B of B,
Query pattern map generalization may be implemented with being associated with for business model according to asset identification.Specifically, above-mentioned steps S130 is based on
It further includes following steps that the abstract query pattern figure generates query pattern figure according to the business model for being associated with the asset identification:
The mark for all assets for being included according to the abstract query pattern figure obtains correlation from the chart database
The business model of connection, by the digraph of the business model stored in the abstract query pattern figure and the chart database into
Row matching to carry out completion to the abstract query pattern figure, and then generates query pattern figure.
Further, above-mentioned steps S140 is inquired according to the query pattern figure from database is traced to the source from database of tracing to the source
Being associated with the data of tracing to the source of the asset identification can also include the following steps:
The intelligent Contracts Definitions of tracing to the source for being associated with the asset identification are generated according to the query pattern figure.Specifically, institute
It states intelligent Contracts Definitions of tracing to the source and determines the Asset State for being associated with the underlying assets of the asset identification and being inquired.
It is inquired from the time series databases according to the intelligent Contracts Definitions of tracing to the source and is associated with tracing back for the asset identification
Source data.Specifically, the data of tracing to the source for being associated with the asset identification include being associated with Asset State and the pass of the asset identification
Join the Asset State of the asset identification of the underlying assets
In a change case of above-described embodiment, above-mentioned steps generate according to the query pattern figure and are associated with the assets
Further include following steps after the intelligent Contracts Definitions of tracing to the source of mark:
The data of tracing to the source for being associated with the asset identification are obtained from external data interface.
It is appreciated that in such embodiments, part Asset State enters chain, and part Asset State does not enter chain, as a result, may be used
To obtain the Asset State into chain by block chain time series databases, the assets for not entering chain are obtained by external data interface
State.
Below with reference to Fig. 2, Fig. 2 shows according to the assets traceability system based on block chain of the specific embodiment of the invention
Schematic diagram.
Assets traceability system based on block chain provides REST interfaces 210, business model 221, asset data 222, tissue
Identity data 223, transaction in assets management level 230, assets trace to the source engine 240, block chain persistence interface and extension 250 of tracing to the source,
Transactions history 261, current state 262, database of tracing to the source (storage of tracing to the source) 262 and external data interface 270.
In a specific embodiment, company " A " is to be added to trace to the source by REST interfaces input organizational identities data 223
System.After addition, company " A " can input one or more asset datas 222 by REST interfaces, and can be that its asset creation is multiple
Business model 221.Assets are traced to the source the business model 221 that engine 240 is created according to company " A ", and Asset State change is mapped to
Relationship is traced to the source database 263 with forming the digraph of business model 221 and being stored to the block chain by block chain interface
(digraph stored in chart database can be with as shown in figure 4, it passes through Asset Type in digraph (i.e. assets) to chart database
301 and Asset Type 301, Asset Type 301 and tissue/entity 302, having between tissue/entity 302 and tissue/entity 302
To relationship) in.When assets are merchandised, Transaction Information is stored to transactions history 261, and according to " Asset State to relationship
Mapping " triggering relationship of assets (and Asset State) update to database 263 of tracing to the source time series databases (time series number
It can be with as shown in figure 5, it stores Asset ID (asset identification) 303 and its associated Asset State according to the data structure stored in library
305 and corresponding timestamp 304).In some optional embodiments, it can be carried out using external data interface 270 further
Inquiry of tracing to the source.
The realization method for entering chain using milk bag as embodiment assets is described below.
Specifically, the block chain of the present invention can be realized on block scm cluster Ali's Cloud Server, each participant
Block chain is added in node.Traceability system can be built as http-server on Ali's cloud, and be configured at the company of block chain
It is driver connected.The ambient temperature data http query interfaces that common carrier can open are as external data interface 270.
In the asset management of milk bag, each participant is added traceability system and registers milk bag and transport service by manufacturer
Business model.Manufacturer can register required external http request address.Traceability system is generated according to the business model of milk bag
Asset State enters chain intelligence contract-defined interface, and assets (milk bag, truck, container) state is arrived with corresponding timestamp storage
It traces to the source the time series databases of database 263.Intelligent contract is deployed to the node of each participant by traceability system.It traces to the source and is
Intelligent contract is packaged as http services and to participant open interface for calling by system.
Fig. 3 shows the signal that the assets traceability system based on block chain according to the specific embodiment of the invention is traced to the source
Figure.Fig. 3 is shown carries out the realization method that milk band is traced to the source using assets traceability system.
Assets traceability system shown in Fig. 3 provides REST interfaces 320, assets are traced to the source engine 330, Transaction Inquiries of tracing to the source 350,
It traces to the source database (storage of tracing to the source) 360.
Specifically, the block chain of the present invention can be realized on block scm cluster Ali's Cloud Server, each participant
Block chain is added in node.Traceability system can be built as http-server on Ali's cloud, and be configured at the company of block chain
It is driver connected.The ambient temperature data http query interfaces that common carrier can open are as external data interface.
Specifically, milk consumer can input milk bag ID (milk bag mark) by REST interfaces 320.According to ox
Milk bag ID can be by the intelligence of tracing to the source that is generated in advance by being abstracted query pattern figure (abstract query pattern figure as described in label 310)
Contract obtains the complete logistics shipping situation information of the milk bag (transporting environment temperature).Specifically, abstract query pattern figure
310 are defined in traceability system in advance by manufacturer, and traceability system is according to the business for being abstracted query pattern Figure 31 0 and manufacturer
Model completion is query pattern figure, and generates the intelligent contract of inquiry of tracing to the source according to query pattern figure and be deployed to each participant block
Chain node is finally that manufacturer generates REST interfaces of tracing to the source according to query pattern figure.It is appreciated that can for milk bag manufacturer
There are many different business models, abstract query patterns to illustrate the common ground of multiple business model for energy.Then, assets are traced to the source
Abstract query pattern Figure 31 0 is converted completion as query pattern Figure 34 0 by engine 330.In some embodiments, assets are traced to the source engine
330 obtain the digraph of the business model of association milk bag ID from the chart database for database 360 of tracing to the source, and by the digraph
It is matched with abstract query pattern Figure 31 0 and completion.Then, Transaction Inquiries of tracing to the source 350 are based on the generations of query pattern Figure 34 0 and relate to
And tracing to the source for each participant and is deployed to each participant block chain node at intelligent Contracts Definitions.It can according to intelligent Contracts Definitions are traced to the source
To obtain required data of tracing to the source from the time series databases for database 360 of tracing to the source and/or external interface.In the present embodiment,
Intelligent contract is packaged as http services and opens query interface to consumer and can return to milk bag ID each by traceability system
The environment temperature for link of tracing to the source, the intelligent Contracts Definitions of tracing to the source for being related to each participant based on the generations of query pattern Figure 34 0 as a result, are
The interface provided from the participant of retailer, manufacturer, the participant of vanning, acknowledgement of consignment obtains milk bag related to the participant
Ambient temperature data in Asset State.Specifically, it will be understood that the partial status data of assets, such as transportation environment temperature
Degree do not enter chain (not being stored in the time series databases for database 360 of tracing to the source), therefore, it is necessary to by external interface from
Participant obtains environment temperature;And the Asset States such as another part Asset State of assets, such as vanning, packing are in process of exchange
In enter chain (i.e. storage update is in the time series databases for tracing to the source database 360 being arranged in the block chain chain), this
A little Asset States are not necessarily to obtain by external interface, only can be obtained by traceability system, can optimize the effect of relational query as a result,
Rate.
Above-mentioned Fig. 2 to Fig. 5 be only schematically show the present invention multiple embodiments, but the present invention not as
Limit, under the premise of without prejudice to present inventive concept, the variation of embodiment, step are replaced all within protection scope of the present invention.
Fig. 6 shows that the assets according to the ... of the embodiment of the present invention based on block chain are traced to the source the block diagram of device.Based on block chain
Assets device 500 of tracing to the source include receiving module 510, abstract query pattern figure determining module 520, query pattern figure generation module
530 and module 540 of tracing to the source.
Receiving module 510 is used to receive the asset identification of assets.Abstract query pattern figure determining module 520 is closed for determining
Join the abstract query pattern figure of the assets.Query pattern figure generation module 530 is used to be based on the abstract query pattern figure root
Query pattern figure is generated according to the business model for being associated with the asset identification.Module of tracing to the source 540 is used for according to the query pattern figure
Inquiry is associated with the data of tracing to the source of the asset identification from database of tracing to the source.
It traces to the source in device in the assets based on block chain of exemplary embodiments of the present invention, on the one hand, the present invention will
Inquiry of tracing to the source is converted into graph pattern matching problem, enhances participant user and writes the flexible of the inquiry of tracing to the source based on block chain
Property;On the other hand, the present invention is that the design of block chain is suitable for the storage organization that assets are traced to the source, and assets related service model is organized as
Graph model, assets relevant updates data organization are time series, optimize the efficiency of relational query.
Fig. 6 is only to show schematically the assets provided by the invention based on block chain to trace to the source device, without prejudice to this
Under the premise of inventive concept, the fractionation of module, increases all within protection scope of the present invention merging.
In an exemplary embodiment of the present invention, a kind of computer readable storage medium is additionally provided, meter is stored thereon with
The circulation of electronic prescription described in any one above-mentioned embodiment may be implemented in calculation machine program, the program when being executed by such as processor
The step of processing method.In some possible embodiments, various aspects of the invention are also implemented as a kind of program production
The form of product comprising program code, when described program product is run on the terminal device, said program code is for making institute
State terminal device execute described in this specification above-mentioned electronic prescription circulation processing method part according to the various examples of the present invention
The step of property embodiment.
Refering to what is shown in Fig. 7, describing the program product for realizing the above method according to the embodiment of the present invention
800, portable compact disc read only memory (CD-ROM) may be used and include program code, and can in terminal device,
Such as it is run on PC.However, the program product of the present invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with
To be any include or the tangible medium of storage program, the program can be commanded execution system, device either device use or
It is in connection.
The arbitrary combination of one or more readable mediums may be used in described program product.Readable medium can be readable letter
Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or
System, device or the device of semiconductor, or the arbitrary above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive
List) include:It is electrical connection, portable disc, hard disk, random access memory (RAM) with one or more conducting wires, read-only
Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory
(CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
The computer readable storage medium may include the data letter propagated in a base band or as a carrier wave part
Number, wherein carrying readable program code.Diversified forms, including but not limited to electromagnetism may be used in the data-signal of this propagation
Signal, optical signal or above-mentioned any appropriate combination.Readable storage medium storing program for executing can also be any other than readable storage medium storing program for executing
Readable medium, which can send, propagate either transmission for being used by instruction execution system, device or device or
Person's program in connection.The program code for including on readable storage medium storing program for executing can transmit with any suitable medium, packet
Include but be not limited to wireless, wired, optical cable, RF etc. or above-mentioned any appropriate combination.
It can be write with any combination of one or more programming languages for executing the program that operates of the present invention
Code, described program design language include object oriented program language-Java, C++ etc., further include conventional
Procedural programming language-such as " C " language or similar programming language.Program code can be fully in tenant
It is executed on computing device, partly executes in tenant's equipment, executed as an independent software package, partly calculated in tenant
Upper side point is executed or is executed in remote computing device or server completely on a remote computing.It is being related to far
In the situation of journey computing device, remote computing device can pass through the network of any kind, including LAN (LAN) or wide area network
(WAN), it is connected to tenant's computing device, or, it may be connected to external computing device (such as utilize ISP
To be connected by internet).
In an exemplary embodiment of the present invention, a kind of electronic equipment is also provided, which may include processor,
And the memory of the executable instruction for storing the processor.Wherein, the processor is configured to via described in execution
Executable instruction is come the step of executing the circulation processing method of electronic prescription described in any one above-mentioned embodiment.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or
Program product.Therefore, various aspects of the invention can be embodied in the following forms, i.e.,:It is complete hardware embodiment, complete
The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here
Referred to as circuit, " module " or " system ".
The electronic equipment 600 of this embodiment according to the present invention is described referring to Fig. 8.The electronics that Fig. 8 is shown
Equipment 600 is only an example, should not bring any restrictions to the function and use scope of the embodiment of the present invention.
As shown in figure 8, electronic equipment 600 is showed in the form of universal computing device.The component of electronic equipment 600 can wrap
It includes but is not limited to:At least one processing unit 610, at least one storage unit 620, (including the storage of connection different system component
Unit 620 and processing unit 610) bus 630, display unit 640 etc..
Wherein, the storage unit has program stored therein code, and said program code can be held by the processing unit 610
Row so that the processing unit 610 execute described in this specification above-mentioned electronic prescription circulation processing method part according to this
The step of inventing various illustrative embodiments.For example, the processing unit 610 can execute step as shown in Figure 1.
The storage unit 620 may include the readable medium of volatile memory cell form, such as random access memory
Unit (RAM) 6201 and/or cache memory unit 6202 can further include read-only memory unit (ROM) 6203.
The storage unit 620 can also include program/practicality work with one group of (at least one) program module 6205
Tool 6204, such program module 6205 include but not limited to:Operating system, one or more application program, other programs
Module and program data may include the realization of network environment in each or certain combination in these examples.
Bus 630 can be to indicate one or more in a few class bus structures, including storage unit bus or storage
Cell controller, peripheral bus, graphics acceleration port, processing unit use the arbitrary bus structures in a variety of bus structures
Local bus.
Electronic equipment 600 can also be with one or more external equipments 700 (such as keyboard, sensing equipment, bluetooth equipment
Deng) communication, can also enable the equipment that tenant interact with the electronic equipment 600 to communicate with one or more, and/or with make
Any equipment that the electronic equipment 600 can be communicated with one or more of the other computing device (such as router, modulation /demodulation
Device etc.) communication.This communication can be carried out by input/output (I/O) interface 650.Also, electronic equipment 600 can be with
By network adapter 660 and one or more network (such as LAN (LAN), wide area network (WAN) and/or public network,
Such as internet) communication.Network adapter 660 can be communicated by bus 630 with other modules of electronic equipment 600.It should
Understand, although not shown in the drawings, other hardware and/or software module can be used in conjunction with electronic equipment 600, including but it is unlimited
In:Microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and number
According to backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented
Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the present invention
The technical solution of embodiment can be expressed in the form of software products, the software product can be stored in one it is non-volatile
Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating
Equipment (can be personal computer, server or network equipment etc.) executes the above-mentioned electronics according to embodiment of the present invention
Prescription circulation processing method.
Compared with prior art, advantage of the invention is that:
1) inquiry that will trace to the source is converted into graph pattern matching problem, enhances participant user and writes tracing to the source based on block chain
The flexibility of inquiry;
2) it is that the design of block chain is suitable for the storage organization that assets are traced to the source, assets related service model is organized as graph model,
Assets relevant updates data organization is time series, optimizes the efficiency of relational query.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the present invention
Its embodiment.This application is intended to cover the present invention any variations, uses, or adaptations, these modifications, purposes or
Person's adaptive change follows the general principle of the present invention and includes undocumented common knowledge in the art of the invention
Or conventional techniques.The description and examples are only to be considered as illustrative, and true scope and spirit of the invention are by appended
Claim is pointed out.
Claims (11)
1. a kind of assets source tracing method based on block chain, which is characterized in that including:
Receive the asset identification of assets;
Determine the abstract query pattern figure for being associated with the assets;
Query pattern figure is generated according to the business model for being associated with the asset identification based on the abstract query pattern figure;And
The data of tracing to the source for being associated with the asset identification are inquired from database of tracing to the source according to the query pattern figure.
2. the assets source tracing method based on block chain as described in claim 1, which is characterized in that the data lab setting of tracing to the source
In the block chain chain, the database of tracing to the source includes time series databases, and the time series databases temporally store up
Deposit the Asset State of association asset identification and corresponding timestamp.
3. the assets source tracing method based on block chain as claimed in claim 2, which is characterized in that the time series databases
It is cached with heat.
4. the assets source tracing method based on block chain as claimed in claim 2, which is characterized in that described according to the inquiry mould
Formula figure is inquired from database of tracing to the source to be associated with the data of tracing to the source of the asset identification and includes:
The intelligent Contracts Definitions of tracing to the source for being associated with the asset identification are generated according to the query pattern figure;And
According to the intelligent Contracts Definitions of tracing to the source institute is associated with from the time series databases inquiry being arranged in the block chain chain
State the data of tracing to the source of asset identification.
5. the assets source tracing method based on block chain as claimed in claim 4, which is characterized in that
The intelligent Contracts Definitions of tracing to the source determine the Asset State for being associated with the underlying assets of the asset identification and being inquired;
The data of tracing to the source for being associated with the asset identification include being associated with the Asset State and the association related money of the asset identification
The Asset State of the asset identification of production.
6. the assets source tracing method based on block chain as claimed in claim 4, which is characterized in that according to the query pattern figure
It generates after being associated with the intelligent Contracts Definitions of tracing to the source of the asset identification and further includes:
The data of tracing to the source for being associated with the asset identification are obtained from external data interface.
7. the assets source tracing method based on block chain as claimed in claim 2, which is characterized in that the assets for receiving assets
Mark further includes:
When the variation of the Asset State of assets, the Asset State and corresponding timestamp are stored to the time series data
Library.
8. the assets source tracing method as described in any one of claim 1 to 7 based on block chain, which is characterized in that be arranged in institute
The database of tracing to the source stated in block chain chain includes chart database, and the chart database stores the business model, the industry
Business model is described in the form of digraph between assets and assets, assets and tissue/entity, tissue/entity and tissue/entity
Relationship.
The device 9. a kind of assets based on block chain are traced to the source, which is characterized in that including:
Receiving module, the asset identification for receiving assets;
Abstract query pattern figure determining module, for determining the abstract query pattern figure for being associated with the assets;
Query pattern figure generation module, for the business mould based on the abstract query pattern figure according to the association asset identification
Type generates query pattern figure;And
It traces to the source module, for inquiring the number of tracing to the source for being associated with the asset identification from database of tracing to the source according to the query pattern figure
According to.
10. a kind of electronic equipment, which is characterized in that the electronic equipment includes:
Processor;
Storage medium is stored thereon with computer program, and such as right is executed when the computer program is run by the processor
It is required that assets source tracing method of 1 to 8 any one of them based on block chain.
11. a kind of storage medium, which is characterized in that be stored with computer program, the computer program on the storage medium
Such as assets source tracing method of claim 1 to 8 any one of them based on block chain is executed when being run by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810188411.6A CN108335120A (en) | 2018-03-07 | 2018-03-07 | Assets source tracing method, device, electronic equipment, storage medium based on block chain |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810188411.6A CN108335120A (en) | 2018-03-07 | 2018-03-07 | Assets source tracing method, device, electronic equipment, storage medium based on block chain |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108335120A true CN108335120A (en) | 2018-07-27 |
Family
ID=62928844
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810188411.6A Pending CN108335120A (en) | 2018-03-07 | 2018-03-07 | Assets source tracing method, device, electronic equipment, storage medium based on block chain |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108335120A (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109977635A (en) * | 2019-04-03 | 2019-07-05 | 上海中商网络股份有限公司 | Data processing method of tracing to the source, device, equipment and medium based on block chain |
CN110020948A (en) * | 2019-01-03 | 2019-07-16 | 阿里巴巴集团控股有限公司 | Assets source tracing method and device, electronic equipment based on block chain |
CN110110547A (en) * | 2019-04-08 | 2019-08-09 | 智链万源(北京)数字科技有限公司 | Data processing method of tracing to the source and device |
CN111177202A (en) * | 2019-12-13 | 2020-05-19 | 浙商银行股份有限公司 | Supply chain financial system data query optimization method and platform based on block chain |
CN111401700A (en) * | 2020-03-05 | 2020-07-10 | 平安科技(深圳)有限公司 | Data analysis method, device, computer system and readable storage medium |
CN113094414A (en) * | 2021-04-29 | 2021-07-09 | 支付宝(杭州)信息技术有限公司 | Circulation map generation method and device |
CN114390062A (en) * | 2021-12-30 | 2022-04-22 | 卓尔智联(武汉)研究院有限公司 | Calling method and device based on block chain, electronic equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104376395A (en) * | 2014-09-04 | 2015-02-25 | 太极计算机股份有限公司 | Method and device for tracing quality of iron and steel products |
CN107315856A (en) * | 2017-05-27 | 2017-11-03 | 全球能源互联网研究院 | The modeling method and device of a kind of power grid GIS based on chart database |
CN107451210A (en) * | 2017-07-13 | 2017-12-08 | 北京航空航天大学 | A kind of figure matching inquiry method based on inquiry relaxation result enhancing |
US20170366516A1 (en) * | 2016-06-16 | 2017-12-21 | The Bank Of New York Mellon | Managing verifiable, cryptographically strong transactions |
-
2018
- 2018-03-07 CN CN201810188411.6A patent/CN108335120A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104376395A (en) * | 2014-09-04 | 2015-02-25 | 太极计算机股份有限公司 | Method and device for tracing quality of iron and steel products |
US20170366516A1 (en) * | 2016-06-16 | 2017-12-21 | The Bank Of New York Mellon | Managing verifiable, cryptographically strong transactions |
CN107315856A (en) * | 2017-05-27 | 2017-11-03 | 全球能源互联网研究院 | The modeling method and device of a kind of power grid GIS based on chart database |
CN107451210A (en) * | 2017-07-13 | 2017-12-08 | 北京航空航天大学 | A kind of figure matching inquiry method based on inquiry relaxation result enhancing |
Non-Patent Citations (2)
Title |
---|
世界上我最好: "图数据库并非要取代区块链,而是让区块链如虎添翼", 《HTTPS://BLOG.CSDN.NET/CPONGO2/ARTICLE/DETAILS/89017906》 * |
叶小榕等: "基于区块链、智能合约和物联网的供应链原型***", 《科技导报》 * |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110020948A (en) * | 2019-01-03 | 2019-07-16 | 阿里巴巴集团控股有限公司 | Assets source tracing method and device, electronic equipment based on block chain |
CN113327117A (en) * | 2019-01-03 | 2021-08-31 | 创新先进技术有限公司 | Asset tracing method and device based on block chain and electronic equipment |
CN109977635A (en) * | 2019-04-03 | 2019-07-05 | 上海中商网络股份有限公司 | Data processing method of tracing to the source, device, equipment and medium based on block chain |
CN109977635B (en) * | 2019-04-03 | 2024-02-27 | 上海中商网络股份有限公司 | Method, device, equipment and medium for processing traceable data based on block chain |
CN110110547A (en) * | 2019-04-08 | 2019-08-09 | 智链万源(北京)数字科技有限公司 | Data processing method of tracing to the source and device |
CN111177202A (en) * | 2019-12-13 | 2020-05-19 | 浙商银行股份有限公司 | Supply chain financial system data query optimization method and platform based on block chain |
CN111401700A (en) * | 2020-03-05 | 2020-07-10 | 平安科技(深圳)有限公司 | Data analysis method, device, computer system and readable storage medium |
CN111401700B (en) * | 2020-03-05 | 2023-09-19 | 平安科技(深圳)有限公司 | Data analysis method, device, computer system and readable storage medium |
CN113094414A (en) * | 2021-04-29 | 2021-07-09 | 支付宝(杭州)信息技术有限公司 | Circulation map generation method and device |
CN113094414B (en) * | 2021-04-29 | 2023-06-30 | 支付宝(杭州)信息技术有限公司 | Method and device for generating circulation map |
CN114390062A (en) * | 2021-12-30 | 2022-04-22 | 卓尔智联(武汉)研究院有限公司 | Calling method and device based on block chain, electronic equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108335120A (en) | Assets source tracing method, device, electronic equipment, storage medium based on block chain | |
Mazzei et al. | A Blockchain Tokenizer for Industrial IOT trustless applications | |
Zhen et al. | A literature review of smart warehouse operations management | |
Mourtzis | Challenges and future perspectives for the life cycle of manufacturing networks in the mass customisation era | |
CN109063016A (en) | Block chain data storage method, device, electronic equipment, storage medium | |
Epiphaniou et al. | Smart distributed ledger technologies in Industry 4.0: Challenges and opportunities in supply chain management | |
Khan et al. | Information sharing in supply chains–Interoperability in an era of circular economy | |
CN109299177A (en) | Data pick-up method, apparatus, storage medium and electronic equipment | |
CN109669931A (en) | Historical data exception analysis method, system, equipment and storage medium | |
CN108985784A (en) | Method and apparatus for storing information | |
CN109491857A (en) | A kind of data monitoring method, system and the terminal device of rule-based engine | |
Shakiba et al. | Evaluating the academic trend of RFID technology based on SCI and SSCI publications from 2001 to 2014 | |
CN109839927A (en) | Method and device for robot path planning | |
Zhang et al. | Research and development of off-line services for the 3D automatic printing machine based on cloud manufacturing | |
CN109447276A (en) | A kind of machine learning method, system, equipment and application method | |
CN108920618A (en) | A kind of store method, device, medium and the electronic equipment of object reference relationship | |
CN110502566A (en) | Near real-time data acquisition method, device, electronic equipment, storage medium | |
Jiang et al. | Digital‐twin‐based implementation framework of production service system for highly dynamic production logistics operation | |
CN113658597A (en) | Voice ordering method and device, electronic equipment and computer readable medium | |
CN113887783A (en) | Storage replenishment prediction method, device, equipment and storage medium | |
CN104598216B (en) | The method and system write back for realizing the virtual data of business intelligence report | |
US11995503B2 (en) | System and method for carrier identification | |
Li | Extension of axiomatic design principles for multicriteria decision making problems in intuitionistic fuzzy environment | |
CN109558619A (en) | Data processing method, terminal and readable storage medium storing program for executing based on Building Information Model | |
CN106330556B (en) | A kind of method and apparatus calling related information for generating service module |
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 | ||
WD01 | Invention patent application deemed withdrawn after publication |
Application publication date: 20180727 |
|
WD01 | Invention patent application deemed withdrawn after publication |