CN110851458B - Resource acquisition method, device, system and storage medium - Google Patents

Resource acquisition method, device, system and storage medium Download PDF

Info

Publication number
CN110851458B
CN110851458B CN201911121020.3A CN201911121020A CN110851458B CN 110851458 B CN110851458 B CN 110851458B CN 201911121020 A CN201911121020 A CN 201911121020A CN 110851458 B CN110851458 B CN 110851458B
Authority
CN
China
Prior art keywords
resource
target application
database
data
demand side
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
CN201911121020.3A
Other languages
Chinese (zh)
Other versions
CN110851458A (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.)
Jiangsu Guotai Xindian Software Co ltd
Original Assignee
Jiangsu Guotai Xindian Software 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 Jiangsu Guotai Xindian Software Co ltd filed Critical Jiangsu Guotai Xindian Software Co ltd
Priority to CN201911121020.3A priority Critical patent/CN110851458B/en
Publication of CN110851458A publication Critical patent/CN110851458A/en
Application granted granted Critical
Publication of CN110851458B publication Critical patent/CN110851458B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/24Querying
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/95Retrieval from the web
    • G06F16/953Querying, e.g. by the use of web search engines
    • G06F16/9535Search customisation based on user profiles and personalisation
    • 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)
  • Databases & Information Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Data Mining & Analysis (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computational Linguistics (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application relates to a resource acquisition method, device, system and storage medium. The method comprises the following steps: receiving a resource application request sent by a second device through a preset interface; according to the identification, acquiring the target application resource table from a database of a resource provider; according to the information of the resource demand side, the target application resource table is issued to a database of the resource demand side; the resource application request comprises the identification of the target application resource table and the information of the resource demander. Because the communication interface is preset between the first equipment and the second equipment, after a user only needs to initiate a resource application request on the second equipment, the first equipment can receive related parameters of resource exchange sent by the second equipment through the preset interface, so that the acquisition of resources required by the user is automatically completed, the user is not required to operate different resource platforms and understand the technical parameters of each resource platform, and the operation of the user is greatly simplified.

Description

Resource acquisition method, device, system and storage medium
Technical Field
The present invention relates to the field of computer technologies, and in particular, to a method, an apparatus, a system, and a storage medium for acquiring resources.
Background
With the continuous development of big data technology, the realization of information resource sharing is a commonly pursued goal. Taking government information resource sharing as an example, information resource sharing among different departments can be realized through a resource sharing exchange platform so as to solve the problem of information island.
However, how to obtain information resources more simply through this platform is still a technical problem to be solved by those skilled in the art.
Disclosure of Invention
Based on this, it is necessary to provide a resource acquisition method, apparatus, system and storage medium for solving the technical problem of how to acquire information resources more simply.
The resource acquisition method is applied to first equipment and comprises the following steps:
receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
and according to the information of the resource demand party, the target application resource table is issued to a database of the resource demand party.
An apparatus for acquiring resources, integrated in a first device, includes:
The receiving module is used for receiving a resource application request sent by the second equipment through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
the first acquisition module is used for acquiring the target application resource table from a database of a resource provider according to the identification;
and the first processing module is used for issuing the target application resource table to a database of the resource demand party according to the information of the resource demand party.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
and according to the information of the resource demand party, the target application resource table is issued to a database of the resource demand party.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
Receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
and according to the information of the resource demand party, the target application resource table is issued to a database of the resource demand party.
According to the resource acquisition method, the device, the equipment and the storage medium, the first equipment receives a resource application request sent by the second equipment through a preset interface, acquires a target application resource table from a database of a resource provider according to the identification of the target application resource table included in the resource application request, and issues the target application resource table to the database of the resource requiring party based on the information of the resource requiring party included in the resource application request. Because the communication interface is preset between the first equipment and the second equipment, after a user only needs to initiate a resource application request on the second equipment, the first equipment can receive related parameters of resource exchange sent by the second equipment through the preset interface, so that the acquisition of resources required by the user is automatically completed, the user is not required to operate different resource platforms and understand the technical parameters of each resource platform, and the operation of the user is greatly simplified.
The resource acquisition method is applied to the second equipment and comprises the following steps:
receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
and sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
An apparatus for acquiring resources, integrated in a second device, includes:
the receiving module is used for receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
the sending module is used for sending the resource application request to the first device through a preset interface, wherein the resource application request is used for indicating the first device to obtain the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource demand party according to the information of the resource demand party.
A computer device comprising a memory storing a computer program and a processor which when executing the computer program performs the steps of:
receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
and sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
A computer readable storage medium having stored thereon a computer program which when executed by a processor performs the steps of:
receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
and sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
According to the resource acquisition method, the device, the equipment and the storage medium, the second equipment can send the resource application request of the user to the first equipment through the preset interface, so that the first equipment acquires the target application resource table from the database of the resource provider according to the identification of the target application resource table included in the resource application request, and issues the target application resource table to the database of the resource requiring party based on the information of the resource requiring party included in the resource application request. Because the communication interface is preset between the first equipment and the second equipment, the second equipment can send the related parameters of resource exchange to the first equipment through the preset interface after a user only needs to initiate a resource application request on the second equipment, thereby automatically completing the acquisition of resources required by the user, eliminating the need for the user to operate different resource platforms and understand the technical parameters of each resource platform, and greatly simplifying the operation of the user.
Drawings
FIG. 1 is a system architecture diagram to which a resource acquisition method according to an embodiment is applied;
FIG. 2 is a flowchart of a method for acquiring resources according to an embodiment;
FIG. 3 is an interface diagram of a resource acquisition process according to an embodiment;
FIG. 4 is an interface diagram of a resource acquisition process according to one embodiment;
FIG. 5 is a flowchart of a method for acquiring resources according to another embodiment;
FIG. 6 is a flowchart of a method for acquiring resources according to another embodiment;
FIG. 7 is a flowchart of a method for acquiring resources according to another embodiment;
FIG. 8 is a flowchart of a method for acquiring resources according to another embodiment;
FIG. 9 is a flowchart of a method for acquiring resources according to another embodiment;
FIG. 10 is a schematic diagram of a resource acquisition method according to another embodiment;
FIG. 11 is a schematic diagram illustrating an internal structure of a resource acquiring device according to an embodiment;
FIG. 12 is a schematic diagram of an internal structure of a resource acquiring device according to another embodiment;
FIG. 13 is a schematic diagram of an internal structure of a resource acquiring device according to another embodiment;
FIG. 14 is a schematic diagram of an internal structure of a resource acquisition device according to another embodiment;
FIG. 15 is a schematic diagram of a resource acquisition system according to an embodiment;
fig. 16 is a schematic diagram of an internal structure of a computer device according to an embodiment.
Detailed Description
The resource acquisition method provided by the embodiment of the application can be applied to a system shown in fig. 1. The system comprises: a resource directory management platform 10 and a data exchange platform 11. The resource catalog management platform 10 is used for displaying various resource catalogs, including a basic resource catalog, a theme resource catalog, a department resource catalog and the like, and can realize subscription application of resources, audit of the resource subscription application and the like. The data exchange platform 11 can realize the sharing exchange of various resources according to the subscription requirements of users. The resource catalog management platform 10 and the data exchange platform 11 can communicate with each other through a wired transmission mode, and also can communicate with each other through a wireless transmission mode, such as bluetooth, a third generation mobile communication technology, a fourth generation mobile communication technology, a fifth generation mobile communication technology and the like.
In order to make the objects, technical solutions and advantages of the present application more apparent, the technical solutions in the embodiments of the present application are further described in detail by the following embodiments with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the present application.
The following description will be given by taking an execution main body as a first device (the first device may be a data exchange platform) as an example, and the following details are given:
fig. 2 is a flowchart of a resource acquisition method according to an embodiment. This embodiment relates to a specific procedure of how the first device obtains the resource. As shown in fig. 2, the method includes:
s101, receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party.
Specifically, the target application resource table is a resource table subscribed by the resource requiring party, and the resource table can be a administrative information resource table, an educational information resource table or other types of information resource tables. The identifier of the target application resource table may be a name of the target application resource table, an index of the target application resource table, a path of the target application resource table, or the like, which is not limited in this embodiment. The resource-requiring party information may include a database identification of the resource-requiring party, and may also include a data table identification of the resource-requiring party. In practical application, an interface for communication is provided in advance between the first device and the second device (the second device may be a resource target management platform), and the interface may be a rest pi (Representational State Transfer Application Programming Interface ). Thus, when the resource demand party has a resource subscription demand, the second device can acquire the identification of the target application resource table and the information of the resource demand party through the operation of the resource demand party on the subscription control, generate a resource application request according to the identification of the target application resource table and the information of the resource demand party, and send the resource application request to the first device through a preset interface. Thus, the first device can receive the resource application request sent by the second device through the preset interface.
S102, acquiring the target application resource table from a database of a resource provider according to the identification.
Specifically, according to the received identifier of the target application resource table, the first device acquires the target application resource table corresponding to the identifier from the database of the resource provider.
S103, according to the information of the resource demand side, the target application resource table is issued to a database of the resource demand side.
Specifically, the information of the resource demander can include a database identifier of the resource demander, and also can include a data table identifier of the resource demander. When the resource demand side information comprises the database identification of the resource demand side, the first device issues the target application resource table to the database of the resource demand side according to the database identification of the resource demand side. When the resource demand side information comprises the data table identification of the resource demand side, the first device issues the target application resource table to the database of the resource demand side according to the data table identification of the resource demand side.
Taking a resource as government information resource, a resource provider as public security bureau and a resource demand party as civil security bureau as an example, introducing a process of acquiring the resource by the first equipment, and specifically:
Assuming that a user of the civil office (resource demander) checks in the resource query option through the second device (resource catalog management platform) that a resource with a resource name of a resident population exists in the resource catalog of the public security office (resource provider), and has a subscription requirement on the resource of the resident population, the user of the civil office can click on the resource subscription control on the interface shown in fig. 3And selects the resource demander information (e.g., the civil office pre-library in the department pre-library) in the library table selection drop-down menu on the resource subscription interface as shown in fig. 4, at this time, after detecting the operation of clicking the subscription control by the civil office staff, and selecting the received library table, the second device generates a resource application request and sends the resource application request to the first device (data exchange platform) through a preset interface. In this way, the first device may receive, through a preset interface, a resource application request sent by the second device, where the resource application request includes an identifier of a resident table of the public security office and civil office information (the civil office information is an identifier of a receiving library table, and the receiving library table may be a database or a data table). And then, the first equipment extracts the resident population form from the database of the public security bureau according to the identification of the resident population form of the public security bureau, and issues the resident population form to the database of the civil government bureau, thereby completing the acquisition of resident population resources of the public security bureau.
According to the resource acquisition method provided by the embodiment, the first device receives a resource application request sent by the second device through a preset interface, acquires a target application resource table from a database of a resource provider according to the identification of the target application resource table included in the resource application request, and issues the target application resource table to the database of the resource requiring party based on the information of the resource requiring party included in the resource application request. Because the communication interface is preset between the first equipment and the second equipment, after a user only needs to initiate a resource application request on the second equipment, the first equipment can receive related parameters of resource exchange sent by the second equipment through the preset interface, so that the acquisition of resources required by the user is automatically completed, the user is not required to operate different resource platforms and understand the technical parameters of each resource platform, and the operation of the user is greatly simplified.
In practical application, the resource requirement party can set the information of the receiving library table, the information of the receiving library table can be set as the identification of a certain database, and the information of the receiving library table can also be set as the identification of a certain data table. That is, the information of the resource demander can be identified by the database of the resource demander, or can be identified by the data table of the resource demander. In an alternative embodiment, when the resource demander information includes a database identifier of the resource demander, S103 may include: and adding the target application resource table into the database of the resource requiring party according to the database identification of the resource requiring party.
In another alternative embodiment, when the resource demander information includes a data table identifier of the resource demander, as shown in fig. 5, S103 may include:
s201, acquiring first field information contained in the target application resource table.
The first field information may include a name of the first field, a field type of the first field, and the like.
S202, acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side.
The second field information may include a name of the second field, a field type of the second field, and the like.
S203, establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information.
The field mapping relation is used for representing the correspondence relation between the first field information and the second field information. The first device may establish a field mapping relationship between the target application resource table and the data table of the resource requiring party according to the corresponding relationship between the first field information and the second field information. For example, the field "name" in the target application resource table corresponds to the field "name" in the data table of the resource demander. Of course, the first device may also establish a field mapping relationship between the target application resource table and the data table of the resource requiring party according to the position correspondence between the first field information and the second field information. The position correspondence may be a column position correspondence or a row position correspondence. Taking the column position corresponding relation as an example, the nth column field in the target application resource table corresponds to the nth column field in the data table of the resource demand party, wherein n is greater than or equal to 1.
In addition, when the field mapping relation is established, various information contained in the first field information and the second field information is referred, so that the field mapping relation established by combining the name of the first field information, the field type of the first field information, the name of the second field information and the field type of the second field information is more accurate, and the accuracy of subsequent resource acquisition is improved.
S204, according to the field mapping relation, the data in the target application resource table is correspondingly added into a data table of the resource requiring party.
Specifically, after obtaining a field mapping relationship between the target application resource table and the data table of the resource requiring party, the first device correspondingly adds the data belonging to the first field information in the target application resource table to the set where the second field information of the data table of the resource requiring party is located according to the field mapping relationship. For example, data belonging to the field "name" in the target application resource table is added to the set where the field "name" of the data table of the resource demander is located.
According to the resource acquisition method provided by the embodiment, the first device can send the target resource list to the database of the resource demand party in different modes according to whether the information of the resource demand party selected by the user is the database identifier of the resource demand party or the data list identifier of the resource demand party, so that interfaces of user interaction are enriched, and the intelligence of man-machine interaction is improved.
In practical application, since the data in the target application resource table may be updated, in order to be able to timely issue the incremental data to the database of the resource demander, optionally, the user may set the resource exchange frequency, that is, the resource application request received by the first device may further include the resource exchange frequency. On the basis of the above embodiment, optionally, as shown in fig. 6, after S103, the method may further include:
s301, acquiring incremental data in the target application resource table according to the resource exchange frequency.
The resource exchange frequency can be 1 hour, 1 day and the like, and corresponding setting can be performed according to the requirements of users. The incremental data may be added data, deleted data, modified data, and the like. The first device may obtain the incremental data in the target resource application form by comparing the data in the target application resource form obtained last time with the data in the target application resource form obtained this time.
Optionally, the method for the first device to obtain the incremental data in the target application resource table may include: and acquiring the increment data in the target application resource table in any one of a timestamp increment mode, a flag bit increment mode, a trigger increment mode, an MD5 (Message Digest Algorithm, a fifth edition of a message digest algorithm) increment comparison mode, a full-quantity mode and a snapshot increment comparison mode.
It should be noted that, when the data in the target application resource table is not updated, the incremental data in the target application resource table acquired by the first device is 0.
S302, the incremental data are issued to a database of the resource demander.
In practice, there may be a case that when the resource exchange frequency arrives, the data in the target application resource table is not updated, and in order to reduce the internal consumption of the first device, optionally, before the first device obtains the incremental data in the target application resource table, the method may further include: and detecting whether the data in the target application resource table is updated. When the data in the target application resource table is updated, the first device obtains the incremental data in the target application resource table.
According to the resource acquisition method provided by the embodiment, the first device can acquire the incremental data in the target application resource table according to the resource exchange frequency set by the user, and send the incremental data to the database of the resource demand party. That is, the user only needs to set a resource exchange frequency, and the first device can automatically obtain the incremental data in the target application resource table at regular intervals according to the resource exchange frequency and send the incremental data to the database of the resource demand party, so that the operation of the user is further simplified, and the intelligence of man-machine interaction is also improved.
As another alternative embodiment, the frequency of data update may be used as the frequency of resource exchange, and on the basis of the above embodiment, as shown in fig. 7, after S103, the method may further include:
s401, when the data in the target application resource table is updated, incremental data in the target application resource table is acquired.
It should be noted that, in this embodiment, the manner in which the first device obtains the incremental data in the target application resource table may refer to the description in the foregoing embodiment, and this embodiment is not described herein again.
S402, the incremental data are issued to a database of a resource requiring party.
Optionally, before S401, the method may further include: and detecting whether the data in the target application resource table is updated or not.
According to the resource acquisition method, when the data in the target application resource table is updated, the first device can automatically send the increment data in the target application resource table to the database of the resource demand party, manual configuration is not needed, and operation of a user is further simplified.
Next, description will be made taking an example in which an execution subject is a second device (resource catalog management platform), in particular:
Fig. 8 is a flowchart of a resource acquisition method according to another embodiment. As shown in fig. 8, the method may include:
s501, receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party.
Specifically, the target application resource table is a resource table subscribed by the resource requiring party, and the resource table can be a administrative information resource table, an educational information resource table or other types of information resource tables. The identifier of the target application resource table may be a name of the target application resource table, an index of the target application resource table, a path of the target application resource table, or the like, which is not limited in this embodiment. The resource-requiring party information may include a database identification of the resource-requiring party, and may also include a data table identification of the resource-requiring party. When the resource demand party has a resource subscription demand, the second device can acquire the identification of the target application resource table and the information of the resource demand party through the operation of the resource demand party on the subscription control, and generate a resource application request according to the identification of the target application resource table and the information of the resource demand party.
S502, sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
An interface for communication between the first device and the second device may be set in advance, and optionally, the interface may be rest pi. In this way, the second device may send the resource application request to the first device through the preset interface.
According to the resource acquisition method provided by the embodiment, the second device can send the resource application request of the user to the first device through the preset interface, so that the first device acquires the target application resource table from the database of the resource provider according to the identification of the target application resource table included in the resource application request, and issues the target application resource table to the database of the resource requiring party based on the information of the resource requiring party included in the resource application request. Because the communication interface is preset between the first equipment and the second equipment, the second equipment can send the related parameters of resource exchange to the first equipment through the preset interface after a user only needs to initiate a resource application request on the second equipment, so that the acquisition of resources required by the user is automatically completed, the user is not required to operate different resource platforms and understand the technical parameters of each resource platform, and the operation of the user is greatly simplified.
For the convenience of understanding of those skilled in the art, the process of acquiring resources will be described below by taking interaction between the first device and the second device as an example, and as shown in fig. 9, the method includes:
s601, the second device receives a resource application request input by a user.
S602, the second device sends a resource application request to the first device through a preset interface.
S603, the first device receives a resource application request sent by the second device through a preset interface.
The resource application request comprises the identification of the target application resource table and the information of the resource demander.
S604, the first device obtains the target application resource table from the database of the resource provider according to the identification of the target application resource table.
S605, the first device issues a target application resource table to a database of the resource demand party according to the information of the resource demand party.
Specifically, as an alternative embodiment, when the resource demander information includes a database identifier of the resource demander, S605 may include: and adding the target application resource table into the database of the resource demand party according to the database identification of the resource demand party.
As another alternative embodiment, when the resource demander information includes a data table identification of the resource demander, the above S605 may include: acquiring first field information contained in a target application resource table; acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side; establishing a field mapping relation between a target application resource table and a data table of a resource requiring party according to the first field information and the second field information; and according to the field mapping relation, correspondingly adding the data in the target application resource table into the data table of the resource demander.
Optionally, the resource application request further includes a resource exchange frequency, and after S605, the method further includes: the first equipment acquires incremental data in a target application resource table according to the resource exchange frequency, and transmits the incremental data to a database of a resource demand party.
Optionally, after S605 above, the method further includes: when the first device determines that the data in the target application resource table is updated, the first device acquires the incremental data in the target application resource table and issues the incremental data to a database of the resource requiring party.
It should be understood that, although the steps in the flowcharts of fig. 2 to 9 are sequentially shown as indicated by arrows, these steps are not necessarily sequentially performed in the order indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps of fig. 2-9 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor does the order in which the sub-steps or stages are performed necessarily occur in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps or stages of other steps.
With continued reference to fig. 10, when the resource demander initiates a resource subscription procedure through the resource catalog platform 10, the resource catalog management platform 10 sends subscription parameters (the identifier of the target application resource table and the information of the resource demander) to the data exchange platform 11 through a preset interface, the data exchange platform 11 acquires the target application resource table from the data pre-database 12 of the resource provider according to the identifier of the target application resource table, and issues the target application resource table to the data pre-database 13 of the resource demander through https (Hypertext Transfer Protocol over Secure Socket Layer, hypertext transfer security protocol) in a fragmentation transmission mode according to the information of the resource demander, thereby completing the resource acquisition process. The data in the data pre-database of the resource provider is extracted from the service database of the resource provider.
Fig. 11 is a schematic structural diagram of a resource obtaining device according to an embodiment. The apparatus is integrated in a first device, as shown in fig. 11, and may include: a receiving module 20, a first acquiring module 21 and a first processing module 22.
Specifically, the receiving module 20 is configured to receive, through a preset interface, a resource application request sent by the second device, where the resource application request includes an identifier of a target application resource table and information of a resource demander;
The first obtaining module 21 is configured to obtain the target application resource table from a database of a resource provider according to the identifier;
the first processing module 22 is configured to issue the target application resource table to a database of the resource demander according to the resource demander information.
Optionally, when the resource demander information includes a database identifier of the resource demander, the first processing module 22 is specifically configured to add the target application resource table to the database of the resource demander according to the database identifier of the resource demander.
Optionally, when the resource demander information includes a data table identifier of the resource demander, the first processing module 22 is specifically configured to obtain first field information included in the target application resource table; acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side; establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information; and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
The resource obtaining device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 12 is a schematic structural diagram of a resource obtaining apparatus according to another embodiment. On the basis of the foregoing embodiment, as an optional implementation manner, the resource application request further includes a resource exchange frequency, as shown in fig. 12, and the apparatus further includes: a second acquisition module 23 and a second processing module 24.
Specifically, the second obtaining module 23 is configured to obtain, according to the resource exchange frequency, incremental data in the target application resource table after the first processing module 22 issues the target application resource table to a database of a resource requiring party according to the resource requiring party information;
the second processing module 24 is configured to issue the incremental data into a database of the resource demander.
The resource obtaining device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
As another alternative embodiment, as shown in fig. 13, the apparatus further includes: a third acquisition module 25 and a third processing module 26.
Specifically, the third obtaining module 25 is configured to obtain, when the data in the target application resource table is updated after the first processing module 22 issues the target application resource table to the database of the resource requiring party according to the information of the resource requiring party, incremental data in the target application resource table;
the third processing module 26 is configured to issue the incremental data into a database of the resource demander.
Optionally, the method for obtaining the incremental data in the target application resource table includes: and acquiring the increment data in the target application resource table in any one of a timestamp increment mode, a flag bit increment mode, a trigger increment mode, an MD5 increment comparison mode, a full-scale mode and a snapshot increment comparison mode.
Optionally, the interface is rest pi.
The resource obtaining device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
Fig. 14 is a schematic structural diagram of a resource obtaining apparatus according to another embodiment. The apparatus is integrated with a second device, as shown in fig. 14, and may include: a receiving module 30 and a transmitting module 31.
Specifically, the receiving module 30 is configured to receive a resource application request input by a user, where the resource application request includes an identifier of a target application resource table and information of a resource demander;
the sending module 31 is configured to send the resource application request to the first device through a preset interface, where the resource application request is configured to instruct the first device to obtain, according to the identifier, the target application resource table from a database of a resource provider, and issue, according to the information of the resource requester, the target resource application table to the database of the resource requester.
Optionally, the interface is rest pi.
The resource obtaining device provided in this embodiment may execute the above method embodiment, and its implementation principle and technical effects are similar, and are not described herein again.
In one embodiment, a resource acquisition system is provided, as shown in fig. 15, comprising: the first device 40 and the second device 41, wherein the first device 40 communicates with the second device 41 through a preset interface.
It should be noted that, the description of the first device 40 and the second device 41 may refer to the description in the above embodiment, and this embodiment is not repeated here.
In one embodiment, a computer device is provided, which may be a resource catalog management platform or a data exchange platform, and the internal structure diagram may be as shown in fig. 16. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database of the computer device is used to store data generated during the acquisition of the resource. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by a processor, implements a method of resource acquisition.
It will be appreciated by those skilled in the art that the structure shown in fig. 16 is merely a block diagram of a portion of the structure associated with the present application and is not limiting of the computer device to which the present application is applied, and that a particular computer device may include more or fewer components than shown, or may combine certain components, or have a different arrangement of components.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
and according to the information of the resource demand party, the target application resource table is issued to a database of the resource demand party.
In one embodiment, when the resource-requiring party information includes a database identification of the resource-requiring party, the processor when executing the computer program further performs the steps of: and adding the target application resource table into the database of the resource requiring party according to the database identification of the resource requiring party.
In one embodiment, when the resource-requiring party information includes a data table identification of the resource-requiring party, the processor when executing the computer program further performs the steps of: acquiring first field information contained in the target application resource table; acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side; establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information; and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
In one embodiment, the resource application request further includes a resource exchange frequency, and the processor when executing the computer program further performs the steps of: acquiring incremental data in the target application resource table according to the resource exchange frequency; and the incremental data are issued to a database of the resource demander.
In one embodiment, the resource application request further includes a resource exchange frequency, and the processor when executing the computer program further performs the steps of: when the data in the target application resource table is updated, acquiring incremental data in the target application resource table; and the incremental data are issued to a database of the resource demander.
Optionally, the method for obtaining the incremental data in the target application resource table includes: and acquiring the increment data in the target application resource table in any one of a timestamp increment mode, a flag bit increment mode, a trigger increment mode, an MD5 increment comparison mode, a full-scale mode and a snapshot increment comparison mode.
Optionally, the interface is rest pi.
In one embodiment, a computer device is provided comprising a memory and a processor, the memory having stored therein a computer program, the processor when executing the computer program performing the steps of:
Receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
and sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
Optionally, the interface is rest pi.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
and according to the information of the resource demand party, the target application resource table is issued to a database of the resource demand party.
In one embodiment, when the resource-requiring party information includes a database identification of the resource-requiring party, the computer program when executed by the processor further performs the steps of: and adding the target application resource table into the database of the resource requiring party according to the database identification of the resource requiring party.
In one embodiment, when the resource-requiring party information includes a data table identification of the resource-requiring party, the computer program when executed by the processor further performs the steps of: acquiring first field information contained in the target application resource table; acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side; establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information; and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
In one embodiment, the resource application request further includes a resource exchange frequency, and the computer program when executed by the processor further performs the steps of: acquiring incremental data in the target application resource table according to the resource exchange frequency; and the incremental data are issued to a database of the resource demander.
In one embodiment, the resource application request further includes a resource exchange frequency, and the computer program when executed by the processor further performs the steps of: when the data in the target application resource table is updated, incremental data in the target application resource table is acquired; and the incremental data are issued to a database of the resource demander.
Optionally, the method for obtaining the incremental data in the target application resource table includes: and acquiring the increment data in the target application resource table in any one of a timestamp increment mode, a flag bit increment mode, a trigger increment mode, an MD5 increment comparison mode, a full-scale mode and a snapshot increment comparison mode.
Optionally, the interface is rest pi.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
and sending the resource application request to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target resource application table to the database of the resource requester according to the information of the resource requester.
Optionally, the interface is rest pi.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above-described embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above-described embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The above examples merely represent a few embodiments of the present application, which are described in more detail and are not to be construed as limiting the scope of the invention. It should be noted that modifications and improvements can be made by those skilled in the art without departing from the spirit of the present application, which falls within the scope of the present application. Accordingly, the scope of protection of the present application is subject to the appended claims.

Claims (9)

1. The resource acquisition method is characterized by being applied to first equipment and comprising the following steps of:
receiving a resource application request sent by a second device through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
according to the identification, acquiring the target application resource table from a database of a resource provider;
According to the information of the resource demand side, the target application resource table is issued to a database of the resource demand side;
the resource application request also comprises resource exchange frequency;
after the target application resource table is issued to the database of the resource demand party according to the resource demand party information, the method further comprises the following steps:
acquiring incremental data in the target application resource table according to the resource exchange frequency;
the incremental data are issued to a database of a resource requiring party;
before the incremental data in the target application resource table is obtained, the method further comprises:
detecting whether the data in the target application resource table is updated or not;
when the data in the target application resource table is updated, incremental data in the target application resource table is acquired;
the incremental data are issued to a database of a resource requiring party;
the resource demand side information comprises a database identifier of a resource demand side and a data table identifier of the resource demand side;
when the resource requiring party information includes a database identifier of the resource requiring party, the issuing the target application resource table to the database of the resource requiring party according to the resource requiring party information includes:
According to the database identification of the resource demand side, adding the target application resource table into the database of the resource demand side;
when the resource demander information includes a data table identifier of the resource demander, the issuing the target application resource table to the database of the resource demander includes:
acquiring first field information contained in the target application resource table;
acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side;
establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information;
and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
2. The method of claim 1, wherein the means for obtaining incremental data in the target application resource table comprises: and acquiring the increment data in the target application resource table in any one of a timestamp increment mode, a flag bit increment mode, a trigger increment mode, a message digest algorithm fifth version MD5 increment comparison mode, a full-quantity mode and a snapshot increment comparison mode.
3. The method of claim 1, wherein the interface is a representational state transfer application programming interface rest pi.
4. The resource acquisition method is characterized by being applied to the second equipment and comprising the following steps:
receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
the resource application request is sent to first equipment through a preset interface, wherein the resource application request is used for indicating the first equipment to acquire the target application resource table from a database of a resource provider according to the identification, and the target application resource table is issued to the database of the resource provider according to the information of the resource provider;
the resource application request also comprises resource exchange frequency;
after the target application resource table is issued to the database of the resource demand party according to the resource demand party information, the method further comprises the following steps:
the first equipment acquires incremental data in the target application resource table according to the resource exchange frequency;
the incremental data are issued to a database of a resource requiring party;
Before the first device obtains the incremental data in the target application resource table, the method further includes: detecting whether the data in the target application resource table is updated or not;
when a first device determines that the data in the target application resource table is updated, the first device acquires incremental data in the target application resource table;
the incremental data are issued to a database of a resource requiring party;
the resource demand side information comprises a database identifier of a resource demand side and a data table identifier of the resource demand side;
when the resource demand side information includes a database identifier of a resource demand side, the first device issues the target application resource table to the database of the resource demand side according to the resource demand side information, including:
according to the database identification of the resource demand side, adding the target application resource table into the database of the resource demand side;
when the resource demand side information includes a data table identifier of the resource demand side, the first device issues the target application resource table to a database of the resource demand side according to the resource demand side information, including:
acquiring first field information contained in the target application resource table;
Acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side;
establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information;
and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
5. The method of claim 4, wherein the interface is a representational state transfer application programming interface rest pi.
6. A resource acquisition device, integrated in a first device, comprising:
the receiving module is used for receiving a resource application request sent by the second equipment through a preset interface, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
the first acquisition module is used for acquiring the target application resource table from a database of a resource provider according to the identification;
the first processing module is used for issuing the target application resource table to a database of a resource demand party according to the information of the resource demand party;
The resource application request also comprises resource exchange frequency;
the second acquisition module is used for acquiring incremental data in the target application resource table according to the resource exchange frequency after the first processing module issues the target application resource table into a database of a resource demand party according to the resource demand party information;
the second processing module is used for transmitting the incremental data to a database of a resource requiring party;
before the incremental data in the target application resource table is obtained, the method further comprises: detecting whether the data in the target application resource table is updated or not;
the third acquisition module is used for acquiring incremental data in the target application resource table when the data in the target application resource table is updated;
the third processing module is used for issuing the incremental data to a database of a resource requiring party;
the resource demand side information comprises a database identifier of a resource demand side and a data table identifier of the resource demand side;
when the resource demand side information comprises a database identifier of a resource demand side, a first processing module is specifically configured to add the target application resource table to a database of the resource demand side according to the database identifier of the resource demand side;
When the resource demand side information comprises a data table identifier of a resource demand side, a first processing module is specifically configured to obtain first field information contained in the target application resource table;
acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side;
establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information;
and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
7. A resource acquisition device, integrated in a second device, comprising:
the receiving module is used for receiving a resource application request input by a user, wherein the resource application request comprises an identification of a target application resource table and information of a resource requiring party;
the sending module is used for sending the resource application request to the first device through a preset interface, wherein the resource application request is used for indicating the first device to acquire the target application resource table from a database of a resource provider according to the identification, and issuing the target application resource table to the database of the resource requester according to the information of the resource requester;
The resource application request also comprises resource exchange frequency;
the second acquisition module is used for acquiring incremental data in the target application resource table according to the resource exchange frequency by the first equipment after the first processing module issues the target application resource table into a database of a resource demand party according to the resource demand party information;
the second processing module is used for transmitting the incremental data to a database of a resource requiring party;
before the first device obtains the incremental data in the target application resource table, the method further includes: detecting whether the data in the target application resource table is updated or not;
the third acquisition module is used for acquiring incremental data in the target application resource table when the first device determines that the data in the target application resource table is updated;
the third processing module is used for issuing the incremental data to a database of a resource requiring party;
the resource demand side information comprises a database identifier of a resource demand side and a data table identifier of the resource demand side;
when the resource demand side information includes a database identifier of a resource demand side, the first device issues the target application resource table to the database of the resource demand side according to the resource demand side information, including:
According to the database identification of the resource demand side, adding the target application resource table into the database of the resource demand side;
when the resource demand side information includes a data table identifier of the resource demand side, the first device issues the target application resource table to a database of the resource demand side according to the resource demand side information, including:
acquiring first field information contained in the target application resource table;
acquiring second field information contained in a data table of the resource demand side according to the data table identification of the resource demand side;
establishing a field mapping relation between the target application resource table and the data table of the resource requiring party according to the first field information and the second field information;
and correspondingly adding the data in the target application resource table into a data table of the resource requiring party according to the field mapping relation.
8. A system for acquiring resources, comprising: the device comprises a first device and a second device, wherein the first device is communicated with the second device through a preset interface;
the first device for performing the method of any of the preceding claims 1 to 3;
The second device being adapted to perform the method of claim 4 or 5.
9. 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 the steps of the method according to any one of claims 1 to 5.
CN201911121020.3A 2019-11-15 2019-11-15 Resource acquisition method, device, system and storage medium Active CN110851458B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911121020.3A CN110851458B (en) 2019-11-15 2019-11-15 Resource acquisition method, device, system and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911121020.3A CN110851458B (en) 2019-11-15 2019-11-15 Resource acquisition method, device, system and storage medium

Publications (2)

Publication Number Publication Date
CN110851458A CN110851458A (en) 2020-02-28
CN110851458B true CN110851458B (en) 2024-02-09

Family

ID=69601398

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911121020.3A Active CN110851458B (en) 2019-11-15 2019-11-15 Resource acquisition method, device, system and storage medium

Country Status (1)

Country Link
CN (1) CN110851458B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111985765B (en) * 2020-07-06 2024-04-05 招联消费金融股份有限公司 Method, device, equipment and storage medium for determining resource provider
CN112597175A (en) * 2020-12-15 2021-04-02 京东方科技集团股份有限公司 Data docking method, system, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593422A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Virtual access management method of heterogeneous database
CN106844390A (en) * 2015-12-07 2017-06-13 北京航天长峰科技工业集团有限公司 A kind of inter-sectional data resource cut-in method
WO2018153209A1 (en) * 2017-02-23 2018-08-30 腾讯科技(深圳)有限公司 Method for transferring resource value, and server, system and storage medium
CN109325068A (en) * 2018-08-10 2019-02-12 北京搜狐新媒体信息技术有限公司 A kind of method for interchanging data and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103593422A (en) * 2013-11-01 2014-02-19 国云科技股份有限公司 Virtual access management method of heterogeneous database
CN106844390A (en) * 2015-12-07 2017-06-13 北京航天长峰科技工业集团有限公司 A kind of inter-sectional data resource cut-in method
WO2018153209A1 (en) * 2017-02-23 2018-08-30 腾讯科技(深圳)有限公司 Method for transferring resource value, and server, system and storage medium
CN109325068A (en) * 2018-08-10 2019-02-12 北京搜狐新媒体信息技术有限公司 A kind of method for interchanging data and device

Also Published As

Publication number Publication date
CN110851458A (en) 2020-02-28

Similar Documents

Publication Publication Date Title
CN108833521B (en) Message pushing method, device, system, computer equipment and storage medium
CN108769212B (en) Data synchronization method and device, computer equipment and storage medium
CN106843828B (en) Interface display and loading method and device
US11379412B2 (en) Enabling data replication processes between heterogeneous storage systems
US20170371943A1 (en) Data transfer between storage systems using data fingerprints
CN105978873B (en) Customized equipment registration method and device
CN109474456B (en) Configuration data processing method, device, computer equipment and storage medium
CN110851458B (en) Resource acquisition method, device, system and storage medium
CN109460252B (en) Configuration file processing method and device based on git and computer equipment
CN110602165B (en) Government affair data synchronization method, device, system, computer equipment and storage medium
CN111399756A (en) Data storage method, data downloading method and device
CN110597714B (en) Test method and device of kafka message, computer equipment and storage medium
US20140373067A1 (en) Electronic Device, Method, and Computer Program Product
US20200153889A1 (en) Method for uploading and downloading file, and server for executing the same
CN108512948B (en) Address book updating method and device, computer equipment and storage medium
CN111327680B (en) Authentication data synchronization method, device, system, computer equipment and storage medium
CN109766084B (en) Customized development method and device for payment application, computer equipment and storage medium
WO2021114621A1 (en) Artificial intelligence-based data replacement method, apparatus, computer device, and medium
CN111124932B (en) Scheme verification method, system, device, computer equipment and storage medium
US20200065508A1 (en) Device and method to share image received from user terminal with other user terminals
EP2874069A1 (en) Method and apparatus for managing personal information in communication system
JP6854491B2 (en) File transfer system, file transfer methods and programs
CN111614743B (en) File detection method and device, computer equipment and storage medium
CN113076151B (en) Application program interaction method, device, computer equipment and storage medium
CN110209504B (en) Data copying method, data pasting method, data processing method and system

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