CN112950257B - Data use price calculating method, device, computer equipment and storage medium - Google Patents

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

Info

Publication number
CN112950257B
CN112950257B CN202110151200.7A CN202110151200A CN112950257B CN 112950257 B CN112950257 B CN 112950257B CN 202110151200 A CN202110151200 A CN 202110151200A CN 112950257 B CN112950257 B CN 112950257B
Authority
CN
China
Prior art keywords
data
price
target
retrieval request
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.)
Active
Application number
CN202110151200.7A
Other languages
Chinese (zh)
Other versions
CN112950257A (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

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 blockchain, 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 into a blockchain network; the data using end accesses the blockchain network to obtain a price matrix meeting the self requirement through the decentralization application, and 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; the data use terminal can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, the price evaluation can be carried out on the data according to the actual data use amount of the data use terminal, and the data use pricing is realized.

Description

Data use price calculating method, device, computer equipment and storage medium
Technical Field
The embodiment of the application relates to the technical field of blockchain, 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. Data management departments, such as telecommunications operators, may expose portions of data to other institutions for development analysis of data value, and application to other public or business areas.
At present, in the sharing and using process of data, a data provider generally designates a price for a shared data file, and for a data user, price evaluation is difficult to be performed according to the effective data volume actually used.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data usage and price calculating method, apparatus, computer device and storage medium, which are used for solving the problem that in the existing data sharing and using process, a data usage party is difficult to evaluate price according to effective data volume actually used.
In order to achieve the above purpose, the technical solution adopted in the embodiment of the present application is as follows:
in a first aspect, an embodiment of the present application provides a data usage pricing method applied to a data usage end in a blockchain network, where the blockchain network runs a decentralizing application and where an intelligent contract is deployed;
The method comprises the steps that a price matrix is published in a block chain network and used for representing pricing information of open data packages provided by a data providing end in the block chain network;
the method comprises the following steps:
acquiring the price matrix through the decentralization application;
generating a data retrieval request based on the price matrix;
invoking 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, applied to a data providing end in a blockchain network, where a decentralizing application is running in the blockchain network, and where an intelligent contract is deployed in the blockchain network;
the method comprises the following steps:
receiving a data retrieval request sent by a data use terminal based on the intelligent contract, wherein the data retrieval request is generated by the data use terminal through acquiring a price matrix issued in the blockchain network by the decentralization 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;
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, the embodiments of the present application further provide a data usage pricing device, which is applied to a data usage end in a blockchain network, where the blockchain network runs a decentralizing application, and where the blockchain network is deployed with an intelligent contract;
the method comprises the steps that a price matrix is published in a block chain network and used for representing pricing information of open data packages provided by a data providing end in the block chain network;
the device comprises:
the first acquisition module is used for acquiring the price matrix through the decentralization application;
a request generation module 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 perform price calculation 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 decentralizing application is running in the blockchain network, and where an intelligent contract is deployed in the blockchain network;
the device comprises:
the receiving module is used for receiving a data retrieval request sent by a data using end based on the intelligent contract, wherein the data retrieval request is generated based on a price matrix issued by the data using end in the blockchain network obtained through the decentralization application; 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, embodiments of the present application further provide a computer device, the computer device including: one or more processors; and the memory is used for storing one or more programs, and when the one or more programs are executed by the one or more processors, the one or more processors are enabled to realize the data use price calculating method applied to the data use terminal or the data use price calculating method applied to the data providing terminal.
In a sixth aspect, embodiments of the present application further provide a computer readable storage medium having a computer program stored thereon, where the computer program when executed by a processor implements the above-described data usage pricing method applied to a data usage side, or the data usage pricing method applied to a data providing side.
Compared with the prior art, the data use pricing method, the device, the computer equipment and the storage medium provided by the embodiment of the application introduce a blockchain network and a decentralization application, and a data providing end establishes a price matrix of a sharable open data packet in advance and issues the price matrix into the blockchain network; the data using end accesses the blockchain network to obtain a price matrix meeting the self requirement through the decentralization application, and 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; the data use terminal can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, the price evaluation can be carried out on the data according to the actual data use amount of the data use terminal, and the data use pricing is realized.
Drawings
Fig. 1 shows a schematic architecture diagram of a blockchain network provided in an embodiment of the present application.
Fig. 2 is a schematic flow chart of a data usage pricing method applied to a data usage end according to an embodiment of the present application.
Fig. 3 is a flowchart of step S104 in the data usage calculating method shown in fig. 2.
Fig. 4 is a schematic flow chart of another data usage pricing method applied to a data usage end according to an embodiment of the present application.
Fig. 5 is a schematic flow chart of a data usage pricing method applied to a data provider according to an embodiment of the present application.
Fig. 6 is a schematic flow chart of another method for calculating data usage applied to a data provider according to an embodiment of the present application.
Fig. 7 is a schematic flow chart of a data usage pricing method applied to a data provider according to an embodiment of the present application.
Fig. 8 is a schematic block diagram of a data usage metering device applied to a data usage end according to an embodiment of the present application.
Fig. 9 is a schematic block diagram of a data usage calculating device applied to a data providing end according to an embodiment of the present application.
Fig. 10 shows a block schematic diagram of a computer device provided in an embodiment of the present application.
Icon: 10-a computer device; 11-a processor; 12-memory; 13-bus; 100. 200-data use of a price calculating device; 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-a 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 application. The blockchain network includes a plurality of nodes, e.g., node a, node b, node c, etc., and is running a distributed application. Each node may have and communicate with a respective database.
The blockchain is a data structure for storing transactions, is a distributed shared ledger and database, and has the characteristics of decentralization, non-tampering, whole trace, traceability, collective maintenance, openness and transparency and the like. A blockchain network is a structure of compute nodes that is 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.
The decentralized application (Decentralized Application, DAPP), also known as a distributed application, refers to an application where applications are distributed on different blockchain nodes in the blockchain network, relying on the underlying blockchain platform and consensus mechanism to jointly accomplish tasks. DAPP is an internet application, which differs most from traditional applications in that: the DAPP operates in a blockchain network, wherein the blockchain network is a decentralised network, and no decentralised node can completely control the DAPP; whereas conventional applications are centralized, requiring a server to obtain data, process data, etc.
For users of each node in the blockchain network, if the DAPP needs to be accessed, a browser for accessing the DAPP needs to be downloaded, and the DAPP is accessed through the browser. That is, the node needs to be installed with a browser for accessing the DAPP to access the DAPP.
In FIG. 1, the DAPP is running on a blockchain network, where any node in the blockchain network, e.g., any of node a, node b, node c, etc., can access or otherwise operate through the DAPP.
The node a, the node b, the node c, and the like 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, and the like. The node a, the node b, the node c, etc. may also be a user accessing the blockchain network through the above-mentioned computer device, and may specifically be determined according to the actual application scenario, which is not limited herein.
Smart contracts are a type of computer protocol that aims to propagate, verify or execute contracts in an informative manner, allowing trusted transactions to be made without third parties, which transactions are traceable and irreversible. An intelligent contract is a set of digitally defined commitments, including agreements on which contract participants can execute the commitments, a piece of code written on the blockchain.
The data provider may be any node in a blockchain network, e.g., node a; the data consumer may be any node in the blockchain network other than the data consumer, e.g., node b. And in particular, the method can be determined according to the actual application scene, and is not limited herein.
Referring to fig. 2, fig. 2 shows a flow chart of a data usage pricing method applied to a data usage end 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 decentralization 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 that a certain internet listening platform accesses to the blockchain network. The database in communication with the data provider is for storing data owned by the data provider, e.g., the database may be an audio content library, a user information library, a user listening behavior library, a blacklist library, etc. The following examples illustrate a library of user listening behaviors.
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 published into the blockchain network.
Because the blockchain network comprises a plurality of nodes, each node is possibly a data providing end, and the price matrix of the open data packet in the database can be issued to the blockchain network. Thus, there are multiple price matrices published in the blockchain network that are open to all nodes in the blockchain network.
The open data package refers to a data resource that can be provided in a database of the data providing end, for example, the database is a user book listening behavior library, and is used for storing various behavior tables of a user in a book listening process using the internet book listening platform, for example, browsing a content table, collecting an audio table, searching an audio table, listening list table, purchasing an album table and the like. The open data packet may be an action table, such as a ticket table, that can be provided open in the user listening behavior library.
For an open data packet there may be at least one price matrix. Each price matrix published in the blockchain network has respective identification information, where the identification information 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 use end has data demand, all the price matrixes issued in the block chain network can be searched through the DAPP, and the price matrix meeting the demand is selected according to the identification information. For example, if the data user needs to analyze the listening behavior of the user, the price matrix of the "listening list" indicated 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, search conditions, ladder pricing of each field and the like.
The total number of data refers to how many pieces of data are in the open data 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, f3 … … fn, wherein f1, f2, 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 condition screening, for example, f1 supports screening, f3 does not support screening, and the like. The step pricing of each field refers to the pricing of each field when the number of data stripes is different, for example, <1000, 1001-10000, 10001-50000, >50000, etc., and the pricing of each field can be represented by p1, p2, p3 … … pn respectively, when the number of data stripes is different, p1, p2, p3 … … pn will be different.
For example, the price matrix is shown in table 1 below:
TABLE 1
The data user terminal accesses the block chain network through the DAPP, and after acquiring the price matrix meeting the self requirement, the data user terminal can generate a data retrieval request based on the price matrix.
The data retrieval request includes at least one selected field, and a data filtering condition for each selected field. That is, the data consumer uses the total number of data, all fields, the search condition, and the ladder pricing of each field as the basis, and the set conditions for selecting the required data from the open data packet, for example, f1, f2, fn, and f1>18, f2= "abc", where the data screening condition of the selected field is f1, f2, fn, the data screening condition of the f1 field is the data of all >18 under the field, the data screening condition of the f2 field is the data of all "abc" under the field, and the data screening condition of the fn field is 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 can acquire 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.
The data use end uses DAPP as a price matrix, calculates the price of target data and acquires the program of the target data.
After the data user terminal generates a data retrieval request based on the price matrix, the data retrieval request can be sent to the data provider terminal by calling the intelligent contract through the DAPP. 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 can obtain target data after 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, n=12000.
S104, calling the intelligent contract to calculate the price according to the number of the target data and the price matrix, and obtaining the price of the target data.
The data providing end issues the price matrix of the open data packet to the blockchain network, and simultaneously, the price calculation mode of the open data packet is required to be issued to the blockchain network in an intelligent contract mode.
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 calculates the price 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, firstly, according to the number n of the target data, determining the pricing of each selected field when the number n of the data is determined from the price matrix, for example, n=12000, and the pricing of the selected fields f1, f2 and fn when the number n of the data is p1 (10001-50000), p2 (10001-50000) and pn (10001-50000) respectively; then, calculating the sum of the pricing of each selected field when the number of data strips is n, namely, p1 (10001-50000) +p2 (10001-50000) +pn (10001-50000), and obtaining the price of one piece of data at the moment; and finally, multiplying the price of one 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, when the price matrix shown in table 1 is combined, the price of the target data is: p= [ P1 (10001 to 50000) +p2 (10001 to 50000) +pn (10001 to 50000) ]/.
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 using end so as to enable the data using end to decide whether the target data needs to be purchased or not.
Steps S102, S103, and S04 are described in detail below.
Optionally, the price matrix includes a total number of data for the open data packet, all fields, search criteria, and step pricing for each field. Thus, step S102 may comprise the sub-steps of:
S1021, generating a data retrieval request based on the total number of data, all fields, the retrieval condition and the ladder quotation of each field, wherein the data retrieval request comprises at least one selected field and the data screening condition of each selected field.
In combination with table 1, the data consumer can learn the total amount N of data of the open data packet, for example, 60000 data, based on the price matrix; meanwhile, from the self requirement, a required field can be selected from the fields f1, f2 and f3 … … fn, for example, f1, f2 and 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 pieces; further, data screening conditions, for example, f1>18, f2= "abc", etc., are set for the selected fields according to the search conditions, i.e., whether each field in the open packet supports screening. Thus, the data retrieval request, i.e., f1, f2, fn, is eventually generated, and f1>18, f2= "abc".
Optionally, the data provider provides an application programming interface, and the data provider provides the data screening service through the application programming interface. Thus, step S103 may comprise the sub-steps of:
S1031, calling an intelligent contract, sending a data retrieval request to an application programming interface, enabling a data providing end to finish data screening of each selected field in an open data packet according to at least one selected field and data screening conditions 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 (Application Programming Interface, API), also known as an application programming interface, is a set of definitions, programs, and protocols through which computer software communicates with each other. One of the main functions of the API is to provide a generic set of functions. The API is also a middleware for providing data sharing for various platforms.
The data provider may access the open data packet to the blockchain network in advance and open an API interface of the data screening service to the blockchain point service. The access of the API interface is referred to as a data retrieval request, and the data retrieval request can be represented by x; the output result is the number n of pieces of target data satisfying the data retrieval request.
The data user side obtains a price matrix through the DAPP access block chain network, and generates a data retrieval request x based on the price matrix, wherein the x content is exemplified as follows:
x= (f 1>18, f2= "abc", with the result that the f1, f2, fn fields are reserved).
Then, the data user terminal calls the intelligent contract through the DAPP, and inputs the data retrieval request x as a parameter into the intelligent contract; the intelligent contract sends a data retrieval request x to an API interface of a data providing end for providing data screening service through a block chain link point service; the data screening service of the data providing end finishes the data screening of the open data packet according to the data retrieval request x, obtains the target data meeting the data retrieval request x, obtains the number n of the target data and returns to the intelligent contract.
Optionally, referring to fig. 3 on the basis of fig. 2, step S104 may include the following sub-steps:
s1041, determining a target number section containing the number of target data from a plurality of preset number sections.
In the price matrix. The ladder pricing for each field includes a plurality of pricing and a preset number of intervals associated with each pricing, e.g., in combination with table 1, for the f1 field, the ladder pricing includes 4 total pricing of p1 (< 1000), p1 (1001-10000), p1 (10001-50000), and p1 (> 50000), which 4 pricing may be completely different or one or several of the same. The preset number of intervals associated with these 4 pricing rates are, in order: <1000, 1001-10000, 10001-50000 and >50000.
Assuming that the number n=12000 of target data returned to the intelligent contract by the data providing end, 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 in order: p1 (10001 to 50000), p2 (10001 to 50000) and pn (10001 to 50000).
S1043, 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.
The price calculation mode of the open data packet is issued in the intelligent contract mode in the block chain network. After the data user determines the target pricing of each selected field, the intelligent contract can be called through the DAPP to calculate the price of the target data. Taking n=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 can return the number n of the target data and the price P to the data using end, and the data using end can evaluate whether the price can be accepted or not so as to determine whether to use the target data or not.
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.
S105, evaluating the price of the target data to determine whether to use the target data.
S106, when the use target data is determined, sending a data acquisition request to the data providing end through the decentralizing application.
S107, receiving the target data sent by the data providing end according to the data acquisition request.
After the price of the target data is evaluated by the data using terminal, if the price can be accepted, the target data can be confirmed to be used and obtained through the DAPP. In other words, the data consumer may send a data acquisition request to the data provider through the DAPP, where the data acquisition request may include an identification of the target data; after receiving the request, the data providing end can send the target data which is screened in the open data packet to the data using end; the data use terminal can develop and use the target data.
Referring to fig. 5, fig. 5 shows a flow chart of a data usage pricing method applied to a data providing end 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 user terminal based on an intelligent contract, wherein the data retrieval request is generated by the data user terminal through acquiring a price matrix issued in a blockchain network through a decentralization 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.
S202, acquiring target data from the open data packet according to the data retrieval request.
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, and the price of the target data is obtained.
Steps S201, S202, and S203 are described in detail below.
The data providing end provides an application programming interface, and 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.
Thus, step S201 may comprise the sub-steps of:
s2011, receiving a data retrieval request sent by a data user terminal calling an 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.
Step S202 may comprise the sub-steps of:
s2021, locating each selected field in the open data packet according to at least one selected field.
S2022, finishing the data screening of each selected field according to the data screening condition of each selected field to obtain target data.
Step S203 may comprise the sub-steps of:
s2031, the number of pieces of target data is returned to the smart contract through the application programming interface.
The following describes the process of the data provider in the manner of issuing price matrices and price calculations for open data packets in a blockchain network. Referring to fig. 6 on the basis of fig. 5, the data usage pricing method may further include steps S210 to S240 before step S201.
S210, determining an open data packet.
S220, establishing a price matrix of the open data packet.
S230, issuing the price matrix to the blockchain network through the decentralization application.
S240, issuing the price calculation mode of the open data packet to the blockchain network in an intelligent contract mode through the decentralization application.
Optionally, step S220 may include the sub-steps of:
s2201, counting the total number of data and all fields of an open data packet;
s2202, obtaining the search condition of the open data packet and the ladder 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 ladder pricing of each field, and the search condition and the ladder pricing of each field are customized.
After the price of the target data is evaluated by the data using terminal, if the price can be accepted, the target data can be confirmed to be used and obtained 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.
S204, receiving a data acquisition request sent by the data using end through the decentralization application, wherein the data acquisition request characterizes the price of the target data, and then the data using end determines to use the target data.
S205, the target data is sent to the data using end.
Compared with the prior art, the embodiment of the application has the following beneficial effects:
firstly, according to the embodiment of the application, the price evaluation can be carried out on the data according to the actual data use amount of the data use terminal, so that the data use price is realized;
secondly, the data using end can acquire the target data through the DAPP after the price of the estimated target data is acceptable, so that the data using end can select the data which meets the requirements of the user.
In order to perform the corresponding steps in the above data usage metering method embodiments and in the various possible embodiments, an implementation of a data usage metering device applied to a data usage end and an implementation of a data usage metering device applied to a data providing end are given below.
Referring to fig. 8, fig. 8 is a block diagram illustrating a data usage calculating device 100 according to an embodiment of the disclosure. The data usage calculating device 100 is applied to a data usage end, and includes: the first acquisition module 110, the request generation module 120, the first execution module 130, and the second execution module 140.
A first acquisition module 110 for acquiring the price matrix through a decentralization application.
The request generation module 120 is configured to generate a data retrieval request based on the price matrix.
The first execution module 130 is configured to invoke the smart contract to send a 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 smart contract.
The second execution module 140 is configured to invoke 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 price matrix includes a total number of data of the open data packet, all fields, search conditions, and ladder pricing for each field;
the request generation module 120 is specifically configured to: a data retrieval request is generated based on the total number of data, all of the fields, the retrieval conditions, and the ladder offers for each of the fields, wherein the data retrieval request includes at least one selected field, and the data screening conditions for each selected field.
Optionally, the data providing end provides an application programming interface, and the data providing end provides a data screening service through the application programming interface;
the first execution 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 finish data screening of each selected field in an open data packet according to 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.
Optionally, a price calculation mode of an open data packet is issued in a manner of intelligent contract in the blockchain network; ladder pricing includes a plurality of pricing and a preset number of intervals associated with each pricing;
the second execution module 140 is specifically configured to: determining a target number interval containing the number of target data from a plurality of preset number intervals; determining 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.
Optionally, the data usage pricing device 100 further comprises a third execution module 150.
A third execution module 150 for evaluating the 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 end through a decentralizing 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 calculating device 200 according to an embodiment of the disclosure. The data usage calculating device 200 is applied to a data providing end, and includes: the device comprises a receiving module 210, a second obtaining module 220 and a first processing module 230.
A receiving module 210, configured to receive a data retrieval request sent by a data consumer based on an intelligent contract, where the data retrieval request is generated by the data consumer by obtaining a price matrix published in a blockchain network through a decentralizing 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 user end invokes the intelligent contract to perform price calculation according to the number of the target data and the price matrix, and 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 the intelligent contract called by the data user terminal 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: the number of target data is returned to the smart contract through the application programming interface.
Optionally, the data usage pricing device 200 further comprises a second processing module 240.
A second processing module 240, configured to determine an open data packet; establishing a price matrix of the open data packet; issuing the price matrix to a blockchain network through a decentralization application; the price calculation mode of the open data packet is issued to the blockchain network in an intelligent contract mode through the decentralization application.
Optionally, the second processing module 240 performs a manner of establishing a price matrix for the open data packet, including: counting the total number of data and all fields of an open data packet; and obtaining the retrieval condition of the open data packet and the ladder 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 ladder pricing of each field, and the retrieval condition and the ladder pricing of each field are customized.
Optionally, the second processing module 240 is further configured to: receiving a data acquisition request sent by a data using end through a decentralization application, wherein the data acquisition request characterizes the price of target data to be evaluated by the data using end, and then the target data is determined to be used; and sending the target data to a data using end.
It will be clearly understood by those skilled in the art that, for convenience and brevity of description, the specific working processes of the data usage and metering devices 100 and 200 described above may refer to the corresponding processes in the foregoing method embodiments, and will not be described herein again.
Referring to fig. 10, fig. 10 is a block diagram of a computer device 10 according to an embodiment of the present application. The computer device 10 may be a data use terminal or a data providing terminal. The computer device 10 includes a processor 11, a memory 12, and a bus 13, the processor 11 being connected to the memory 12 via the bus 13.
The memory 12 is used to store programs such as the data usage meter 100 shown in fig. 8 or the data usage meter 200 shown in fig. 9. Taking the data usage calculating device 100 as an example, the data usage calculating device 100 includes at least one software functional module that may 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 calculating method applied to the data usage end disclosed in the above embodiment.
The memory 12 may include high-speed random access memory (Random Access Memory, RAM) and may also include non-volatile memory (NVM).
The processor 11 may be an integrated circuit chip with signal processing capabilities. In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in the processor 11 or by instructions in the form of software. The processor 11 may be a general-purpose processor, including a central processing unit (Central Processing Unit, CPU), a micro control unit (Microcontroller Unit, MCU), a complex programmable logic device (Complex Programmable Logic Device, CPLD), a Field-programmable gate array (Field-Programmable Gate Array, FPGA), an embedded ARM, or the like.
The embodiment of the present application further provides a computer readable storage medium, on which a computer program is stored, which when executed by the processor 11 implements the data usage pricing method applied to the data usage side or the data usage pricing method applied to the data providing side disclosed in the above embodiment.
In summary, the data usage pricing method, device, computer equipment and storage medium provided in the embodiments of the present application, the data providing end establishes a price matrix of sharable open data packets in advance and issues the price matrix to the blockchain network; the data using end accesses the blockchain network to obtain a price matrix meeting the self requirement through the decentralization application, and 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; the data use terminal can calculate the price of the target data according to the number of the target data and the price matrix. Therefore, the price evaluation can be carried out on the data according to the actual data use amount of the data use terminal, and the data use pricing is realized.
The foregoing description is only of the preferred embodiments of the present application and is not intended to limit the same, but rather, various modifications and variations may be made by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims (11)

1. The data use pricing method is characterized by being applied to a data use end in a blockchain network, wherein the blockchain network runs a decentralizing application, and intelligent contracts are deployed in the blockchain network;
the method comprises the steps that a price matrix is published in a block chain network and used for representing pricing information of open data packages provided by a data providing end in the block chain network;
the method comprises the following steps:
acquiring the price matrix through the decentralization application, wherein the price matrix comprises the total data number, all fields, search conditions and ladder pricing of each field of the open data packet;
generating a data retrieval request based on the total number of data, the all fields, the retrieval conditions, and the ladder offers for each field, wherein the data retrieval request includes at least one selected field, and a data screening condition for each of the selected fields;
invoking 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 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 comprises the following steps:
invoking the intelligent contract, sending the data retrieval request to the application programming interface, enabling the data providing end to finish 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;
and 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.
3. The method of claim 1, wherein price computing means for the open data packet is published in a smart contract manner in the blockchain network;
the ladder pricing comprises a plurality of pricing and a preset number of intervals associated with each of the pricing;
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 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.
4. The method of claim 1, wherein the method further comprises:
evaluating the 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 end through the decentralizing application;
And receiving the target data sent by the data providing terminal according to the data acquisition request.
5. The data use pricing method is characterized by being applied to a data providing end in a block chain network, wherein a decentralizing application is operated in the block chain network, and intelligent contracts are deployed in the block chain network;
the method comprises the following steps:
determining the open data packet;
counting the total number of data and all fields of the open data packet;
obtaining a search condition of the open data packet and ladder pricing of each field to obtain a price matrix, wherein the price matrix comprises the total data number, all the fields, the search condition and the ladder pricing of each field, and the search condition and the ladder pricing of each field are self-defined;
issuing the price matrix to the blockchain network through the de-centering application;
issuing a price calculation mode of the open data packet to the blockchain network in an intelligent contract mode through the decentralization application;
receiving a data retrieval request sent by a data use terminal based on the intelligent contract, wherein the data retrieval request is generated by the data use terminal through acquiring a price matrix issued in the blockchain network by the decentralization 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;
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.
6. The method of claim 5, 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 user terminal calling 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 selected field in the open data packet according to the at least one selected field;
completing data screening of each selected field according to the data screening condition of each selected field to obtain the target data;
the step of returning the number of the target data to the smart contract includes:
and returning the number of the target data to the intelligent contract through the application programming interface.
7. The method of claim 5, wherein the method further comprises:
receiving a data acquisition request sent by the data using end through the decentralization application, wherein the data acquisition request characterizes the price of the target data by the data using end, and then determining to use the target data;
and sending the target data to the data using end.
8. The data use metering device is characterized by being applied to a data use end in a blockchain network, wherein the blockchain network is provided with an application for decentralizing, and intelligent contracts are deployed in the blockchain network;
the method comprises the steps that a price matrix is published in a block chain network and used for representing pricing information of open data packages provided by a data providing end in the block chain network;
The device comprises:
a first obtaining module, configured to obtain, by using the decentralizing application, the price matrix, where the price matrix includes a total number of data of the open data packet, all fields, a search condition, and step pricing of each field;
a request generation module, configured to generate a data retrieval request based on the total number of data, the all fields, the retrieval conditions, and the ladder quotation for each field, where the data retrieval request includes at least one selected field, and a data screening condition for each of the selected fields;
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;
the second execution module is used for calling the intelligent contract to perform price calculation according to the number of the target data and the price matrix to obtain the price of the target data;
wherein the price matrix comprises the total number of data of the open data packet, all fields, search conditions and ladder pricing of each field; the request generation module is specifically configured to:
Generating the data retrieval request based on the total number of data, the all fields, the retrieval conditions, and the ladder offers for each field, wherein the data retrieval request includes at least one selected field, and a data filtering condition for each of the selected fields.
9. The data use metering device is characterized by being applied to a data providing end in a block chain network, wherein the block chain network is provided with an application for decentralizing, and intelligent contracts are deployed in the block chain network;
the device comprises:
the second processing module is used for determining the open data packet; counting the total number of data and all fields of the open data packet; obtaining a search condition of the open data packet and ladder pricing of each field to obtain the price matrix, wherein the price matrix comprises the total data number, all the fields, the search condition and the ladder pricing of each field, and the search condition and the ladder pricing of each field are self-defined; issuing the price matrix to the blockchain network through the de-centering application; issuing a price calculation mode of the open data packet to the blockchain network in an intelligent contract mode through the decentralization application;
The receiving module is used for receiving a data retrieval request sent by a data using end based on the intelligent contract, wherein the data retrieval request is generated based on a price matrix issued by the data using end in the blockchain network obtained through the decentralization application; 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.
10. A computer device, the computer device comprising:
one or more processors;
a memory for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the data usage metering method of any of claims 1-4, or the data usage metering method of any of claims 5-7.
11. A computer readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, implements a data usage pricing method according to any of claims 1-4 or a data usage pricing method according to any of claims 5-7.
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 CN112950257A (en) 2021-06-11
CN112950257B true 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 (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9811845B2 (en) * 2013-06-11 2017-11-07 Sap Se System for accelerated price master database lookup
US10902419B2 (en) * 2019-02-22 2021-01-26 Omnichain Solutions Inc. Blockchain-based system for efficient storage and retrieval of disparate supply-side transaction information

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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
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
CN112950257A (en) 2021-06-11

Similar Documents

Publication Publication Date Title
CN108415832A (en) Automatic interface testing method, device, equipment and storage medium
EP3020017A1 (en) Method and system for creating tax configuration templates
CN111506511A (en) Test case generation method and device, electronic equipment and medium
CN107870989A (en) webpage generating method and terminal device
CN109996202B (en) Flow charging method and device
CN107396199A (en) Barrage method for exhibiting data and device, computer-readable recording medium
CN103167007A (en) Method and device used for calculating interactive degree between users
CN113516507A (en) Resource charging method and device for multi-cloud management platform
CN110555079A (en) Data processing method, device, equipment and storage medium
Akingbesote et al. Performance modeling of proposed guiset middleware for mobile healthcare services in e‐marketplaces
CN111522840B (en) Label configuration method, device, equipment and computer readable storage medium
CN112950257B (en) Data use price calculating method, device, computer equipment and storage medium
US11120513B2 (en) Capital chain information traceability method, system, server and readable storage medium
CN112732372A (en) Service calling method and device and server
CN110851518A (en) Intellectual property case data importing method, system, electronic terminal and medium
CN104462116A (en) Data selecting method and device
CN110020166A (en) A kind of data analysing method and relevant device
CN112131257B (en) Data query method and device
CN112199426A (en) Interface call management method, device, server and medium under micro-service architecture
CN111367634A (en) Information processing method, information processing device and terminal equipment
CN113741868A (en) Business calculation task processing method and device, computer equipment and storage medium
Kanagasabai et al. Ec2bargainhunter: It's easy to hunt for cost savings on amazon ec2!
CN113852516B (en) Method, system, terminal and storage medium for generating switch diagnostic program
Kalmar et al. Investigating operational costs of IoT cloud applications
CN116126536A (en) Resource management method and device and electronic equipment

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