CN111125449B - Object information storage method, device and storage medium - Google Patents
Object information storage method, device and storage medium Download PDFInfo
- Publication number
- CN111125449B CN111125449B CN201911346143.7A CN201911346143A CN111125449B CN 111125449 B CN111125449 B CN 111125449B CN 201911346143 A CN201911346143 A CN 201911346143A CN 111125449 B CN111125449 B CN 111125449B
- Authority
- CN
- China
- Prior art keywords
- node
- information
- identifier
- determining
- oid
- 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
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/901—Indexing; Data structures therefor; Storage structures
- G06F16/9027—Trees
Landscapes
- Engineering & Computer Science (AREA)
- Databases & Information Systems (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Data Mining & Analysis (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The application discloses an object information storage method, an object information storage device and a storage medium, and belongs to the technical field of networks. In the application, when storing the object information of the first object, the object identifier of the second object associated with the first object may be obtained, and the object node of the second object is found according to the object identifier of the second object, so as to store the object information of the first object. Because the object identifier in the embodiment of the application can uniquely identify one object, one object can be clearly and unambiguously represented through the object identifier, and on the basis, the relationship between the objects is established and stored according to the object identifier, so that the relationship between the objects can be more clearly represented.
Description
Technical Field
The present application relates to the field of network technologies, and in particular, to a method, an apparatus, and a storage medium for storing object information.
Background
Everything such as real, virtual objects or events in the world can be called objects. For example, a business may be an object, and each department within the business may be an object, and each employee of the business may be an object.
In the related art, an object and a relationship between the object and another object may be described by a plurality of character strings including a specific semantic meaning, and the plurality of character strings are stored as object information of the object. For example, for an employee of enterprise a, the person may be identified by the name of the person and the relationship between the employee and enterprise a may be described by the "member of enterprise a" string.
However, when describing an object by using a character string with a specific semantic meaning, different objects may correspond to the same character string, and thus, when storing the object information, information confusion occurs, and the relationship between the object identifier and the object is unclear.
Disclosure of Invention
The embodiment of the application provides an object information storage method, an object information storage device and a storage medium, which can represent different objects and incidence relations among the different objects more clearly. The technical scheme is as follows:
in one aspect, an object information storage method is provided, and the method includes:
receiving object information of a first object and an object identifier of a second object, wherein the object information comprises the object identifier of the first object and description information of the first object, the first object is associated with the second object, and the object identifier is used for uniquely identifying the corresponding object;
determining an object node of the second object in an object tree according to the object identifier of the second object, wherein the object tree comprises object nodes of a plurality of objects, and each object node is used for representing one object;
and storing the object information of the first object according to the object node of the second object.
In another aspect, there is provided an object information storage apparatus, the apparatus including:
a receiving module, configured to receive object information of a first object and an object identifier of a second object, where the object information includes an object identifier of the first object and description information of the first object, the first object is associated with the second object, and the object identifier is used to uniquely identify the corresponding object;
a determining module, configured to determine an object node of the second object in an object tree according to the object identifier of the second object, where the object tree includes object nodes of multiple objects, and each object node is used to characterize one object;
and the storage module is used for storing the object information of the first object according to the object node of the second object.
In another aspect, an object information storage apparatus is provided, which includes a processor and a memory, where at least one instruction, at least one program, a set of codes, or a set of instructions is stored in the memory, and the instruction, the program, the set of codes, or the set of instructions is loaded and executed by the processor to implement the above-mentioned business processing method.
In another aspect, a computer-readable storage medium is provided, in which at least one instruction, at least one program, a set of codes, or a set of instructions is stored, which is loaded and executed by a processor to implement the above object information storage method.
In another aspect, there is provided a computer program product containing instructions which, when run on a computer, cause the computer to perform the above object information storage method.
The beneficial effects brought by the technical scheme provided by the embodiment of the application at least comprise:
in this embodiment, when storing the object information of the first object, the object identifier of the second object associated with the first object may be obtained, and the object node of the second object is found according to the object identifier of the second object, so as to store the object information of the first object. Because the object identifier in the embodiment of the application can uniquely identify one object, one object can be clearly and unambiguously represented through the object identifier, and on the basis, the relationship between the objects is established and stored according to the object identifier, so that the relationship between the objects can be more clearly represented.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a flowchart of an object information storage method provided in an embodiment of the present application;
fig. 2 is a schematic diagram of an OID hierarchical tree structure provided in an embodiment of the present application;
fig. 3 is a schematic diagram of determining an object node of a second object according to an embodiment of the present disclosure;
fig. 4 is a schematic diagram illustrating establishment of an association relationship between a first object and a third object according to an embodiment of the present application;
FIG. 5 is a schematic information storage diagram of each object in an enterprise information management process according to an embodiment of the present application;
FIG. 6 is a schematic structural diagram of an object information storage apparatus according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of a server for storing object information according to an embodiment of the present application.
Detailed Description
To make the objects, technical solutions and advantages of the present application more clear, embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Before explaining the embodiments of the present application in detail, an application scenario related to the embodiments of the present application will be described.
Currently, in the fields of information security, medical health, network management, and the like, there are a large number of objects and associations between the objects that need to be stored. The object information storage method provided by the embodiment of the application can be used for storing object information of a large number of objects in various fields. For example, in the field of medical care, information of each hospital in a country, information of departments in each hospital, and information of medical care personnel in each department need to be managed and maintained in a unified manner, in such a scenario, different object identifiers may be assigned to each hospital according to the object identifier of the country to which the hospital belongs, and then, object identifiers may be assigned to each department of the corresponding hospital according to the object identifiers of each hospital. Similarly, the medical personnel in each department can also apply for their own object identifier. Thus, one object can be characterized by the object identifier and the description information, the information is stored, and the association relationship between the objects is established by the object identifier and the description information of each object, so that the information management of each medical institution is realized.
For another example, a certain enterprise also needs to manage partial information in the enterprise, member information of each department, and the like. In this case, the object information storage method provided in the embodiments of the present application may also be used to store the object information of each object.
For another example, in an area chain scenario, the blockchain address corresponding to each piece of data on the chain may be described by using an object identifier, and an association relationship formed by the data on each blockchain address during transaction is constructed by using the object identifier and the description information of each blockchain address, so that the flow direction of all pieces of data on the chain can be clearly represented.
Of course, the object information storage method provided in the embodiment of the present application may also be used in object management of other scenarios, and the foregoing are only some exemplary scenarios given in the embodiment of the present application, and do not limit the scenarios applied in the embodiment of the present application.
Next, a method for storing object information provided in the embodiment of the present application will be described.
Fig. 1 is a flowchart of an object information storage method according to an embodiment of the present application. The method may be applied to a computer device, where the computer device may be a terminal or a server, and in the following embodiments, the implementation process of the method is described by taking the computer device as a server as an example.
Referring to fig. 1, the method includes:
step 101: object information of a first object and an object identifier of a second object are received.
In an embodiment of the present application, the first object and the second object may be two associated objects. In one possible case, the second object contains the first object, i.e. the first object may be subordinate to the second object. In addition, the object information of the first object may include an object identifier of the first object and description information of the first object.
The Object Identifier may be an OID (Object Identifier) or an IPv6(Internet Protocol Version 6, Version 6 of the Internet Protocol) address. The description information may include attribute information for characterizing attributes of the corresponding object, for example, a name of the corresponding object. In addition, the description information may further include object identifiers of other objects and relationship strings of association relationships of the corresponding objects with the other objects.
It should be noted that the OID is an identification mechanism jointly proposed by ISO (International Organization for Standardization), IEC (International electrotechnical Commission), and ITU-T (International Telecommunication Union for Telecommunication Standardization Sector), and any type of object can be globally and uniquely named by using a hierarchical tree structure. As shown in FIG. 2, the OID of ITU-T is 0, the OID of ISO is 1, and the OID of the union of ISO and ITU-T is 2. Under the ISO, the system can comprise four branches of a standard organization, a registration authority, a state member body and other identification organizations, and corresponding OIDs are distributed to the branches in sequence. The OID of each branch is the OID of ISO plus the number assigned to itself, that is, the OID of the standard organization is 1.0, the OID of the registration organization is 1.1, the OID of the country member is 1.2, and the OIDs of other identification organizations are 1.3. Further, the object of the member of the country may include a plurality of countries in the world, and the OID of each country is the OID of the member of the country plus its own assigned number. For example, australia is assigned the number 36 and australian OID 1.2.36. China is assigned a number of 156 and china's OID is 1.2.156. Further, the object in china may include objects such as a state organ, a standardization organization, a public group, and other organizations, so that the OID in china may be used to assign corresponding OIDs to other objects included in the object in china, and so on.
For example, in the embodiment of the present application, the user may input object information of the first object and an object identifier of the second object on the terminal. The terminal, after receiving the above information, may send the information to the server. The server can obtain the information sent by the terminal.
Optionally, in this embodiment of the application, when the user inputs the object information of the first object and the object identifier of the second object on the terminal, the input may be performed according to a certain data format.
For example, the object information of the first object and the object identifier of the second object input by the user may be in the format of: { object identifier of second object, { object identifier of first object, description information of first object } }.
Optionally, in this embodiment of the application, the user may also input description information of the second object and/or a relationship character string of the second object and the first object on the terminal. On this basis, the server may receive attribute information of the second object transmitted by the terminal. In this case, the format of the user input information may be: { object identifier of second object, attribute information of second object, relationship string { object identifier of first object, description information of first object } }. In this case, the description information of the first object will include the attribute information of the second object, the relationship character string, and the object information of the first object.
Step 102: an object node of the second object is determined in the object tree based on the object identifier of the second object.
After receiving the object information of the first object and the object identifier of the second object, the server may determine an object node of the second object in the object tree based on the object identifier of the second object.
As can be seen from the above description, a tree structure can be constructed from the inclusion relationship between the objects and the object identifiers of the objects, and the tree structure can be an object tree. The object tree includes a plurality of object nodes, and each object node may be used to represent an object. And, each object node may correspond to a node identifier, which may be an object identifier of the corresponding object. In addition, the object node may store attribute information of the corresponding object. Optionally, the object node may further store an object identifier of the corresponding object, or a remaining portion of the object identifier of the corresponding object excluding the object identifier of the parent node. On this basis, the server may traverse the object tree starting from the top node of the object tree based on the object identifier of the second object, thereby determining the object node of the second object.
Here, the object identifier of the second object is described as an OID. Referring to fig. 3, assuming that the object identifier of the second object is 1.2.156.102398, the server can find the object node of the object according to ISO from the top node of the object tree according to 1, and can find the object node of the object according to country member from the child nodes of the object node according to 2. Among the children nodes of the object node of the country member body, the object node of the object of china can be found according to 156. An object node can be found according to 102398 at the child node of the object node in china, and at this time, the found object node is the object node of the second object. The node identification of the object node of the second object is the OID of the second object, and the OID of the second object is stored on the object node of the second object. In addition, assuming that the name of the second object is ABC company, the object node of the second object may further store the name "AAA company" of the second object, where the "AAA company" is one item of information included in the attribute information of the second object.
Step 103: and storing the object information of the first object according to the object node of the second object.
After determining the object node of the second object, the server may store the object information of the first object according to the object node of the second object.
For example, the server may determine whether there is a node identified as the object identifier of the first object among the associated nodes of the object nodes of the second object. If not, creating an object node of the first object according to the object node of the second object; object information of the first object is stored according to the object node of the first object.
As can be seen from the foregoing description, the node identifier of each object node may be an object identifier of a corresponding object, and therefore, the server may detect whether the node identifiers of the respective child nodes under the object node of the second object are the same as the object identifier of the first object, and if so, may determine that a node whose node identifier is the object identifier of the first object exists in the associated node of the object node of the second object. At this time, the node may be identified as a child node of the object identifier of the first object as an object node of the first object.
Alternatively, if the node identifiers of the respective child nodes under the object node of the second object are different from the object identifier of the first object, the server may further determine whether a node having the same node identifier as the object identifier of the first object exists in other object nodes having an association relationship with the object node of the second object. If so, the corresponding node may be the object node of the first object. If not, it may be determined that no node in the association node of the object node of the second object identifies a child node that is the same as the object identifier of the first object. At this time, the server may create an object node of the first object from an object node of the second object.
When the object node of the first object is created according to the object node of the second object, the server may create the object node of the first object according to the object identifier of the first object and the object identifier of the second object, or an association relationship between the first object and the second object, which is characterized by a relationship character string between the first object and the second object.
If the prefix of the object identifier of the first object is the object identifier of the second object, the server may create a child node with the object node of the second object as a parent node, where the child node is the object node of the first object. If the prefix of the object identifier of the first object is not the object identifier of the second object, the server may determine the associative relationship between the first object and the second object according to the relationship string of the first object and the second object. If the relationship string indicates that the first object is subordinate to the second object, the server may create a child node with the object node of the second object as the parent node, with the child node as the object node of the first object. If the relationship string indicates that the first object and the second object are not in an affiliation, the server may determine a parent node from a prefix of the object identifier of the first object and create an object node of the first object under the parent node.
After obtaining the object node of the first object, the server may store object information of the first object according to the object node of the first object.
As can be seen from the introduction in step 101, the object information of the first object includes an object identifier of the first object and description information of the first object. And the description information of the first object may include attribute information of the first object. Based on this, if the object node of the first object is newly created, the server may identify the object identifier of the first object as the node of the object node of the first object and store the object identifier of the first object and the attribute information of the first object on the object node of the first object.
Optionally, the description information of the first object may further include association information between the first object and the third object, and the association information may include an object identifier and a relationship string of the third object. Wherein the relationship string may characterize an associative relationship between the first object and the third object. In this case, the server may further determine, according to the object identifier of the third object, a node whose node identifier is the object identifier of the third object, and use the determined node as the third object node. Then, the server may establish an association edge between the object node of the first object and the object node of the third object, and store the relationship character string included in the aforementioned description information as tag information of the association edge.
It should be noted that the association edge between the object node of the first object and the object node of the third object is used to indicate that an association relationship exists between the first object and the third object. The label information of the associated edge may be used to specifically indicate what kind of association the association between the first object and the third object exists. In implementation, the server may correspondingly store the node identifier of the object node of the first object, the node identifier of the object node of the third object, and the relationship character string, so as to implement creation of an associated edge between the object node of the first object and the object node of the third object and storage of tag information of the associated edge.
Exemplarily, referring to fig. 4, it is assumed that the object information of the first object is as follows: { OID: 1.2.156.80801, name: zhang III, the department of Job's supply: { OID:1.2.156.102398 }, the server can send "1.2.156.80801, name: zhang-three "are stored on the object node of the first object. Where "1.2.156.80801" is the object identifier of the first object, i.e., the node identification of the object node of the first object. "name: zhang three is attribute information of the first object. According to "OID: 1.2.156.102398 ", the server may determine an object node of the third object, and thereafter, the server may establish an associated edge between the object node of the first object and the object node of the third object, and store the character string" once-for-the-job "as tag information of the associated edge between the first object and the third object.
Alternatively, if the object node of the first object is not newly created but the object node of the second object is created before, after determining the object node of the first object, the server may directly update the attribute information stored in the object node of the first object according to the object information of the first object, and establish an association relationship between the first object and another object or update the association relationship between the first object and another object according to the description information included in the object information of the first object.
Optionally, in a possible case, in step 101, at the same time of receiving the object identifier of the second object, the attribute information of the second object may also be received. On this basis, after determining the object node of the second object, the server may also verify the object node of the second object according to the received attribute information of the second object and the stored attribute of the second object. And after the object node of the second object passes the verification, storing the object information of the first object according to the object node of the second object.
Illustratively, the server may acquire node information of the object node of the stored second object; the server may perform the step of storing the object information of the first object according to the object node of the second object if the node information of the object node of the second object includes the attribute information of the second object.
That is, the server may compare the received attribute information of the second object with attribute information in node information stored on an object node of the second object. If the attribute information stored on the object node of the second object contains the received attribute information of the second object, it may be determined that the object node of the second object is correct, and at this time, the server may further detect whether a child node whose node identifier is the same as the object identifier of the first object exists under the object node of the second object. If the object exists, the node is taken as the object node of the first object, and the object information of the first object is stored by the method described above. If the object node does not exist, the object node of the second object is used as a parent node to create a child node, so that the object node of the first object is obtained, and the object information of the first object is stored according to the created object node of the first object by the method described above.
In this embodiment, when storing the object information of the first object, the object identifier of the second object associated with the first object may be obtained, and the object node of the second object is found according to the object identifier of the second object, so as to store the object information of the first object. Because the object identifier in the embodiment of the application can uniquely identify one object, one object can be clearly and unambiguously represented through the object identifier, and on the basis, the relationship between the objects is established and stored according to the object identifier, so that the relationship between the objects can be more clearly represented.
Next, a description is given of an implementation process of applying the embodiment of the present application to an enterprise information management scenario.
Assume that enterprise a has an OID of 1.2.156.102398, and that enterprise a contains three departments, the personnel department, the development department, and the finance department. Wherein, the OID of the personnel department is 1.2.156.102398.1, the OID of the development department is 1.2.156.102398.2, and the OID of the finance department is 1.2.156.102398.3. The members of the department of personnel include Zhang III, whose OID is 1.2.156.80801. The members of the development department include Lifours, whose OID is 1.2.156.90901. The members of the ministry of finance include wangwu, whose OID is 1.2.156.70701.
Referring to fig. 5, when storing information of member third of the department of personnel, the user can input object information of third of personnel and information of the personal object to which third of personnel belongs, which are: { OID:1.2.156.102398.1, name: virtual science and technology limited affairs department, member: { { OID: 1.2.156.80801, name: one open three } }. From the OID of the second object (i.e. the personnel department), the object node of the second object can be determined. The first object can be determined to be a member of the second object according to the relationship character string between the first object and the second object, that is, the first object belongs to the second object, and at this time, the object node of the first object can be created by taking the second object as a parent node. The object node of the first object stores an "OID: 1.2.156.80801, name: zhang three "information.
The information of lie four, king five, etc. can be stored with reference to the above method.
Further, suppose that Zhang III was previously available for business B, and the OID for business B is 1.2.156.102192. The user may enter { OID: 1.2.156.80801, name: zhang III, the department of Job's supply: { OID: 1.2.156.102192}}. The server may be configured according to "OID: 1.2.156.102192', finding the object node of the enterprise B, and establishing the association relationship between the enterprise B and Zhang III.
It should be noted that, in the foregoing embodiment, only the object node whose top node of the object tree is ISO is taken as an example for explanation, but this does not constitute a limitation on the object tree. In practical applications, the top node of the object tree may be different according to the main body of the management information. For example, assuming that the current server is for managing information of various organizations within a certain country, the top node of the object tree may be the object node of the corresponding country. For another example, assuming that the current server is used for managing information of various organizations in a certain city, the top node of the object tree may be an object node of the city, and so on, which is not described herein again in this embodiment of the present application.
Next, an object information storage apparatus provided in an embodiment of the present application will be described.
Referring to fig. 6, an embodiment of the present application provides an object information storage apparatus 600, where the apparatus 600 includes:
a receiving module 601, configured to receive object information of a first object and an object identifier of a second object, where the object information includes the object identifier of the first object and description information of the first object, the first object is associated with the second object, and the object identifier is used to uniquely identify the corresponding object;
a determining module 602, configured to determine an object node of a second object in an object tree according to an object identifier of the second object, where the object tree includes a plurality of object nodes, and each object node is used to characterize an object;
the storage module 603 is configured to store the object information of the first object according to the object node of the second object.
Optionally, the object identifier comprises an object identification OID or an internet protocol version 6 IPv6 address.
Optionally, the storage module is specifically configured to:
if no node of the object identifier of the first object exists in the association nodes of the object node of the second object, creating the object node of the first object according to the object node of the second object;
object information of the first object is stored according to the object node of the first object.
Optionally, the description information of the first object includes attribute information for characterizing an attribute of the first object;
the storage module is specifically configured to:
the attribute information of the first object is stored as node information of an object node of the first object, and the object identifier of the first object is stored as a node identification of the object node of the first object.
Optionally, the description information of the first object includes an object identifier of the third object and a relationship string for characterizing an association relationship between the first object and the third object;
the storage module is specifically configured to:
determining an object node of the third object according to the object identifier of the third object;
establishing an association edge between an object node of the first object and an object node of the third object;
and storing the relation character string as the label information of the associated edge.
Optionally, the apparatus is further configured to:
receiving attribute information of a second object;
acquiring node information of an object node of a stored second object;
if the node information of the object node of the second object contains the attribute information of the second object, a step of creating a child node with the object node of the second object as a parent node is performed.
In summary, in the embodiment of the present application, when storing the object information of the first object, the object identifier of the second object associated with the first object may be obtained, and then the object node of the second object is found according to the object identifier of the second object, so as to store the object information of the first object. Because the object identifier in the embodiment of the application can uniquely identify one object, one object can be clearly and unambiguously represented through the object identifier, and on the basis, the relationship between the objects is established and stored according to the object identifier, so that the relationship between the objects can be more clearly represented.
It should be noted that: in the object information storage apparatus provided in the above embodiment, when storing the object information, only the division of the above functional modules is exemplified, and in practical applications, the above function distribution may be completed by different functional modules according to needs, that is, the internal structure of the device is divided into different functional modules to complete all or part of the above described functions. In addition, the object information storage device and the object information storage method provided by the above embodiments belong to the same concept, and specific implementation processes thereof are detailed in the method embodiments and are not described herein again.
FIG. 7 is a schematic diagram illustrating a server architecture for business logic configuration in accordance with an illustrative embodiment. The functions of the server in the embodiment shown in fig. 1 can be implemented by the server shown in fig. 7. The server may be a server in a cluster of background servers. Specifically, the method comprises the following steps:
the server 700 includes a Central Processing Unit (CPU) 701, a system Memory 704 including a Random Access Memory (RAM) 702 and a Read-Only Memory (ROM) 703, and a system bus 705 connecting the system Memory 704 and the CPU 701. The server 700 also includes a basic Input/Output system (I/O system) 706 that facilitates information transfer between devices within the computer, and a mass storage device 707 for storing an operating system 713, application programs 714, and other program modules 715.
The basic input/output system 706 includes a display 708 for displaying information and an input device 709, such as a mouse, keyboard, etc., for a user to input information. Wherein the display 708 and the input device 709 are connected to the central processing unit 701 through an input output controller 170 connected to the system bus 705. The basic input/output system 706 may also include an input/output controller 170 for receiving and processing input from a number of other devices, such as a keyboard, mouse, or electronic stylus. Similarly, the input-output controller 170 also provides output to a display screen, a printer, or other type of output device.
The mass storage device 707 is connected to the central processing unit 701 through a mass storage controller (not shown) connected to the system bus 705. The mass storage device 707 and its associated computer-readable media provide non-volatile storage for the server 700. That is, the mass storage device 707 may include a computer-readable medium (not shown) such as a hard disk or CD-ROM (Compact disk Read-Only Memory) drive.
Without loss of generality, computer readable media may comprise computer storage media and communication media. Computer storage media includes volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. Computer storage media includes RAM, ROM, EPROM (Erasable Programmable Read-Only Memory), EEPROM (Electrically Erasable Programmable Read-Only Memory), flash Memory or other solid state Memory technology, CD-ROM, DVD (Digital Versatile disk), or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices. Of course, those skilled in the art will appreciate that computer storage media is not limited to the foregoing. The system memory 704 and mass storage device 707 described above may be collectively referred to as memory.
According to various embodiments of the present application, server 700 may also operate as a remote computer connected to a network via a network, such as the Internet. That is, the server 700 may be connected to the network 712 through a network interface unit 711 connected to the system bus 705, or the network interface unit 711 may be used to connect to other types of networks or remote computer systems (not shown).
The memory further includes one or more programs, and the one or more programs are stored in the memory and configured to be executed by the CPU. The one or more programs include instructions for performing the object information storage method provided by the embodiments of the present application.
Embodiments of the present application further provide a non-transitory computer-readable storage medium, where instructions in the storage medium, when executed by a processor of a server, enable the server to perform the object information storage method provided in the embodiment shown in fig. 1.
Embodiments of the present application further provide a computer program product containing instructions, which when run on a computer, cause the computer to execute the object information storage method provided in the embodiment shown in fig. 1.
Those skilled in the art will appreciate that the architecture shown in fig. 7 does not constitute a limitation on server 700, and may include more or fewer components than those shown, or combine certain components, or employ a different arrangement of components.
It will be understood by those skilled in the art that all or part of the steps for implementing the above embodiments may be implemented by hardware, or may be implemented by a program instructing relevant hardware, where the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The above description is only exemplary of the present application and should not be taken as limiting, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the protection scope of the present application.
Claims (9)
1. An object information storage method, characterized in that the method comprises:
receiving object information of a first object and an object identifier of a second object, wherein the object information comprises an object identifier of the first object and description information of the first object, the first object is associated with the second object, the object identifier is used for uniquely identifying the corresponding object, and the description information of the first object comprises an object identifier of a third object and a relation character string used for representing an association relation between the first object and the third object;
determining an object node of the second object in an object tree according to the object identifier of the second object, wherein the object tree comprises object nodes of a plurality of objects, and each object node is used for representing one object;
determining an object node of the first object according to the object node of the second object;
determining an object node of the third object according to the object identifier of the third object;
establishing an association edge between the object node of the first object and the object node of the third object;
and storing the relation character string as the label information of the associated edge.
2. The method of claim 1, wherein the object identifier comprises an Object Identification (OID) or an Internet protocol version 6 IPv6 address.
3. The method of claim 1 or 2, wherein determining the object node of the first object from the object nodes of the second object comprises:
and if no node with the node identification as the object identifier of the first object exists in the associated nodes of the object node of the second object, creating the object node of the first object according to the object node of the second object.
4. The method according to claim 1, wherein the description information of the first object includes attribute information for characterizing attributes of the first object; the method further comprises the following steps:
and storing the attribute information of the first object as node information of an object node of the first object, and storing the object identifier of the first object as a node identifier of the object node of the first object.
5. The method of claim 1, further comprising:
receiving attribute information of the second object;
acquiring the stored node information of the object node of the second object;
and if the node information of the object node of the second object contains the attribute information of the second object, executing the step of determining the object node of the first object according to the object node of the second object.
6. An object information storage apparatus, characterized in that the apparatus comprises:
the device comprises a receiving module, a judging module and a display module, wherein the receiving module is used for receiving object information of a first object and an object identifier of a second object, the object information comprises the object identifier of the first object and description information of the first object, the first object is associated with the second object, the object identifier is used for uniquely identifying the corresponding object, and the description information of the first object comprises an object identifier of a third object and a relation character string used for representing the association relation between the first object and the third object;
a determining module, configured to determine an object node of the second object in an object tree according to an object identifier of the second object, where the object tree includes object nodes of multiple objects, and each object node is used to represent one object;
the storage module is used for determining the object node of the first object according to the object node of the second object; determining an object node of the third object according to the object identifier of the third object; establishing an association edge between the object node of the first object and the object node of the third object; and storing the relation character string as the label information of the associated edge.
7. The apparatus of claim 6, wherein the object identifier comprises an Object Identification (OID) or an Internet protocol version 6 IPv6 address.
8. The apparatus according to claim 6 or 7, wherein the storage module is specifically configured to:
and if no node with the node identification as the object identifier of the first object exists in the associated nodes of the object node of the second object, creating the object node of the first object according to the object node of the second object.
9. A computer-readable storage medium, having stored therein at least one instruction, at least one program, a set of codes, or a set of instructions, which is loaded and executed by a processor to implement the object information storage method according to any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911346143.7A CN111125449B (en) | 2019-12-24 | 2019-12-24 | Object information storage method, device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201911346143.7A CN111125449B (en) | 2019-12-24 | 2019-12-24 | Object information storage method, device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN111125449A CN111125449A (en) | 2020-05-08 |
| CN111125449B true CN111125449B (en) | 2020-11-13 |
Family
ID=70501847
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201911346143.7A Active CN111125449B (en) | 2019-12-24 | 2019-12-24 | Object information storage method, device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN111125449B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN106897408A (en) * | 2017-02-16 | 2017-06-27 | 郑州云海信息技术有限公司 | It is a kind of to realize the method that quick search tree structure data specifies node subordinate |
| CN107608981A (en) * | 2016-07-11 | 2018-01-19 | 顺丰科技有限公司 | Character match method and system based on regular expression |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7127465B2 (en) * | 2002-09-30 | 2006-10-24 | Sun Microsystems, Inc. | Memory-efficient metadata organization in a storage array |
| CN101515298B (en) * | 2009-03-30 | 2013-09-25 | 华为技术有限公司 | Inserting method based on tree-shaped data structure node and storing device |
| CN104598517A (en) * | 2014-12-09 | 2015-05-06 | 北京网梯科技发展有限公司 | Storage and inquiry technology for tree structure table based on ordinary database |
| CN105512229B (en) * | 2015-11-30 | 2019-02-22 | 北京奇艺世纪科技有限公司 | A kind of storage, querying method and the device of the regional information of IP address |
| CN110502611B (en) * | 2019-08-01 | 2022-04-12 | 武汉虹信科技发展有限责任公司 | Character string retrieval method and device |
| CN110602239B (en) * | 2019-09-20 | 2023-09-19 | 腾讯科技(深圳)有限公司 | Block chain information storage method and related equipment |
-
2019
- 2019-12-24 CN CN201911346143.7A patent/CN111125449B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107608981A (en) * | 2016-07-11 | 2018-01-19 | 顺丰科技有限公司 | Character match method and system based on regular expression |
| CN106897408A (en) * | 2017-02-16 | 2017-06-27 | 郑州云海信息技术有限公司 | It is a kind of to realize the method that quick search tree structure data specifies node subordinate |
Also Published As
| Publication number | Publication date |
|---|---|
| CN111125449A (en) | 2020-05-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN112217656B (en) | Method and device for synchronizing configuration information of network equipment in SD-WAN (secure digital-to-Wide area network) system | |
| CN108228814B (en) | Data synchronization method and device | |
| US8869111B2 (en) | Method and system for generating test cases for a software application | |
| CN113238740B (en) | Code generation method, code generation device, storage medium and electronic device | |
| CN111427561A (en) | Service code generation method and device, computer equipment and storage medium | |
| CN109117152B (en) | Service generation system and method | |
| CN112070608B (en) | Information processing method, device, medium and electronic equipment | |
| US9009652B2 (en) | Method and system for handling software design conflicts | |
| CN112231568B (en) | Hotel tag automatic configuration method, device, electronic equipment, storage medium | |
| CN113766042A (en) | Container address configuration method, system, device, equipment and medium | |
| US9300522B2 (en) | Information technology asset management | |
| CN109165332A (en) | A kind of webpage information acquisition methods, device and equipment | |
| TW201448544A (en) | Message exchange via generic TLV generator and parser | |
| CN116881279A (en) | Information display methods and related equipment for business scenarios | |
| CN111125449B (en) | Object information storage method, device and storage medium | |
| CN115437704A (en) | Business process orchestration method, device, device and storage medium | |
| US12277172B2 (en) | Graph creation from multiple databases | |
| CN114978953B (en) | Network card identification method and device and computer readable medium | |
| US20240028346A1 (en) | Linking kubernetes resources with underlying cloud infrastructure | |
| CN114003661B (en) | Offline data entry method, device, electronic device and storage medium | |
| CN110674137A (en) | Data processing method and device, storage medium and electronic equipment | |
| US20140074749A1 (en) | Enabling synchronicity between architectural models and operating environments | |
| CN115269554A (en) | Tree data management method, device, equipment and medium based on multi-service scene | |
| CN109088771B (en) | Internet of things node template inheritance system of Internet of things application platform | |
| Leida et al. | Facing big data variety in a model driven approach |
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 |