CN112950257A - Data use pricing method and device, computer equipment and storage medium - Google Patents

Data use pricing method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112950257A
CN112950257A CN202110151200.7A CN202110151200A CN112950257A CN 112950257 A CN112950257 A CN 112950257A CN 202110151200 A CN202110151200 A CN 202110151200A CN 112950257 A CN112950257 A CN 112950257A
Authority
CN
China
Prior art keywords
data
price
target
intelligent contract
pricing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202110151200.7A
Other languages
Chinese (zh)
Other versions
CN112950257B (en
Inventor
韩鹏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Cloud Network Technology Co Ltd
Original Assignee
Beijing Kingsoft Cloud Network Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Cloud Network Technology Co Ltd filed Critical Beijing Kingsoft Cloud Network Technology Co Ltd
Priority to CN202110151200.7A priority Critical patent/CN112950257B/en
Publication of CN112950257A publication Critical patent/CN112950257A/en
Application granted granted Critical
Publication of CN112950257B publication Critical patent/CN112950257B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0201Market modelling; Market analysis; Collecting market data
    • G06Q30/0206Price or cost determination based on market factors
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/27Replication, distribution or synchronisation of data between databases or within a distributed database system; Distributed database system architectures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION 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/00Commerce
    • G06Q30/02Marketing; Price estimation or determination; Fundraising
    • G06Q30/0283Price estimation or determination
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Development Economics (AREA)
  • Accounting & Taxation (AREA)
  • Finance (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Entrepreneurship & Innovation (AREA)
  • General Physics & Mathematics (AREA)
  • Game Theory and Decision Science (AREA)
  • Marketing (AREA)
  • General Business, Economics & Management (AREA)
  • Economics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The embodiment of the application relates to the technical field of block chains, and provides a data use pricing method, a device, computer equipment and a storage medium, wherein a data providing end establishes a price matrix of a sharable open data packet in advance and issues the price matrix to a block chain network; the data using end accesses the block chain network to obtain a price matrix meeting the self requirement through decentralized application, generates a data retrieval request based on the price matrix and sends the data retrieval request to the data providing end; the data providing end searches the open data packet and returns the number of target data meeting the data searching request; and the data using end can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, price evaluation can be carried out on the data according to the actual data usage amount of the data usage end, and data usage pricing is achieved.

Description

Data use pricing method and device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of block chains, in particular to a data use pricing method, a data use pricing device, computer equipment and a storage medium.
Background
With the development of information technology, data has become an important element of market economic activity. A data management department, such as a telecom operator, may open a part of data to other organizations for development and analysis of data value and application to other public or business fields.
At present, in the process of sharing and using data, a data provider generally designates price for a shared data file, and for a data user, price evaluation according to the effective data volume actually used is difficult.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data usage pricing method, apparatus, computer device and storage medium, so as to solve the problem that it is difficult for a data user to perform price evaluation according to an actually used effective data amount in an existing data sharing usage process.
In order to achieve the above purpose, the embodiments of the present application employ the following technical solutions:
in a first aspect, an embodiment of the present application provides a data usage pricing method, which is applied to a data usage end in a blockchain network, where the blockchain network runs a decentralized application, and the blockchain network is deployed with an intelligent contract;
a price matrix is issued in the block chain network, and the price matrix is used for representing pricing information of an open data packet provided by a data providing end in the block chain network;
the method comprises the following steps:
obtaining the price matrix through the decentralized application;
generating a data retrieval request based on the price matrix;
calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract;
and calling the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
In a second aspect, an embodiment of the present application further provides a data usage pricing method, which is applied to a data providing end in a blockchain network, where a decentralized application is run in the blockchain network, and an intelligent contract is deployed in the blockchain network;
the method comprises the following steps:
receiving a data retrieval request sent by a data using end based on the intelligent contract, wherein the data retrieval request is generated by the data using end through the decentralized application acquiring a price matrix issued in the block chain network and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end;
acquiring target data from the open data packet according to the data retrieval request;
and returning the number of the target data to the intelligent contract so that the data using end calls the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
In a third aspect, an embodiment of the present application further provides a data usage pricing device, which is applied to a data usage end in a blockchain network, where the blockchain network runs a decentralized application, and the blockchain network is deployed with an intelligent contract;
a price matrix is issued in the block chain network, and the price matrix is used for representing pricing information of an open data packet provided by a data providing end in the block chain network;
the device comprises:
a first obtaining module, configured to obtain the price matrix through the decentralized application;
the request generation module is used for generating a data retrieval request based on the price matrix;
the first execution module is used for calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract;
and the second execution module is used for calling the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
In a fourth aspect, an embodiment of the present application further provides a data usage pricing device, which is applied to a data providing end in a blockchain network, where a decentralized application runs in the blockchain network, and an intelligent contract is deployed in the blockchain network;
the device comprises:
a receiving module, configured to receive a data retrieval request sent by a data using end based on the intelligent contract, where the data retrieval request is generated by the data using end acquiring, through the decentralized application, a price matrix issued in the block chain network and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end;
the second acquisition module is used for acquiring target data from the open data packet according to the data retrieval request;
and the first processing module is used for returning the number of the target data to the intelligent contract so that the data using end calls the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
In a fifth aspect, an embodiment of the present application further provides a computer device, where the computer device includes: one or more processors; a memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement the above-described data usage pricing method applied to a data consumer or a data usage pricing method applied to a data provider.
In a sixth aspect, the present application further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the above-mentioned data usage pricing method applied to a data usage terminal or the data usage pricing method applied to a data providing terminal.
Compared with the prior art, the data use pricing method, the data use pricing device, the computer equipment and the storage medium are introduced into a block chain network and decentralized application, and a data providing end establishes a sharable price matrix of an open data packet in advance and issues the sharable price matrix to the block chain network; the data using end accesses the block chain network to obtain a price matrix meeting the self requirement through decentralized application, generates a data retrieval request based on the price matrix and sends the data retrieval request to the data providing end; the data providing end searches the open data packet and returns the number of target data meeting the data searching request; and the data using end can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, price evaluation can be carried out on the data according to the actual data usage amount of the data usage end, and data usage pricing is achieved.
Drawings
Fig. 1 shows an architecture diagram of a blockchain network provided in an embodiment of the present application.
Fig. 2 is a schematic flow chart illustrating a data usage pricing method applied to a data usage terminal according to an embodiment of the present application.
Fig. 3 is a flowchart illustrating step S104 of the data usage pricing method illustrated in fig. 2.
Fig. 4 shows another flow chart of the data usage pricing method applied to the data usage terminal according to the embodiment of the present application.
Fig. 5 is a schematic flow chart illustrating a data usage pricing method applied to a data provider according to an embodiment of the present application.
Fig. 6 shows another flow chart of the data usage pricing method applied to the data provider according to the embodiment of the present application.
Fig. 7 shows another flowchart of a data usage pricing method applied to a data provider according to an embodiment of the present application.
Fig. 8 is a block diagram illustrating a data usage pricing device applied to a data usage terminal according to an embodiment of the present application.
Fig. 9 is a block diagram illustrating a data usage pricing device applied to a data provider according to an embodiment of the present application.
Fig. 10 shows a block schematic diagram of a computer device provided by an embodiment of the present application.
Icon: 10-a computer device; 11-a processor; 12-a memory; 13-a bus; 100. 200-data usage pricing means; 110-a first acquisition module; 120-request generation module; 130-a first execution module; 140-a second execution module; 150-a third execution module; 210-a receiving module; 220-a second acquisition module; 230-a first processing module; 240-second processing module.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Referring to fig. 1, fig. 1 is a schematic diagram illustrating an architecture of a blockchain network according to an embodiment of the present disclosure. The blockchain network includes a plurality of nodes, e.g., node a, node b, node c, etc., and runs distributed applications. Each node may have and communicate with a respective database.
The block chain is a data structure for storing transactions, is a distributed shared account book and a database, and has the characteristics of decentralization, no tampering, trace leaving in the whole process, traceability, collective maintenance, public transparency and the like. A blockchain network is a computing node structure used to manage, update, and maintain one or more blockchain structures. The blockchain network may be a public blockchain network, a private blockchain network, or a federated blockchain network.
Decentralized Application (DAPP), also known as distributed Application, refers to an Application in which an Application program is distributed on different blockchain nodes in a blockchain network and depends on a bottom-layer blockchain platform and a consensus mechanism to jointly complete a task. DAPP is an internet application that differs from traditional applications by: the DAPP runs in a blockchain network, the blockchain network is a decentralized network, and the DAPP can be completely controlled without a centralized node; traditional applications are centralized and require a server to obtain data, process data, etc.
For a user of each node in the blockchain network, if the user needs to access the DAPP, the user needs to download a browser for accessing the DAPP, and the user accesses the DAPP through the browser. That is, the node needs to be installed with a browser for accessing the DAPP in order to go to the DAPP for access.
In fig. 1, the DAPP runs on a blockchain network, and any one of nodes in the blockchain network, for example, any one of node a, node b, node c, etc., can access the DAPP or perform other operations through the DAPP.
Wherein, the node a, the node b, the node c, etc. may be a computer device accessing a blockchain network, including but not limited to a smart phone, a tablet computer, a personal computer, a server, a private cloud, a public cloud, etc. The node a, the node b, the node c, and the like may also be a user accessing the block chain network through the computer device, and may be determined specifically according to an actual application scenario, and are not limited herein.
Smart contracts are a computer protocol intended to propagate, validate or execute contracts in an informational manner, allowing trusted transactions to be conducted without third parties, which transactions are traceable and irreversible. An intelligent contract is a set of commitments defined in digital form, including the protocol on which the contract participants can execute the commitments, and is a piece of code written on a blockchain.
The data provider may be any node in the blockchain network, for example, node a; the data using end can be any node except the data using end in the block chain network, for example, the node b. The specific value can also be determined according to the actual application scenario, and is not limited herein.
Referring to fig. 2, fig. 2 is a schematic flow chart illustrating a data usage pricing method applied to a data usage terminal according to an embodiment of the present application, where the data usage pricing method may include the following steps:
s101, acquiring a price matrix through a decentralized application.
The data provider may be a data management department, which is any node in the blockchain network, for example, the node a is a data provider and is a device of an internet listening book platform accessing the blockchain network. The database in communication with the data provider is used to store data owned by the data provider, and may be, for example, an audio content library, a user information library, a user listening-to-book behavior library, a blacklist library, or the like. The following embodiment will be described by taking a user's book listening behavior library as an example.
The data providing end can determine an open data packet which can be provided in an open mode from the database in advance, and establish a price matrix of the open data packet to be issued to the block chain network.
Since the blockchain network comprises a plurality of nodes, each node is possibly a data provider, and the price matrix for opening the data packet in the database of the blockchain network can be issued to the blockchain network. Therefore, a plurality of price matrixes are issued in the block chain network, and the price matrixes are opened to all nodes in the block chain network.
The open data package refers to data resources which can be openly provided in a database of a data providing terminal, for example, the database is a user listening behavior library and is used for storing various behavior tables of a user during listening to a book using the internet listening platform, for example, a browsing content table, a collection audio table, a search audio table, an order table, a purchase album table, and the like. The open data packet may be a behavior table, such as a list table, which can be openly provided in the user book listening behavior library.
For an open packet, there may be at least one price matrix. Each price matrix issued in the block chain network has its own identification information, which refers to information that can uniquely refer to an open data packet, such as a table name, a storage address, and the like.
When the data using end has data requirement, all price matrixes issued in the block chain network can be searched through the DAPP, and the price matrix meeting the requirement of the data using end is selected according to the identification information. For example, if the data user needs to analyze the book listening behavior of the user, the price matrix of the "listening list table" referred by the identification information may be selected and obtained.
S102, generating a data retrieval request based on the price matrix.
The price matrix is used for representing pricing information of the open data packet provided by the data providing end, and the pricing information can comprise the total number of data of the open data packet, all fields, retrieval conditions, ladder pricing of each field and the like.
The total number of data items is the total number of data items in the open packet, and can be represented by N. All fields refer to which fields are contained in the open data packet and can be represented by f1, f2 and f3 … … fn, wherein f1, f2 and f3 … … fn refer to information capable of uniquely referring to each field in the open data packet, such as field names, field numbers and the like. The search condition refers to whether each field in the open packet supports conditional screening, for example, f1 supports screening, f3 does not support screening, and the like. The pricing rate of each field is the pricing rate of each field when the number of data bars is different, for example, <1000, 1001-10000, 10001-50000, >50000 and the like, and the pricing rate of each field can be respectively represented by p1, p2 and p3 … … pn, wherein p1, p2 and p3 … … pn are different when the number of data bars is different.
For example, the price matrix is shown in table 1 below:
TABLE 1
Figure BDA0002931757380000081
And the data using end accesses the block chain network through the DAPP, and can generate a data retrieval request based on the price matrix after acquiring the price matrix meeting the self requirement.
The data retrieval request includes at least one selected field, and a data screening condition for each selected field. That is, the data consumer selects the required data from the open data packet based on the total number of data, all fields, search conditions, and ladder pricing of each field, for example, f1, f2, fn, and f1>18, f2 ═ abc ", where the data filtering conditions of the selected fields are f1, f2, fn, and f1 fields are all the data >18 under the field, the data filtering conditions of the f2 field are all the data" abc "under the field, and the data filtering conditions of the fn field are all the data under the field.
S103, calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains the target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract.
The data using end takes DAPP as a program for selecting the price matrix, calculating the price of the target data and acquiring the target data.
After the data using end generates the data retrieval request based on the price matrix, the intelligent contract can be called through the DAPP, and the data retrieval request is sent to the data providing end. The data providing end performs data screening on the open data packet according to the data retrieval request, namely, performs data screening on each selected field according to each selected field in the data retrieval request and the data screening condition of each selected field, and target data can be obtained after the screening is completed; and then, the data providing end counts the number of the target data and returns the number of the target data to the intelligent contract. The number of pieces of target data may be represented by n, for example, where n is 12000.
And S104, calling an intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
The data providing end issues the price matrix of the open data packet to the blockchain network, and meanwhile, the price calculation mode of the open data packet needs to be issued to the blockchain network in an intelligent contract mode.
And after the data providing end returns the number of the target data to the intelligent contract, the data using end calls the intelligent contract through the DAPP, and the intelligent contract carries out price calculation according to the number n of the target data and the price matrix according to the price calculation mode of the open data packet, so that the price of the target data can be obtained. The price of the target data may be denoted by P.
That is, the pricing of each selected field when the number of the data pieces is n is determined from the price matrix according to the number n of the target data, for example, n is 12000, and the pricing of the selected fields f1, f2 and fn when the number of the data pieces is n is p1(10001 to 50000), p2(10001 to 50000) and pn (10001 to 50000), respectively; then, calculating the sum of pricing of each selected field when the number of the data pieces is n, namely p1 (10001-50000) + p2 (10001-50000) + pn (10001-50000), and then obtaining the price of one piece of data; and finally, multiplying the price of the piece of data obtained in the last step by the number n of the target data to calculate the price of the target data.
For example, taking n 12000 as an example, and combining with the price matrix shown in table 1, the price of the target data is: p is [ P1 (10001-50000) + P2 (10001-50000) + pn (10001-50000) ] × n.
After calculating the price of the target data, the intelligent contract can return the number and the price of the target data to the data consumer, so that the data consumer can decide whether the target data needs to be purchased.
The steps S102, S103, and S04 will be described in detail below.
Optionally, the price matrix includes the total number of data pieces of the open data packet, all fields, the search condition, and the ladder pricing of each field. Thus, step S102 may comprise the following sub-steps:
and S1021, generating a data retrieval request based on the total number of the data, all the fields, the retrieval conditions and the step price of each field, wherein the data retrieval request comprises at least one selected field and the data screening conditions of each selected field.
Combined with table 1, the data consumer can obtain the total data amount N of the open data packet, for example, 60000 pieces, based on the price matrix; meanwhile, from the self-requirement, the required fields, such as f1, f2 and fn, can be selected from the fields f1, f2 and f3 … … fn; the number of data pieces which can be accepted by the user can be determined in the selection process by combining the ladder pricing of each field, for example, 12000 data pieces; further, depending on the search condition, that is, whether or not each field in the open packet supports screening, a data screening condition is set for the selected field, for example, f1>18, f2 ═ abc, or the like. In this way, data retrieval requests can be generated, i.e., f1, f2, fn, and f1>18, f2 being "abc".
Optionally, the data providing end provides an application programming interface, and the data providing end provides the data screening service through the application programming interface. Thus, step S103 may comprise the following sub-steps:
s1031, calling the intelligent contract, sending the data retrieval request to an application programming interface, so that the data providing end completes data screening of each selected field in the open data packet according to the at least one selected field and the data screening condition of each selected field to obtain target data, and returning the number of the target data to the intelligent contract;
the input of the application programming interface is a data retrieval request, and the output is the number of target data meeting the data retrieval request.
An Application Programming Interface (API), also called API, is a set of definitions, programs and protocols, and implements the mutual communication between computer software through the API. One of the primary functions of an API is to provide a common set of functions. The API is also a middleware and provides data sharing for various platforms.
The data provider may pre-access the open data packet to the blockchain network and open an API interface of the data screening service to the blockchain node service. The input parameter of the API interface is a data retrieval request which can be represented by x; the output result is the number n of pieces of target data satisfying the data retrieval request.
The data using end obtains the price matrix through the DAPP access block chain network, and generates a data retrieval request x based on the price matrix, wherein the content of x is as follows:
x ═ f1>18, f2 ═ abc ", the result retaining the f1, f2, fn fields.
Then, the data using end calls an intelligent contract through the DAPP, and inputs a data retrieval request x into the intelligent contract as a parameter; the intelligent contract sends the data retrieval request x to an API (application programming interface) of a data providing end for providing data screening service through the block link node service; and the data screening service of the data providing end completes the data screening of the open data packet according to the data retrieval request x to obtain target data meeting the data retrieval request x, and obtains the number n of the target data to return to the intelligent contract.
Alternatively, on the basis of fig. 2, please refer to fig. 3, step S104 may include the following sub-steps:
s1041, determining a target number interval including the number of pieces of the target data from the plurality of preset number intervals.
In the price matrix. The ladder pricing of each field comprises a plurality of pricing and a preset number interval associated with each pricing, for example, in combination with table 1, for the f1 field, the ladder pricing comprises 4 pricing including p1(<1000), p1 (1001-10000), p1 (10001-50000) and p1(>50000), and the 4 pricing can be completely different or one or more of the same. The preset number intervals associated with these 4 pricing intervals are in turn: <1000, 1001-10000, 10001-50000 and > 50000.
Assuming that the number n of pieces of target data returned to the intelligent contract by the data providing end is 12000, determining that the target number interval is 10001-50000 from a plurality of preset number intervals.
S1042, determining the target pricing of each selected field from the price matrix according to the target number interval.
Taking n 12000 as an example, for the selected fields f1, f2, fn, the target pricing determined from the price matrix is as follows: p1 (10001-50000), p2 (10001-50000) and pn (10001-50000).
And S1043, calling an intelligent contract, and calculating the price according to the number of the target data and the target pricing of each selected field to obtain the price of the target data.
And the block chain network is provided with a price calculation mode of an open data packet in an intelligent contract mode. After the data using end determines the target pricing of each selected field, the intelligent contract can be called through the DAPP, and the price of the target data can be calculated. Taking n as 12000 as an example, the price of the target data finally calculated is:
P=[p1(10001~50000)+p2(10001~50000)+pn(10001~50000)]*n。
after calculating the price of the target data, the intelligent contract may return the number n and the price P of the target data to the data consumer, and the data consumer may evaluate whether the price is acceptable, and then decide whether to use the target data.
Therefore, referring to fig. 4 on the basis of fig. 2, after step S104, the data usage pricing method may further include steps S105 to S107.
And S105, evaluating the price of the target data to determine whether to use the target data.
And S106, when the target data is determined to be used, sending a data acquisition request to the data providing terminal through the decentralized application.
And S107, receiving the target data sent by the data providing end according to the data acquisition request.
After the data using end evaluates the price of the target data, if the price can be accepted, the data using end can confirm the target data and acquire the target data through the DAPP. In other words, the data consumer may send a data obtaining request to the data provider through the DAPP, where the data obtaining request may include an identifier of the target data; after receiving the request, the data providing end can send the screened target data in the open data packet to the data using end; the data using end can develop and use the target data.
Referring to fig. 5, fig. 5 is a schematic flow chart illustrating a data usage pricing method applied to a data provider according to an embodiment of the present application, where the data usage pricing method may include the following steps:
s201, receiving a data retrieval request sent by a data using end based on an intelligent contract, wherein the data retrieval request is generated by the data using end through a decentralized application to obtain a price matrix issued in a block chain network and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end.
S202, acquiring target data from the open data packet according to the data retrieval request.
And S203, returning the number of the target data to the intelligent contract so that the data using end calls the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
The steps S201, S202, and S203 will be described in detail below.
The data providing end provides an application programming interface and provides data screening service through the application programming interface; the input of the application programming interface is a data retrieval request, and the output is the number of pieces of target data meeting the data retrieval request.
Thus, step S201 may comprise the following sub-steps:
and S2011, receiving a data retrieval request sent by the data using terminal calling the intelligent contract through the application programming interface, wherein the data retrieval request comprises at least one selected field and a data screening condition of each selected field.
Step S202 may include the following sub-steps:
s2021, locating each selected field in the open data packet according to the at least one selected field.
And S2022, completing data screening of each selected field according to the data screening conditions of each selected field to obtain target data.
Step S203 may comprise the following sub-steps:
s2031, returning the number of the target data to the intelligent contract through the application programming interface.
The following describes a process of a price calculation mode in which a data providing end issues a price matrix and an open packet in a block chain network. Referring to fig. 6 in addition to fig. 5, before step S201, the data usage pricing method may further include steps S210 to S240.
S210, determining an open data packet.
S220, establishing a price matrix of the open data packet.
S230, the price matrix is issued to the block chain network through the decentralized application.
And S240, issuing the price calculation mode of the open data packet to the blockchain network in an intelligent contract mode through the decentralized application.
Optionally, step S220 may comprise the following sub-steps:
s2201, counting the total number of data and all fields of the open data packet;
s2202, obtaining the search condition of the open data packet and the step pricing of each field to obtain a price matrix, wherein the price matrix comprises the total number of data, all the fields, the search condition and the step pricing of each field, and the search condition and the step pricing of each field are self-defined.
After the data using end evaluates the price of the target data, if the price can be accepted, the data using end can confirm the target data and acquire the target data through the DAPP. Therefore, referring to fig. 7 on the basis of fig. 5, after step S203, the data usage pricing method may further include steps S204 to S205.
And S204, receiving a data acquisition request sent by the data using end through the decentralized application, wherein the data acquisition request represents that the data using end evaluates the price of the target data and then determines to use the target data.
And S205, sending the target data to a data using end.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
firstly, price evaluation can be carried out on data according to the actual data usage amount of a data usage end, and data usage pricing is achieved;
secondly, the data using end can obtain the target data through the DAPP after the price of the target data is acceptable, so that the data using end can select the data which more meets the self requirement.
In order to execute the corresponding steps in the above-mentioned data usage pricing method embodiment and each possible implementation, an implementation of the data usage pricing device applied to the data usage terminal and an implementation of the data usage pricing device applied to the data providing terminal are given below.
Referring to fig. 8, fig. 8 is a block diagram illustrating a data usage pricing device 100 according to an embodiment of the present application. The data usage pricing device 100 is applied to a data usage terminal, and includes: the first obtaining module 110, the request generating module 120, the first executing module 130, and the second executing module 140.
A first obtaining module 110, configured to obtain a price matrix through a decentralized application.
A request generating module 120, configured to generate a data retrieval request based on the price matrix.
The first execution module 130 is configured to invoke the intelligent contract to send the data retrieval request to the data provider, so that the data provider obtains the target data from the open data packet according to the data retrieval request, and returns the number of the target data to the intelligent contract.
And the second execution module 140 is configured to invoke an intelligent contract to perform price calculation according to the number of the target data and the price matrix, so as to obtain the price of the target data.
Optionally, the price matrix comprises the total number of data of the open data packet, all fields, the retrieval condition, and the ladder pricing of each field;
the request generating module 120 is specifically configured to: and generating a data retrieval request based on the total number of the data, all the fields, the retrieval conditions and the step price of each field, wherein the data retrieval request comprises at least one selected field and the data screening conditions of each selected field.
Optionally, the data providing end provides an application programming interface, and the data providing end provides data screening service through the application programming interface;
the first executing module 130 is specifically configured to: calling an intelligent contract, sending a data retrieval request to an application programming interface, enabling a data providing end to complete data screening of each selected field in an open data packet according to at least one selected field and a data screening condition of each selected field to obtain target data, and returning the number of the target data to the intelligent contract;
the input of the application programming interface is a data retrieval request, and the output is the number of target data meeting the data retrieval request.
Optionally, a price calculation mode in which an open data packet is distributed in a blockchain network in an intelligent contract mode is adopted; the ladder pricing comprises a plurality of pricing intervals and a preset number of intervals related to each pricing;
the second executing module 140 is specifically configured to: determining a target number interval containing the number of the target data from a plurality of preset number intervals; determining the target pricing of each selected field from the price matrix according to the target number interval; and calling an intelligent contract, and calculating the price according to the number of the target data and the target pricing of each selected field to obtain the price of the target data.
Optionally, the data usage pricing device 100 further comprises a third executing module 150.
A third executing module 150, configured to evaluate a price of the target data to determine whether to use the target data; when the target data is determined to be used, sending a data acquisition request to a data providing terminal through a decentralized application; and receiving target data sent by the data providing end according to the data acquisition request.
Referring to fig. 9, fig. 9 is a block diagram illustrating a data usage pricing device 200 according to an embodiment of the present application. The data usage pricing device 200 is applied to a data providing side, and includes: a receiving module 210, a second obtaining module 220 and a first processing module 230.
The receiving module 210 is configured to receive a data retrieval request sent by a data using end based on an intelligent contract, where the data retrieval request is generated by the data using end acquiring a price matrix issued in a block chain network through a decentralized application and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end.
The second obtaining module 220 is configured to obtain the target data from the open data packet according to the data retrieval request.
The first processing module 230 is configured to return the number of the target data to the intelligent contract, so that the data using end invokes the intelligent contract to perform price calculation according to the number of the target data and the price matrix, so as to obtain the price of the target data.
Optionally, the data providing end provides an application programming interface, the data providing end provides data screening service through the application programming interface, the input of the application programming interface is a data retrieval request, and the output is the number of target data meeting the data retrieval request;
the receiving module 210 is specifically configured to: and receiving a data retrieval request sent by a data using terminal calling the intelligent contract through an application programming interface, wherein the data retrieval request comprises at least one selected field and a data screening condition of each selected field.
The second obtaining module 220 is specifically configured to: locating each selected field in the open data packet according to the at least one selected field; and finishing the data screening of each selected field according to the data screening condition of each selected field to obtain target data.
The first processing module 230 is specifically configured to: and returning the number of pieces of the target data to the intelligent contract through the application programming interface.
Optionally, the data usage pricing apparatus 200 further comprises a second processing module 240.
A second processing module 240, configured to determine an open packet; establishing a price matrix of the open data packet; issuing the price matrix to a blockchain network through a decentralized application; the price calculation mode of the open data packet is issued to the blockchain network in an intelligent contract mode through the decentralized application.
Optionally, the second processing module 240 executes a manner of establishing a price matrix of the open data packet, including: counting the total number of data and all fields of the open data packet; and acquiring the retrieval condition of the open data packet and the step pricing of each field to obtain a price matrix, wherein the price matrix comprises the total number of data, all the fields, the retrieval condition and the step pricing of each field, and the retrieval condition and the step pricing of each field are self-defined.
Optionally, the second processing module 240 is further configured to: receiving a data acquisition request sent by a data using end through a decentralized application, wherein the data acquisition request represents that the price of target data is evaluated by the data using end, and then the target data is determined; and sending the target data to a data using end.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the data pricing device 100 and the data pricing device 200 described above may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
Referring to fig. 10, fig. 10 is a block diagram illustrating a computer device 10 according to an embodiment of the present disclosure. The computer device 10 may be a data consumer or data provider. The computer device 10 includes a processor 11, a memory 12, and a bus 13, and the processor 11 is connected to the memory 12 through the bus 13.
The memory 12 is used to store a program, for example, the data usage pricing apparatus 100 shown in fig. 8 or the data usage pricing apparatus 200 shown in fig. 9. Taking the data usage pricing device 100 as an example, the data usage pricing device 100 includes at least one software functional module which can be stored in the memory 12 in the form of software or firmware (firmware), and the processor 11 executes the program after receiving the execution instruction to implement the data usage pricing method applied to the data usage terminal disclosed in the above embodiment.
The Memory 12 may include a Random Access Memory (RAM) and may also include a non-volatile Memory (NVM).
The processor 11 may be an integrated circuit chip having signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware or instructions in the form of software in the processor 11. The processor 11 may be a general-purpose processor, and includes a Central Processing Unit (CPU), a Micro Control Unit (MCU), a Complex Programmable Logic Device (CPLD), a Field Programmable Gate Array (FPGA), and an embedded ARM.
The embodiment of the present application further provides a computer-readable storage medium, on which a computer program is stored, and the computer program, when executed by the processor 11, implements the data usage pricing method applied to the data using end or the data usage pricing method applied to the data providing end disclosed in the above embodiments.
To sum up, in the data usage pricing method, the data usage pricing device, the computer device, and the storage medium provided in the embodiments of the present application, the data providing end pre-establishes a price matrix of a sharable open data packet and issues the price matrix to the blockchain network; the data using end accesses the block chain network to obtain a price matrix meeting the self requirement through decentralized application, generates a data retrieval request based on the price matrix and sends the data retrieval request to the data providing end; the data providing end searches the open data packet and returns the number of target data meeting the data searching request; and the data using end can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, price evaluation can be carried out on the data according to the actual data usage amount of the data usage end, and data usage pricing is achieved.
The above description is only a preferred embodiment of the present application and is not intended to limit the present application, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, improvement and the like made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A data use pricing method is characterized in that the method is applied to a data use end in a block chain network, the block chain network runs decentralized application, and intelligent contracts are deployed in the block chain network;
a price matrix is issued in the block chain network, and the price matrix is used for representing pricing information of an open data packet provided by a data providing end in the block chain network;
the method comprises the following steps:
obtaining the price matrix through the decentralized application;
generating a data retrieval request based on the price matrix;
calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract;
and calling the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
2. The method of claim 1, wherein the price matrix comprises a total number of data pieces of the open data packet, all fields, retrieval conditions, and ladder pricing of each field;
the step of generating a data screening request based on the price matrix includes:
generating the data retrieval request based on the total number of data, all the fields, the retrieval condition and the step price of each field, wherein the data retrieval request comprises at least one selected field and a data screening condition of each selected field.
3. The method of claim 2, wherein the data provider provides an application programming interface through which the data provider provides data screening services;
the step of calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract includes:
calling the intelligent contract, sending the data retrieval request to the application programming interface, so that the data providing end completes data screening of each selected field in the open data packet according to the at least one selected field and the data screening condition of each selected field to obtain the target data, and returning the number of the target data to the intelligent contract;
wherein the input of the application programming interface is the data retrieval request, and the output is the number of the target data satisfying the data retrieval request.
4. The method of claim 2, wherein a price calculation mode of the open data packet is distributed in the blockchain network in a mode of an intelligent contract;
the ladder pricing comprises a plurality of pricing ranges and a preset number of intervals associated with each pricing range;
the step of calling the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data comprises the following steps:
determining a target number interval containing the number of the target data from a plurality of preset number intervals;
determining the target pricing of each selected field from the price matrix according to the target number interval;
and calling the intelligent contract, and calculating the price according to the number of the target data and the target pricing of each selected field to obtain the price of the target data.
5. The method of claim 1, wherein the method further comprises:
evaluating a price of the target data to determine whether to use the target data;
when the target data is determined to be used, sending a data acquisition request to the data providing terminal through the decentralized application;
and receiving the target data sent by the data providing end according to the data acquisition request.
6. A data use pricing method is characterized in that the method is applied to a data providing end in a block chain network, decentralized application runs in the block chain network, and an intelligent contract is deployed in the block chain network;
the method comprises the following steps:
receiving a data retrieval request sent by a data using end based on the intelligent contract, wherein the data retrieval request is generated by the data using end through the decentralized application acquiring a price matrix issued in the block chain network and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end;
acquiring target data from the open data packet according to the data retrieval request;
and returning the number of the target data to the intelligent contract so that the data using end calls the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
7. The method of claim 6, wherein prior to the step of receiving a data retrieval request sent by a data consumer based on the smart contract, the method further comprises:
determining the open data packet;
establishing a price matrix of the open data packet;
publishing, by the decentralized application, the price matrix to the blockchain network;
issuing, by the decentralized application, a price calculation of the open data packet to the blockchain network in an intelligent contract manner.
8. The method of claim 7, wherein the step of establishing a price matrix for the open data packet comprises:
counting the total number of data and all fields of the open data packet;
and acquiring the retrieval condition of the open data packet and the step pricing of each field to obtain the price matrix, wherein the price matrix comprises the total number of the data, all the fields, the retrieval condition and the step pricing of each field, and the retrieval condition and the step pricing of each field are self-defined.
9. The method of claim 6, wherein the data provider provides an application programming interface through which the data provider provides data screening services; the input of the application programming interface is the data retrieval request, and the output is the number of the target data meeting the data retrieval request;
the step of receiving the data retrieval request sent by the data using end based on the intelligent contract comprises the following steps:
receiving the data retrieval request sent by the data using end calling an intelligent contract through the application programming interface, wherein the data retrieval request comprises at least one selected field and a data screening condition of each selected field;
the step of obtaining the target data from the open data packet according to the data retrieval request includes:
locating each of said selected fields in said open data packet in accordance with said at least one selected field;
completing data screening of each selected field according to the data screening conditions of each selected field to obtain the target data;
the step of returning the number of pieces of the target data to the intelligent contract comprises:
returning the number of pieces of the target data to the smart contract through the application programming interface.
10. The method of claim 6, wherein the method further comprises:
receiving a data acquisition request sent by the data using end through the decentralized application, wherein the data acquisition request represents that the data using end evaluates the price of the target data and then determines to use the target data;
and sending the target data to the data using end.
11. A data use pricing device is characterized by being applied to a data use end in a block chain network, wherein the block chain network runs decentralized application and is provided with an intelligent contract;
a price matrix is issued in the block chain network, and the price matrix is used for representing pricing information of an open data packet provided by a data providing end in the block chain network;
the device comprises:
a first obtaining module, configured to obtain the price matrix through the decentralized application;
the request generation module is used for generating a data retrieval request based on the price matrix;
the first execution module is used for calling the intelligent contract to send the data retrieval request to the data providing end so that the data providing end obtains target data from the open data packet according to the data retrieval request and returns the number of the target data to the intelligent contract;
and the second execution module is used for calling the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
12. A data use pricing device is characterized by being applied to a data providing end in a block chain network, wherein decentralized application runs in the block chain network, and an intelligent contract is deployed in the block chain network;
the device comprises:
a receiving module, configured to receive a data retrieval request sent by a data using end based on the intelligent contract, where the data retrieval request is generated by the data using end acquiring, through the decentralized application, a price matrix issued in the block chain network and based on the price matrix; the price matrix is used for representing pricing information of the open data packet provided by the data providing end;
the second acquisition module is used for acquiring target data from the open data packet according to the data retrieval request;
and the first processing module is used for returning the number of the target data to the intelligent contract so that the data using end calls the intelligent contract to calculate the price according to the number of the target data and the price matrix to obtain the price of the target data.
13. A computer device, characterized in that the computer device comprises:
one or more processors;
memory for storing one or more programs which, when executed by the one or more processors, cause the one or more processors to implement a data usage pricing method according to any of claims 1-5, or a data usage pricing method according to any of claims 6-10.
14. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the method of pricing data usage according to any of the claims 1-5, or the method of pricing data usage according to any of the claims 6-10.
CN202110151200.7A 2021-02-03 2021-02-03 Data use price calculating method, device, computer equipment and storage medium Active CN112950257B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110151200.7A CN112950257B (en) 2021-02-03 2021-02-03 Data use price calculating method, device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110151200.7A CN112950257B (en) 2021-02-03 2021-02-03 Data use price calculating method, device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112950257A true CN112950257A (en) 2021-06-11
CN112950257B CN112950257B (en) 2024-02-09

Family

ID=76243498

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110151200.7A Active CN112950257B (en) 2021-02-03 2021-02-03 Data use price calculating method, device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112950257B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365401A1 (en) * 2013-06-11 2014-12-11 Sap Ag System for accelerated price master database lookup
CN107194722A (en) * 2017-05-15 2017-09-22 马上游科技股份有限公司 A kind of Dynamic Pricing algorithm based on data mining under shared economy
CN109255705A (en) * 2018-08-24 2019-01-22 中链科技有限公司 Based on the big data sharing method of block chain, apparatus and system
CN110599147A (en) * 2019-09-17 2019-12-20 福州大学 Ciphertext retrieval fair payment method and system based on block chain
US20200273026A1 (en) * 2019-02-22 2020-08-27 Omnichain Solutions Inc. Blockchain-based system for efficient storage and retrieval of disparate supply-side transaction information
CN111858769A (en) * 2020-07-28 2020-10-30 北京金山云网络技术有限公司 Data using method, device, node equipment and storage medium
CN111930747A (en) * 2020-07-31 2020-11-13 广州威尔森信息科技有限公司 Online data purchasing method and device
CN112039855A (en) * 2020-08-14 2020-12-04 海南大学 Scientific and technological resource data safe storage and sharing method based on alliance chain

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140365401A1 (en) * 2013-06-11 2014-12-11 Sap Ag System for accelerated price master database lookup
CN107194722A (en) * 2017-05-15 2017-09-22 马上游科技股份有限公司 A kind of Dynamic Pricing algorithm based on data mining under shared economy
CN109255705A (en) * 2018-08-24 2019-01-22 中链科技有限公司 Based on the big data sharing method of block chain, apparatus and system
US20200273026A1 (en) * 2019-02-22 2020-08-27 Omnichain Solutions Inc. Blockchain-based system for efficient storage and retrieval of disparate supply-side transaction information
CN110599147A (en) * 2019-09-17 2019-12-20 福州大学 Ciphertext retrieval fair payment method and system based on block chain
CN111858769A (en) * 2020-07-28 2020-10-30 北京金山云网络技术有限公司 Data using method, device, node equipment and storage medium
CN111930747A (en) * 2020-07-31 2020-11-13 广州威尔森信息科技有限公司 Online data purchasing method and device
CN112039855A (en) * 2020-08-14 2020-12-04 海南大学 Scientific and technological resource data safe storage and sharing method based on alliance chain

Also Published As

Publication number Publication date
CN112950257B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
WO2014063127A1 (en) Method and system for creating tax configuration templates
CN107870989A (en) webpage generating method and terminal device
CN109918435A (en) A kind of processing method and system of business interface
CN112988123B (en) DDD-oriented software design method and system
CN110633959A (en) Method, device, equipment and medium for creating approval task based on graph structure
CN112306471A (en) Task scheduling method and device
US20210224055A1 (en) Data interface processing method, device, server and medium
CN115115004A (en) Decision tree model construction and application method, device and related equipment
CN110888672A (en) Metadata architecture-based expression engine implementation method and system
US11120513B2 (en) Capital chain information traceability method, system, server and readable storage medium
CN107734006A (en) A kind of statistical log sending method, device and electronic equipment
CN111522840A (en) Label configuration method, device, equipment and computer readable storage medium
CN112950257A (en) Data use pricing method and device, computer equipment and storage medium
CN110851518A (en) Intellectual property case data importing method, system, electronic terminal and medium
CN114895989A (en) Configuration method, device and equipment of business event and storage medium
CN115358761A (en) After-sale processing method and device, after-sale processing equipment and storage medium
CN113377652A (en) Test data generation method and device
CN112199426A (en) Interface call management method, device, server and medium under micro-service architecture
CN112291241A (en) Firewall wall opening method, firewall wall opening device and terminal equipment
CN111367634A (en) Information processing method, information processing device and terminal equipment
CN111652580A (en) Method and device for processing data of nodes
CN111461641A (en) Approval flow processing method, system, equipment and readable storage medium
Kanagasabai et al. Ec2bargainhunter: It's easy to hunt for cost savings on amazon ec2!
CN112948362B (en) Data quality evaluation method, device, computer equipment and storage medium
CN109542413B (en) Data processing method and device, storage medium and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant