CN110975293A - Method, device, server and medium for establishing resource reference relation table - Google Patents
Method, device, server and medium for establishing resource reference relation table Download PDFInfo
- Publication number
- CN110975293A CN110975293A CN201911206951.3A CN201911206951A CN110975293A CN 110975293 A CN110975293 A CN 110975293A CN 201911206951 A CN201911206951 A CN 201911206951A CN 110975293 A CN110975293 A CN 110975293A
- Authority
- CN
- China
- Prior art keywords
- resource
- identifier
- resources
- identifier corresponding
- establishing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 34
- 230000001419 dependent effect Effects 0.000 claims description 7
- 230000002457 bidirectional effect Effects 0.000 abstract description 11
- 230000000694 effects Effects 0.000 abstract description 6
- 238000010586 diagram Methods 0.000 description 9
- 230000003287 optical effect Effects 0.000 description 6
- 238000012545 processing Methods 0.000 description 5
- 230000006870 function Effects 0.000 description 4
- 238000012800 visualization Methods 0.000 description 3
- 238000004458 analytical method Methods 0.000 description 2
- 239000013307 optical fiber Substances 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000000644 propagated effect Effects 0.000 description 2
- 238000003491 array Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000011161 development Methods 0.000 description 1
- 238000013507 mapping Methods 0.000 description 1
- 230000008707 rearrangement Effects 0.000 description 1
- 239000004065 semiconductor Substances 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
Images
Classifications
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F13/00—Video games, i.e. games using an electronically generated display having two or more dimensions
- A63F13/60—Generating or modifying game content before or while executing the game program, e.g. authoring tools specially adapted for game development or game-integrated level editor
-
- A—HUMAN NECESSITIES
- A63—SPORTS; GAMES; AMUSEMENTS
- A63F—CARD, BOARD, OR ROULETTE GAMES; INDOOR GAMES USING SMALL MOVING PLAYING BODIES; VIDEO GAMES; GAMES NOT OTHERWISE PROVIDED FOR
- A63F2300/00—Features of games using an electronically generated display having two or more dimensions, e.g. on a television screen, showing representations related to the game
- A63F2300/60—Methods for processing data by generating or executing the game program
- A63F2300/6009—Methods for processing data by generating or executing the game program for importing or creating game content, e.g. authoring tools during game development, adapting content to different platforms, use of a scripting language to create content
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses a method, a device, a server and a medium for establishing a resource reference relation table, wherein the method comprises the following steps: calling a resource identifier reading module to obtain a resource identifier corresponding to each resource; calling a resource reading module to read a reference identifier corresponding to each resource; and establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier. The technical scheme of the embodiment of the invention solves the technical problems that in the prior art, when the quantity of resources is large, the efficiency of analyzing and managing a large quantity of resource reference relations is low, and further the searching for the reference resource relations is slow, so that the working efficiency is low, realizes the establishment of the bidirectional reference relation table among the resources, quickly, conveniently and efficiently searches for the target resources based on the bidirectional reference relation table, improves the resource calling efficiency, and further improves the technical effect of user experience.
Description
Technical Field
The embodiment of the invention relates to the technical field of computers, in particular to a method, a device, a server and a medium for establishing a resource reference relation table.
Background
When games are developed using Unity, there are a large number of resources in the project. The resources refer to various types of files such as models, maps, animations, presets, codes and the like used in the game. In the development process, it is often necessary to sort unused resources, or to view reference relationships between resources, or to call up resources of reference relationships.
But Unity only provides a forward reference relationship lookup interface, i.e., looking up other resources that a resource references. It is not convenient to perform a reverse lookup, i.e. to find which resources a certain resource is referenced by. That is, only the referenced resource can be looked up in the forward direction, but the relied-on resource cannot be looked up in the reverse direction. In the process of practical application, although all resources which are quoted in the forward direction can be obtained through the quote relationship search interface provided by the Unity, the resource quantity is large, the efficiency of analyzing and managing a large number of resource quote relationships is low, and further the technical problem that the work efficiency is low due to the fact that the quote relationship is slow to search exists.
Disclosure of Invention
The invention provides a method, a device, a server and a medium for establishing a resource reference relation table, which are used for realizing the technical effects of establishing the resource reference relation table, bidirectionally searching resources based on the resource reference relation table and improving the resource searching efficiency.
In a first aspect, an embodiment of the present invention provides a method for establishing a resource reference relationship table, where the method includes:
calling a resource identifier reading module to obtain a resource identifier corresponding to each resource;
calling a resource reading module to read a reference identifier corresponding to each resource;
and establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when a target resource is searched, the target resource and the resource associated with the target resource are searched based on the resource reference relation table. .
In a second aspect, an embodiment of the present invention further provides an apparatus for establishing a resource reference relationship table, where the apparatus includes:
the resource identifier reading module is used for calling the resource identifier reading module to acquire the resource identifier corresponding to each resource;
the reference identifier reading module is used for calling the resource reading module and reading the reference identifier corresponding to each resource;
and the resource reference relation table establishing module is used for establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier so as to search the target resource and the resource associated with the target resource based on the resource reference relation table when the target resource is searched.
In a third aspect, an embodiment of the present invention further provides a server, where the server includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement a method for establishing a resource reference relationship table according to any one of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention further provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform a method of establishing a resource reference relationship table according to any one of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, the resource identifier corresponding to each resource is obtained by calling the resource identifier reading module; calling a resource reading module to read a reference identifier corresponding to each resource; the resource reference relation table is established based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when the target resource is searched, the target resource and the resource related to the target resource are searched based on the resource reference relation table, the technical problems that in the prior art, when the quantity of the resources is large, the efficiency of analyzing and managing a large number of resource reference relations is low, the relation of searching the reference resource is slow, and the working efficiency is low are solved, the establishment of the bidirectional reference relation table among the resources is realized, the target resource is quickly, conveniently and efficiently searched based on the bidirectional reference relation table, the resource calling efficiency is improved, and the technical effect of user experience is improved.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flowchart of a method for establishing a resource reference relationship table according to an embodiment of the present invention;
FIG. 2 is a schematic block diagram illustrating a module for establishing a resource reference relationship according to an embodiment of the present invention;
fig. 3 is another schematic flowchart of a method for establishing a resource reference relationship table according to a second embodiment of the present invention;
fig. 4 is an architecture diagram for establishing a resource reference relationship table according to a second embodiment of the present invention;
fig. 5 is a schematic structural diagram of an apparatus for establishing a resource reference relationship table according to a third embodiment of the present invention;
fig. 6 is a schematic structural diagram of a server according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a flowchart illustrating a method for establishing a resource reference relationship table according to an embodiment of the present invention, where the embodiment is applicable to determining a dependency relationship between resources, establishing a resource dependency relationship table, and quickly searching for a resource based on the resource dependency relationship table.
As shown in fig. 1, the method of the present embodiment includes:
s110, calling a resource identifier reading module to obtain a resource identifier corresponding to each resource.
Wherein, the resource identifier reading module can be understood as a module for obtaining the resource identifier corresponding to each resource. The resource identifier can be understood as a unique identifier corresponding to each resource.
Specifically, when the resource reference relationship table is established, the resource identifier corresponding to each resource may be obtained first. And calling a resource identifier reading module, and traversing the metafile corresponding to each resource to acquire the resource identifier corresponding to each resource.
Optionally, the resource identifier reading module is invoked to read the metafile corresponding to each resource, and obtain the resource identifier corresponding to each resource from the metafile.
Specifically, a resource identifier reading module is called, the metafile of each resource is traversed, and the resource identifier corresponding to each resource is acquired from the metafile.
Illustratively, referring to fig. 2, the resource metafile retrieving module, i.e., the resource identifier reading module, traverses each resource metafile to obtain the storage resource guid, i.e., the identifier, corresponding to each resource.
S120, calling a resource reading module, and reading the reference identifier corresponding to each resource.
The resource reading module can be understood as a module for reading contents in the resource, and optionally, reads text contents of the resource. A reference identifier may be understood as an identifier in the resource file that references other resources, and optionally resource identifiers corresponding to other resources.
Specifically, a resource reading module is called, all contents in the resources are read, identifiers of other resources referenced by each resource are obtained, and the identifiers of the other resources are used as reference identifiers, that is, each resource has a unique resource identifier corresponding to the resource identifier, but at least one or no reference identifier corresponding to the resource identifier exists.
Illustratively, with continued reference to FIG. 2, the resource file retrieval module, i.e., the resource reading module, reads the reference identifiers of the respective resources that reference the other resources.
S130, establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, and when the target resource is searched, searching the target resource and the resource related to the target resource based on the resource reference relation table.
Specifically, in determining the resource identifier corresponding to each resource, the reference identifier referring to other resources, i.e., the identifier depending on other resources, a binding relationship between the resource, the resource identifier, and the reference identifier referring to other resources by the resource can be established. When the target resource is called, the reference identifier for referring to other resources can be obtained by the resource identifier corresponding to the target resource, and then other related resources are obtained.
Illustratively, continuing to refer to fig. 3, a binding relationship among the current resource, the resource identifier corresponding to the current resource, and the reference identifier that the current resource references other resources is established, and the binding relationship is stored in the storage module, for example, the resource identifier of the current resource is 1, three other resources are referenced, and correspondingly, the identifiers that reference other resources are 2, 3, and 4, respectively, that is, the reference identifiers are 2, 3, and 4, and a correspondence table among the resource, the resource identifier, and the reference resource identifier that the current resource identifier is 1 can be established.
According to the technical scheme of the embodiment of the invention, the resource identifier corresponding to each resource is obtained by calling the resource identifier reading module; calling a resource reading module to read a reference identifier corresponding to each resource; the resource reference relation table is established based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when the target resource is searched, the target resource and the resource related to the target resource are searched based on the resource reference relation table, the technical problems that in the prior art, when the quantity of the resources is large, the efficiency of analyzing and managing a large number of resource reference relations is low, the relation of searching the reference resource is slow, and the working efficiency is low are solved, the establishment of the bidirectional reference relation table among the resources is realized, the target resource is quickly, conveniently and efficiently searched based on the bidirectional reference relation table, the resource calling efficiency is improved, and the technical effect of user experience is improved.
On the basis of the above technical solution, after obtaining the reference identifier that each resource references other resources, the method is further configured to: and binding the reference identifiers corresponding to the resources with the current resource identifier, and storing the current resource identifier into the reference list so as to establish a resource reference relation table based on the reference list.
It is understood that after the resource reading module is called to obtain the referenced resource identifier corresponding to each resource, the referenced resource identifier may be bound with the current resource identifier, and the referenced resource identifier and the current resource identifier are stored in the reference list, so as to establish a mapping relationship table between the resource identifier, the resource referenced identifier, and the resource corresponding to each resource based on the reference list.
In this embodiment, a relationship table establishing module may be called to establish a correspondence table among a resource identifier corresponding to a resource, a reference list corresponding to the resource identifier, and resource information as a resource reference relationship table.
After the resource reference relationship table is established, when the target resource needs to be searched, the dependent resource having the dependent relationship with the target resource can be searched based on the resource reference relationship table.
Specifically, when searching for a target resource, a resource identifier corresponding to the target resource may be determined, a pre-established resource reference relationship table is searched based on the resource identifier corresponding to the target resource, a reference identifier having a dependency relationship with the resource identifier is determined, and a reference resource, that is, a dependent resource having a dependency relationship with the target resource, is searched according to the reference identifier.
Example two
As a preferred embodiment of the foregoing embodiment, fig. 3 is another schematic flow chart of a method for establishing a resource reference relationship table according to a second embodiment of the present invention. As shown in fig. 3, the method includes:
and S310, starting.
Specifically, the resource reference relationship table is established.
S320, acquiring a metafile list of all resources through an operating system interface.
Specifically, the metafile list of all resources is obtained through an operating system interface.
S330, the metafiles of all the resources are scanned in parallel.
That is, the resource identifier reading module is invoked to scan the metafiles of all resources in parallel.
Specifically, a resource identifier reading module is called to read the text content of the metafile, the resource identifier guid of each resource is obtained through regular expression, a corresponding relation table between the resource identifier and the resource information is established, and the resource identifier guid and the resource information are added into the corresponding relation table.
S340, acquiring a file list of all resources through an operating system interface.
Specifically, a file list of all resources is obtained through an operating system interface.
It should be noted that the file list of all resources acquired through the operating system interface may filter the file types to be retrieved by the suffix name of each file.
That is, all resources are acquired, and a reference identifier corresponding to each resource is determined based on each resource.
And S350, scanning all resource files in parallel.
That is, the resource reading module is called, all the resource files are traversed, and all the contents in the resource files are traversed.
Specifically, a resource reading module is called to read the text content of the resource file, and all guids appearing in the file are obtained through a regular expression, that is, a reference identifier guid of each resource referring to other resources. The reference resource identifier, the current resource, and the current resource identifier are added to the resource reference list, that is, the pre-established correspondence table, and the pre-established correspondence table may be used as the resource reference relationship table, that is, the resource reference relationship table includes the resource, the resource identifier of the corresponding resource, and the reference identifier of the current resource referencing other resources.
And S360, completing establishment of the resource reference relation database.
And establishing a corresponding relation among the resources, the resource identifiers and the reference identifiers corresponding to the resources, and storing the established resource reference relation table into a database, namely completing the establishment of the resource reference relation database.
Illustratively, ten resources are included in a 3D video game, and resource 1 depends on resources 2 and 3, and a binding relationship between resource 1, a resource identifier corresponding to resource 1, and reference identifiers corresponding to reference resources 2 and 3 can be established.
And S370, when the resources are searched, acquiring the target resources and the associated resources based on the resource reference relation database.
Specifically, when the target resource is searched, the target resource and the associated resource associated with the target resource may be obtained by referencing the relational database with the resource.
In the embodiment, all resource reference relation databases are established by developing efficient auxiliary tools, so that bidirectional quick search of resource reference relations is realized. The auxiliary tool obtains the reference relation information among all resources by scanning all resource files in parallel, and establishes a resource reference mesh relation database. After the database is established, the resources which are referred to by a certain resource and the resources which are referred to by the certain resource can be quickly inquired. By using the reference relation data, a visualization tool can be made for viewing the tree structure of resource reference or analyzing and counting the use condition of the resource.
According to the technical scheme of the embodiment of the invention, the resource identifier corresponding to each resource is obtained by calling the resource identifier reading module; calling a resource reading module to read a reference identifier corresponding to each resource; the resource reference relation table is established based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when the target resource is searched, the target resource and the resource related to the target resource are searched based on the resource reference relation table, the technical problems that in the prior art, when the quantity of the resources is large, the efficiency of analyzing and managing a large number of resource reference relations is low, the relation of searching the reference resource is slow, and the working efficiency is low are solved, the establishment of the bidirectional reference relation table among the resources is realized, the target resource is quickly, conveniently and efficiently searched based on the bidirectional reference relation table, the resource calling efficiency is improved, and the technical effect of user experience is improved.
On the basis of the above technical solution, fig. 4 is an architecture diagram for establishing a resource reference relationship provided by the second embodiment of the present invention, and the architecture diagram includes a unity editor, a resource reference analysis tool, a resource reference query tool, and a resource reference visualization tool. In the resource reference process, a resource reference analysis tool can determine reference relationships among resources, a resource reference query tool can determine which resources are referred to, and a resource reference visualization tool can be understood as a tool for visualizing the resource reference relationships.
EXAMPLE III
Fig. 5 is a schematic structural diagram of an apparatus for establishing a resource reference relationship table according to a third embodiment of the present invention, where the apparatus includes: a resource identifier reading module 510, a reference identifier reading module 520, and a resource reference relationship table establishing module 530.
The resource identifier reading module 510 is configured to invoke the resource identifier reading module to obtain a resource identifier corresponding to each resource; a reference identifier reading module 520, configured to invoke the resource reading module, and read a reference identifier corresponding to each resource; a resource reference relationship table establishing module 530, configured to establish a resource reference relationship table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so as to, when receiving a target resource to be searched, search the target resource and the resource associated with the target resource based on the resource reference relationship table.
According to the technical scheme of the embodiment of the invention, the resource identifier corresponding to each resource is obtained by calling the resource identifier reading module; calling a resource reading module to read a reference identifier corresponding to each resource; the resource reference relation table is established based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when the target resource is searched, the target resource and the resource related to the target resource are searched based on the resource reference relation table, the technical problems that in the prior art, when the quantity of the resources is large, the efficiency of analyzing and managing a large number of resource reference relations is low, the relation of searching the reference resource is slow, and the working efficiency is low are solved, the establishment of the bidirectional reference relation table among the resources is realized, the target resource is quickly, conveniently and efficiently searched based on the bidirectional reference relation table, the resource calling efficiency is improved, and the technical effect of user experience is improved.
On the basis of the above technical solution, the resource identifier reading module is further configured to:
and calling a resource identifier reading module, reading the metafile corresponding to each resource, and acquiring the resource identifier corresponding to each resource from the metafile.
On the basis of the above technical solutions, the reference identifier reading module is further configured to:
and calling a resource reading module to read the text content of each resource file in parallel and acquiring the reference identifier of each resource for referencing other resources.
On the basis of the above technical solutions, the reference identifier reading module, after being configured to obtain the reference identifier that each resource references other resources, is further configured to:
and binding the reference identifiers corresponding to the resources with the current resource identifier, and storing the current resource identifier into the reference list so as to establish a resource reference relation table based on the reference list.
On the basis of the above technical solutions, the call relation table establishing module is further configured to:
and the calling relation table establishing module is used for establishing a corresponding relation table among the resource identifier corresponding to the resource, the reference list corresponding to the resource identifier and the resource information as a resource reference relation table.
On the basis of the above technical solutions, the resource searching module is configured to search, when searching for a target resource, a dependent resource having a dependency relationship with the target resource based on the resource reference relationship table in an uplink and/or a downlink manner.
The device for establishing the resource reference relationship provided by the embodiment of the invention can execute the method for establishing the resource reference relationship table provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the apparatus are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be implemented; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 6 is a schematic structural diagram of a server according to a fourth embodiment of the present invention. FIG. 6 illustrates a block diagram of an exemplary server 60 suitable for use in implementing embodiments of the present invention. The server 60 shown in fig. 6 is only an example, and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in FIG. 6, the server 60 is in the form of a general purpose computing device. The components of server 60 may include, but are not limited to: one or more processors or processing units 601, a system memory 602, and a bus 603 that couples various system components including the system memory 602 and the processing unit 601.
The server 60 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by server 60 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 602 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)604 and/or cache memory 605. The server 60 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 606 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 603 by one or more data media interfaces. Memory 602 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 608 having a set (at least one) of program modules 607 may be stored, for example, in memory 602, such program modules 607 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. The program modules 607 generally perform the functions and/or methods of the described embodiments of the invention.
The server 60 may also communicate with one or more external devices 609 (e.g., keyboard, pointing device, display 610, etc.), with one or more devices that enable a user to interact with the server 60, and/or with any devices (e.g., network card, modem, etc.) that enable the server 60 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 611. Also, the server 60 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN) and/or a public network, such as the Internet) via a network adapter 612. As shown, the network adapter 612 communicates with the other modules of the server 60 via the bus 603. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with the server 60, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 601 executes various functional applications and data processing by running programs stored in the system memory 602, for example, implementing a method for establishing a resource reference relationship table provided by an embodiment of the present invention.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method of establishing a resource reference relationship table.
The method comprises the following steps:
calling a resource identifier reading module to obtain a resource identifier corresponding to each resource;
calling a resource reading module to read a reference identifier corresponding to each resource;
and establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when a target resource is searched, the target resource and the resource associated with the target resource are searched based on the resource reference relation table.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (10)
1. A method for establishing a resource reference relationship table, comprising:
calling a resource identifier reading module to obtain a resource identifier corresponding to each resource;
calling a resource reading module to read a reference identifier corresponding to each resource;
and establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier, so that when a target resource is searched, the target resource and the resource associated with the target resource are searched based on the resource reference relation table.
2. The method of claim 1, wherein invoking the resource identifier reading module to obtain the resource identifier corresponding to each resource comprises:
and calling a resource identifier reading module, reading the metafile corresponding to each resource, and acquiring the resource identifier corresponding to each resource from the metafile.
3. The method of claim 1, wherein said invoking a resource reading module to read a reference identifier corresponding to each resource comprises:
and calling a resource reading module to read the text content of each resource file in parallel and acquiring the reference identifier of each resource for referencing other resources.
4. The method of claim 3, after obtaining the reference identifier that each resource references other resources, further comprising:
and binding the reference identifiers corresponding to the resources with the current resource identifier, and storing the current resource identifier into the reference list so as to establish a resource reference relation table based on the reference list.
5. The method of claim 4, wherein the establishing a resource reference relationship table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier comprises:
and the calling relation table establishing module is used for establishing a corresponding relation table among the resource identifier corresponding to the resource, the reference list corresponding to the resource identifier and the resource information as a resource reference relation table.
6. The method of claim 1, further comprising:
when the target resource is searched, the dependent resource with the dependent relationship with the target resource is searched in an uplink and/or downlink manner based on the resource reference relationship table.
7. An apparatus for building a resource reference relationship table, comprising:
the resource identifier reading module is used for calling the resource identifier reading module to acquire the resource identifier corresponding to each resource;
the reference identifier reading module is used for calling the resource reading module and reading the reference identifier corresponding to each resource;
and the resource reference relation table establishing module is used for establishing a resource reference relation table based on the resource identifier corresponding to each resource and the reference identifier corresponding to the resource identifier so as to search the target resource and the resource associated with the target resource based on the resource reference relation table when the target resource is searched.
8. The apparatus of claim 7, further comprising:
and the resource searching module is used for searching the dependent resources with the dependency relationship with the target resources in an uplink and/or downlink manner based on the resource reference relationship table when the target resources are searched.
9. A server, characterized in that the server comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of establishing a resource reference relationship table as claimed in any one of claims 1-6.
10. A storage medium containing computer-executable instructions for performing the method of establishing a resource reference relationship table of any one of claims 1-6 when executed by a computer processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206951.3A CN110975293A (en) | 2019-11-29 | 2019-11-29 | Method, device, server and medium for establishing resource reference relation table |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911206951.3A CN110975293A (en) | 2019-11-29 | 2019-11-29 | Method, device, server and medium for establishing resource reference relation table |
Publications (1)
Publication Number | Publication Date |
---|---|
CN110975293A true CN110975293A (en) | 2020-04-10 |
Family
ID=70088821
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911206951.3A Pending CN110975293A (en) | 2019-11-29 | 2019-11-29 | Method, device, server and medium for establishing resource reference relation table |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110975293A (en) |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111408142A (en) * | 2020-05-06 | 2020-07-14 | 网易(杭州)网络有限公司 | Method and device for determining object with incidence relation, medium and electronic equipment |
CN111427870A (en) * | 2020-04-15 | 2020-07-17 | 赞同科技股份有限公司 | Resource management method, device and equipment |
CN111857872A (en) * | 2020-07-06 | 2020-10-30 | 珠海西山居移动游戏科技有限公司 | Method, device and readable medium for quickly searching missing resources of Unity3D |
CN113343030A (en) * | 2021-07-07 | 2021-09-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN115208754A (en) * | 2022-06-28 | 2022-10-18 | 深信服科技股份有限公司 | Configuration issuing method and device, computer equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10109027B1 (en) * | 2010-09-01 | 2018-10-23 | Brian T. Stack | Database access and community electronic medical records system |
CN108897551A (en) * | 2018-06-14 | 2018-11-27 | 珠海金山网络游戏科技有限公司 | A kind of generation method and device of quoting resource relational tree |
CN109634613A (en) * | 2018-12-06 | 2019-04-16 | 珠海西山居互动娱乐科技有限公司 | A kind of hand trip installation kit redundant resource inspection method and system |
CN109828776A (en) * | 2018-12-06 | 2019-05-31 | 珠海西山居互动娱乐科技有限公司 | A kind of method and system searching missing resource and supplementing |
CN110147237A (en) * | 2019-05-20 | 2019-08-20 | 深圳市腾讯网域计算机网络有限公司 | A kind of redundant resource minimizing technology and device |
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
-
2019
- 2019-11-29 CN CN201911206951.3A patent/CN110975293A/en active Pending
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10109027B1 (en) * | 2010-09-01 | 2018-10-23 | Brian T. Stack | Database access and community electronic medical records system |
CN108897551A (en) * | 2018-06-14 | 2018-11-27 | 珠海金山网络游戏科技有限公司 | A kind of generation method and device of quoting resource relational tree |
CN109634613A (en) * | 2018-12-06 | 2019-04-16 | 珠海西山居互动娱乐科技有限公司 | A kind of hand trip installation kit redundant resource inspection method and system |
CN109828776A (en) * | 2018-12-06 | 2019-05-31 | 珠海西山居互动娱乐科技有限公司 | A kind of method and system searching missing resource and supplementing |
CN110147237A (en) * | 2019-05-20 | 2019-08-20 | 深圳市腾讯网域计算机网络有限公司 | A kind of redundant resource minimizing technology and device |
CN110262976A (en) * | 2019-06-21 | 2019-09-20 | 深圳市腾讯网域计算机网络有限公司 | Analytic method, device, equipment and the storage medium of game resource file |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111427870A (en) * | 2020-04-15 | 2020-07-17 | 赞同科技股份有限公司 | Resource management method, device and equipment |
CN111427870B (en) * | 2020-04-15 | 2023-09-05 | 赞同科技股份有限公司 | Resource management method, device and equipment |
CN111408142A (en) * | 2020-05-06 | 2020-07-14 | 网易(杭州)网络有限公司 | Method and device for determining object with incidence relation, medium and electronic equipment |
CN111408142B (en) * | 2020-05-06 | 2023-09-08 | 网易(杭州)网络有限公司 | Method and device for determining object with association relationship, medium and electronic equipment |
CN111857872A (en) * | 2020-07-06 | 2020-10-30 | 珠海西山居移动游戏科技有限公司 | Method, device and readable medium for quickly searching missing resources of Unity3D |
CN113343030A (en) * | 2021-07-07 | 2021-09-03 | 湖南快乐阳光互动娱乐传媒有限公司 | Data processing method and device, electronic equipment and computer readable storage medium |
CN115208754A (en) * | 2022-06-28 | 2022-10-18 | 深信服科技股份有限公司 | Configuration issuing method and device, computer equipment and storage medium |
CN115208754B (en) * | 2022-06-28 | 2024-02-23 | 深信服科技股份有限公司 | Configuration issuing method, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108519967B (en) | Chart visualization method and device, terminal and storage medium | |
CN110975293A (en) | Method, device, server and medium for establishing resource reference relation table | |
CN111813804B (en) | Data query method and device, electronic equipment and storage medium | |
US9201700B2 (en) | Provisioning computer resources on a network | |
CN114416667B (en) | Method and device for rapidly sharing network disk file, network disk and storage medium | |
CN110908707B (en) | Resource packaging method, device, server and storage medium | |
CN110908697A (en) | Resource packaging method, device, server and storage medium | |
CN114116065B (en) | Method and device for acquiring topological graph data object and electronic equipment | |
CN113971037A (en) | Application processing method and device, electronic equipment and storage medium | |
CN113051514A (en) | Element positioning method and device, electronic equipment and storage medium | |
CN109033456B (en) | Condition query method and device, electronic equipment and storage medium | |
CN112783887A (en) | Data processing method and device based on data warehouse | |
CN114356962A (en) | Data query method and device, electronic equipment and storage medium | |
CN113010542B (en) | Service data processing method, device, computer equipment and storage medium | |
CN115335821B (en) | Offloading statistics collection | |
CN113962597A (en) | Data analysis method and device, electronic equipment and storage medium | |
CN110633162B (en) | Remote call implementation method and device, computer equipment and storage medium | |
CN114238391A (en) | Data paging query method and device, electronic equipment and storage medium | |
CN111698109A (en) | Method and device for monitoring log | |
CN115114297A (en) | Data lightweight storage and search method and device, electronic equipment and storage medium | |
CN114090514A (en) | Log retrieval method and device for distributed system | |
CN114154468A (en) | Report synthesis method and device, electronic equipment and storage medium | |
CN112364268A (en) | Resource acquisition method and device, electronic equipment and storage medium | |
CN112182085A (en) | Data export method, device, equipment and storage medium | |
CN111782834A (en) | Image retrieval method, device, equipment and computer readable storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20200410 |