Method and system for constructing enterprise digital graph based on blockchain
Through the blockchain-based method, we identify and process enterprise data and build a blockchain, which solves the problems of data islands and security in traditional methods, and improves the accuracy and security of digital maps.
Patent Information
- Application Number
- CN202410816260.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Due to the data island phenomenon and data security issues, the traditional enterprise digital map construction method results in low accuracy and completeness of the map and insufficient data security.
Adopt a blockchain-based method to obtain structured and unstructured data, identify index relationships, perform entity identification and encrypted data processing, build an enterprise blockchain, set access permissions, and write entity-related data to the blockchain. Build a digital map.
It improves the accuracy and completeness of data, enhances data security, and improves the efficiency and security of digital map construction.
Smart Images

Figure CN118396087B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of blockchain technology, and in particular to a method and system for constructing a digital graph of an enterprise based on blockchain. Background Art
[0002] With the rapid development of information technology, enterprise digitalization has become a key force in promoting economic growth and enhancing competitiveness. As an important part of the enterprise digitalization strategy, the enterprise digitalization map aims to integrate, analyze and utilize massive internal and external data to form a comprehensive and in-depth understanding of enterprise operations, management, markets and other aspects, thereby providing strong support for enterprise decision-making.
[0003] However, due to the serious data silos in enterprises, the traditional method of building enterprise digital graphs is difficult to effectively share and integrate data between departments and systems within the enterprise, which affects the integrity and accuracy of the graph. Secondly, the issues of data security and privacy protection are becoming increasingly prominent. Therefore, a method of building enterprise digital graphs is needed to improve the integrity and accuracy of the graph and the security of the data. Summary of the invention
[0004] The present invention provides a blockchain-based enterprise digital map construction method and system, the main purpose of which is to solve the problems of low accuracy, low integrity and low data security in the existing enterprise digital map construction method.
[0005] To achieve the above objectives, the present invention provides a method for constructing a digital enterprise graph based on blockchain, comprising:
[0006] Acquire structured data, unstructured data, and business process data of the enterprise, and identify index relationships between the structured data and the unstructured data;
[0007] Performing entity recognition on the structured data to obtain an entity set, and performing encrypted data recognition on the unstructured data to obtain an encrypted data set;
[0008] Defining attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, and identifying association relationships of each entity in the entity data set to obtain entity association data;
[0009] Building a blockchain according to the business process data and the structured data to obtain an enterprise blockchain;
[0010] Storing the encrypted data set in the enterprise blockchain, setting access permissions for the encrypted data set through the enterprise blockchain, and performing security access monitoring on the encrypted data set;
[0011] The data nodes in the entity-associated data are matched with the blockchain nodes of the enterprise blockchain, and the entity-associated data are written into the enterprise blockchain according to the matching results, and a digital map of the enterprise is constructed according to the structure of the enterprise blockchain and the data stored in each blockchain node.
[0012] Optionally, the identifying an index relationship between the structured data and the unstructured data includes:
[0013] identifying keywords in the structured data to obtain structured data keywords, and identifying keywords in the unstructured data to obtain unstructured data keywords;
[0014] Creating index information for the structured data according to the structured data keyword to obtain a structured data index;
[0015] Creating index information for the unstructured data according to the unstructured data keyword to obtain an unstructured data index;
[0016] The structured data index and the unstructured data index are relevance matched according to the structured data keyword and the unstructured data keyword to obtain index information.
[0017] Optionally, performing entity recognition on the structured data to obtain an entity set includes:
[0018] Define entity types based on pre-determined digital graph construction requirements;
[0019] Performing a process of removing duplicate values on the structured data to obtain preprocessed structured data;
[0020] Retrieving the preprocessed structured data according to the entity type to obtain an entity list;
[0021] A unique identifier is created for each entity in the entity list to obtain an entity set.
[0022] Optionally, the performing encrypted data identification on the unstructured data to obtain an encrypted data set includes:
[0023] The entropy value of each file in the unstructured data is calculated using the following formula: in, is the entropy value of any file in the unstructured data, is the total number of characters in the file, For the document characters, Indicates the file The frequency with which a character appears in the file;
[0024] Files in the unstructured data whose entropy values are greater than or equal to a preset entropy value threshold are marked as encrypted data to obtain an encrypted data set.
[0025] Optionally, the defining attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set includes:
[0026] Extracting keywords of each entity in the entity set to obtain an entity keyword set;
[0027] Filter the index information according to each keyword in the entity keyword set to obtain entity index information;
[0028] Retrieving a set of entity detailed information from the unstructured data according to the entity index information;
[0029] The entity detailed information set is bound to each entity in the entity set according to the keyword set to obtain an entity data set.
[0030] Optionally, the identifying an association relationship for each entity in the entity data set to obtain entity association data includes:
[0031] Identifying departmental organizational structure data in the structured data;
[0032] Identify the number of levels of organizational structure data for the department;
[0033] Constructing a pyramid relationship model according to the department organizational structure data and the hierarchical relationship;
[0034] hierarchically classifying the entity data set according to the number of hierarchies to obtain a hierarchical entity set;
[0035] Inputting the hierarchical entity set into the pyramid relationship model to obtain pyramid association data;
[0036] The pyramid associated data is processed by removing blank values to obtain entity associated data.
[0037] Optionally, constructing a blockchain according to the business process data and the structured data to obtain an enterprise blockchain includes:
[0038] Identify the node data of the structured data to obtain the number of structured nodes;
[0039] Building a consortium chain based on the node data;
[0040] Confirming alliance members according to the structured node data to obtain alliance member data;
[0041] Building a consensus mechanism based on the alliance member data;
[0042] Design smart contracts based on the business process data;
[0043] The consensus mechanism and the smart contract are deployed on the alliance chain to obtain an enterprise blockchain.
[0044] Optionally, the performing security access monitoring on the encrypted data set includes:
[0045] Using the enterprise blockchain to obtain recent access data of the encrypted data set;
[0046] The security factor of the encrypted data set is calculated based on the access data using the following formula: in, is the safety factor, is the total number of access records in the access data, The access data is The access rights of the access records. For about The sign function of For authorized access, the symbol function outputs 1. For unauthorized access, the symbol function outputs 0. The access data is The duration of the visit, is the access time weight parameter, The access data is The number of days between each access record and the current time. The access data is The distance between the access address of each access record and the enterprise;
[0047] If the safety factor is less than or equal to a preset safety factor threshold, a warning message is sent to the administrator and the access data is sent.
[0048] Optionally, constructing a digital map of the enterprise according to the structure of the enterprise blockchain and the data stored in each blockchain node includes:
[0049] Extract the graph data contained in each blockchain node;
[0050] Use the pre-established graph visualization template to visualize the graph data of each blockchain node to obtain a visualization graph set;
[0051] According to the structure of the enterprise blockchain, a connection relationship is established for all the visual graphs in the visual graph set to obtain an enterprise digital graph.
[0052] In order to solve the above problems, the present invention also provides a blockchain-based enterprise digital map construction system, the system comprising:
[0053] A data acquisition module is used to acquire the structured data, unstructured data and business process data of the enterprise, and identify the index relationship between the structured data and the unstructured data;
[0054] A data identification module, used to perform entity identification on the structured data to obtain an entity set, and to perform encrypted data identification on the unstructured data to obtain an encrypted data set;
[0055] A data association module, configured to define attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, and identify association relationships of each entity in the entity data set to obtain entity association data;
[0056] A data on-chain module, which constructs a blockchain according to the business process data and the structured data to obtain an enterprise blockchain, stores the encrypted data set in the enterprise blockchain, sets access rights for the encrypted data set through the enterprise blockchain, performs security access monitoring on the encrypted data set, matches the data nodes in the entity-related data with the blockchain nodes of the enterprise blockchain, and writes the entity-related data into the enterprise blockchain according to the matching result;
[0057] The graph construction module constructs a digital graph of the enterprise based on the structure of the enterprise blockchain and the data stored in each blockchain node.
[0058] The embodiment of the present invention obtains structured data, unstructured data and business process data of an enterprise, identifies the index relationship between the structured data and the unstructured data, improves the efficiency of defining attributes of entities, performs entity recognition on the structured data to obtain an entity set, and performs encrypted data recognition on the unstructured data to obtain an encrypted data set, defines attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, improves the accuracy of entity data, identifies the association relationship of each entity in the entity data set to obtain entity-associated data, improves the relevance of data, builds a blockchain according to the business process data and the structured data to obtain an enterprise blockchain, stores the encrypted data set in the enterprise blockchain, sets access rights for the encrypted data set through the enterprise blockchain, performs security access monitoring on the encrypted data set, improves the security of encrypted data, matches the data nodes in the entity-associated data with the blockchain nodes of the enterprise blockchain, writes the entity-associated data into the enterprise blockchain according to the matching result, builds a digital map of the enterprise according to the structure of the enterprise blockchain and the data stored in each blockchain node, and improves the efficiency of building a digital map. Therefore, the blockchain-based enterprise digital map construction method and system proposed in the present invention can solve the problems of low accuracy, low integrity and low data security in the existing enterprise digital map construction methods. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] Figure 1 A flowchart of a method for constructing a digital enterprise graph based on blockchain provided by one embodiment of the present invention;
[0060] Figure 2 A schematic diagram of a process for identifying index relationships provided by an embodiment of the present invention;
[0061] Figure 3 A schematic diagram of a process for constructing a digital graph of an enterprise provided by an embodiment of the present invention;
[0062] Figure 4 A functional module diagram of a blockchain-based enterprise digital graph construction system provided in one embodiment of the present invention.
[0063] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0064] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.
[0065] The embodiment of the present application provides a method for constructing a digital map of an enterprise based on blockchain. The execution subject of the method for constructing a digital map of an enterprise based on blockchain includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for constructing a digital map of an enterprise based on blockchain can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery networks (CDN), and big data and artificial intelligence platforms.
[0066] Reference Figure 1 As shown, it is a flowchart of a method for constructing a digital enterprise map based on blockchain provided by an embodiment of the present invention. In this embodiment, the method for constructing a digital enterprise map based on blockchain includes:
[0067] S1. Acquire structured data, unstructured data, and business process data of an enterprise, and identify an index relationship between the structured data and the unstructured data.
[0068] In the embodiment of the present invention, the structured data refers to the departmental organizational structure information, product list, customer list and relevant information of the leaders and employees of each department in the enterprise, which are usually stored in a relational database, such as an SQL database, and have a fixed format and mode, such as table data.
[0069] In the embodiment of the present invention, the unstructured data has no fixed format and may include detailed information of each department in the enterprise, employee personal information, product data, sales data, etc., as well as enterprise-related text files, pictures, videos, etc.
[0070] In the embodiment of the present invention, the business process data refers to various data directly related to business activities generated in the daily operation of the enterprise. These data usually involve various departments and business links of the enterprise and are used to support decision-making, optimize processes, improve efficiency and enhance customer satisfaction.
[0071] In the embodiment of the present invention, refer to Figure 2 As shown, a schematic diagram of a process of identifying an index relationship is provided in an embodiment of the present invention, wherein the identifying the index relationship between the structured data and the unstructured data includes:
[0072] S21, identifying keywords in the structured data to obtain structured data keywords, and identifying keywords in the unstructured data to obtain unstructured data keywords;
[0073] S22, creating index information for the structured data according to the structured data keyword to obtain a structured data index;
[0074] S23, creating index information for the unstructured data according to the unstructured data keyword to obtain an unstructured data index;
[0075] S24: performing correlation matching on the structured data index and the unstructured data index according to the structured data keyword and the unstructured data keyword to obtain index information.
[0076] In detail, the identifying of keywords in the structured data is performed by directly extracting the names of tables and columns in the database and the names of primary keys and foreign keys as keywords.
[0077] Specifically, the identification of keywords in the unstructured data is performed by extracting the file name, the title of the text, and the summary of the text, performing word segmentation on these data, and using the obtained words as keywords. For the personal information of the employee, the employee name or employee ID in the personal information can be extracted as the keyword.
[0078] In detail, the index information is created for the structured data according to the structured data keyword by using a database management system to create an index according to the structured data keyword, and record the name of the keyword corresponding to the index, the columns included, the type and position of the index.
[0079] In detail, the index information is created for the unstructured data according to the unstructured data keyword by using a file system to search for related files according to the unstructured keyword and record the name and file location of the file corresponding to the keyword.
[0080] In detail, the correlation matching of the structured data index and the unstructured data index according to the structured data keyword and the unstructured data keyword to obtain index information refers to merging the indexes with the same keyword name in the structured data index and the unstructured data index to obtain a new index.
[0081] In the embodiment of the present invention, by acquiring structured data, unstructured data and business process data of an enterprise, an index relationship between the structured data and the unstructured data is identified, thereby improving the efficiency of subsequent identification of entity-related data.
[0082] S2. Perform entity recognition on the structured data to obtain an entity set, and perform encrypted data recognition on the unstructured data to obtain an encrypted data set.
[0083] In the embodiment of the present invention, the entity recognition refers to extracting entity information with practical significance from the structured data, such as department name, employee name, product ID, customer name and other information.
[0084] In the embodiment of the present invention, the encrypted data identification is performed on the unstructured data because the unstructured data contains confidential data defined by the enterprise, such as product data, sales data, technical documents, etc. These data are of high importance and are usually encrypted by the enterprise to prevent leakage.
[0085] In the embodiment of the present invention, performing entity recognition on the structured data to obtain an entity set includes:
[0086] Define entity types based on pre-determined digital graph construction requirements;
[0087] Performing a process of removing duplicate values on the structured data to obtain preprocessed structured data;
[0088] Retrieving the preprocessed structured data according to the entity type to obtain an entity list;
[0089] A unique identifier is created for each entity in the entity list to obtain an entity set.
[0090] In detail, the predetermined digital graph construction requirements refer to the requirements for which entity types need to be displayed on the graph when constructing the digital graph.
[0091] In detail, the deduplication process refers to deleting or merging duplicate data in the structured data to ensure that an entity has only one record in the structured data.
[0092] In the embodiment of the present invention, the pre-processed structured data is obtained by removing duplicate values from the structured data, thereby improving the efficiency of searching the pre-processed structured data.
[0093] In the embodiment of the present invention, a database query system is used to search the pre-processed structured data according to the entity type to obtain an entity list.
[0094] In the embodiment of the present invention, the unique identifier is created for each entity in the entity list, and a hash value of each entity can be calculated using a hash function as its unique identification code.
[0095] In detail, the step of performing encrypted data identification on the unstructured data to obtain an encrypted data set includes:
[0096] The entropy value of each file in the unstructured data is calculated using the following formula: in, is the entropy value of any file in the unstructured data, is the total number of characters in the file, For the document characters, Indicates the file The frequency with which a character appears in the file;
[0097] Files in the unstructured data whose entropy values are greater than or equal to a preset entropy value threshold are marked as encrypted data to obtain an encrypted data set.
[0098] In the embodiment of the present invention, the entropy value is a value used to measure the uncertainty or information content of a random variable. For a file, the larger the entropy value, the larger the amount of information contained, and the higher the uncertainty of the random variable. Because encrypted data usually contains a large number of random characters, the entropy value of encrypted data is higher. Therefore, it is possible to determine whether a file is encrypted by calculating the entropy value of the file.
[0099] In detail, the preset entropy value threshold can be obtained by calculating the entropy values of a number of non-encrypted files and taking the average value as the preset entropy value threshold.
[0100] In an embodiment of the present invention, in addition to determining an encrypted file by calculating an entropy value, encrypted data can also be identified by detecting whether the file has an encryption mark. For files without encryption marks, it is possible to search whether the file has an encryption-related extension (such as .enc, .aes, .gpg, etc.) to identify the encrypted file, or use an editor to open the file to check whether the file content contains encryption-related characters (such as binary data or random characters).
[0101] In an embodiment of the present invention, entity recognition is performed on the structured data to obtain an entity set, thereby improving the efficiency of subsequent entity-related data recognition. Encrypted data recognition is performed on the unstructured data to obtain an encrypted data set, thereby improving the efficiency of subsequent further security processing of the encrypted data set and improving the security of the encrypted data.
[0102] S3. Define attributes for each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, identify association relationships for each entity in the entity data set to obtain entity association data.
[0103] In an embodiment of the present invention, the attributes of each entity in the entity set are defined according to the index relationship and the unstructured data to obtain an entity data set, and the association relationship of each entity in the entity data set is identified, which means that the detailed data corresponding to each entity in the entity set in the unstructured data is bound to the entity according to the index relationship.
[0104] In the embodiment of the present invention, each entity in the entity set may be regarded as a keyword, so detailed information corresponding to each entity may be identified according to the keyword included in the index information.
[0105] In the embodiment of the present invention, the attribute definition of each entity in the entity set is performed according to the index relationship and the unstructured data to obtain the entity data set, including:
[0106] Extracting keywords of each entity in the entity set to obtain an entity keyword set;
[0107] Filter the index information according to each keyword in the entity keyword set to obtain entity index information;
[0108] Retrieving a set of entity detailed information from the unstructured data according to the entity index information;
[0109] The entity detailed information set is bound to each entity in the entity set according to the keyword set to obtain an entity data set.
[0110] In an embodiment of the present invention, the association relationship identification for each entity in the entity data set can be performed according to the corresponding position of each entity in the structured data, or according to the corresponding subordinate relationship between each entity in the entity data set. The relationship is identified, thereby constructing a pyramid-structured data association relationship to obtain entity association data.
[0111] Specifically, the identifying of association relationships for each entity in the entity data set to obtain entity association data includes:
[0112] Identifying departmental organizational structure data in the structured data;
[0113] Identify the number of levels of organizational structure data for the department;
[0114] Constructing a pyramid relationship model according to the department organizational structure data and the hierarchical relationship;
[0115] hierarchically classifying the entity data set according to the number of hierarchies to obtain a hierarchical entity set;
[0116] Inputting the hierarchical entity set into the pyramid relationship model to obtain pyramid association data;
[0117] The pyramid associated data is processed by removing blank values to obtain entity associated data.
[0118] In detail, the identification of the departmental organizational structure data in the structured data is to retrieve the department name or department code using a database system to obtain a data table related to the departmental organizational structure, wherein the data table contains the department information of the enterprise and the subordinate information between departments.
[0119] In detail, the identification of the number of levels of the department organizational structure data can be confirmed by checking the superior-subordinate relationship of each department in the department organizational structure data. For example, a department with only subordinate departments but no superior departments is regarded as the first level, and the subordinate departments of the first-level departments are regarded as the second level, and so on.
[0120] In detail, the pyramid relationship model is constructed according to the department organizational structure data and the hierarchical relationship, which means that the number of levels of the pyramid relationship model to be constructed is confirmed according to the number of levels, a data container is set at the first level of the pyramid relationship model, the number of data containers at the second level is increased according to the number of data containers at the first level according to a preset multiple, the number of data containers at the third level is increased according to the number of data containers at the second level according to a preset multiple, and so on. The preset multiple needs to identify the department with the most subordinate departments, and is set according to the number of subordinates of the department to ensure that the department organizational relationship can be fully expressed in the pyramid relationship model.
[0121] In detail, the hierarchical classification of the entity data set according to the number of levels is carried out by confirming the superior-subordinate relationship of each entity in the entity data set according to the department organizational structure data, and classifying the entities according to the levels according to the superior-subordinate relationship to obtain a hierarchical entity set.
[0122] In detail, the hierarchical entity set is input into the pyramid relationship model to obtain pyramid association data, which is to fill the entities in each level into the data container in the corresponding level in the pyramid relationship model according to the level classification.
[0123] In detail, the process of removing blank values from the pyramid associated data to obtain entity associated data is because the multiple of the data container of each level and the previous level in the pyramid relationship model is set according to the number of branches of the department with the most branches. Therefore, after all entities are input into the pyramid relationship model, there must be blank data containers. The process of removing blank values from the pyramid associated data refers to removing blank data containers in the pyramid associated data, which can reduce the data capacity of the entity associated data and improve the data expression ability of the entity associated data.
[0124] In an embodiment of the present invention, by defining attributes for each entity in the entity set according to the index relationship and the unstructured data, an entity data set is obtained, and association relationships are identified for each entity in the entity data set to obtain entity association data, thereby improving the efficiency of subsequent construction of a digital map.
[0125] S4. Build a blockchain based on the business process data and the structured data to obtain an enterprise blockchain.
[0126] In the embodiment of the present invention, the blockchain is a decentralized distributed ledger that is tamper-proof, secure and reliable. It combines distributed storage, peer-to-peer transmission, consensus mechanism, cryptography and other technologies to record transactions and information through a growing data block chain to ensure data security and transparency. Common blockchains include public chains, private chains and alliance chains.
[0127] In an embodiment of the present invention, a blockchain is constructed based on the alliance chain according to the business process data and the structured data.
[0128] In detail, the alliance chain is jointly participated in and maintained by multiple organizations or entities, but is limited to data exchange and consensus between these organizations or entities. The nodes in the alliance chain usually have certain access mechanisms, such as requiring authorization to join or exit the network. The alliance chain establishes a trust mechanism among multiple organizations while ensuring the security and privacy of data.
[0129] In an embodiment of the present invention, constructing a blockchain according to the business process data and the structured data to obtain an enterprise blockchain includes:
[0130] Identify the node data of the structured data to obtain the number of structured nodes;
[0131] Building a consortium chain based on the node data;
[0132] Confirming alliance members according to the structured node data to obtain alliance member data;
[0133] Building a consensus mechanism based on the alliance member data;
[0134] Design smart contracts based on the business process data;
[0135] The consensus mechanism and the smart contract are deployed on the alliance chain to obtain an enterprise blockchain.
[0136] In detail, the node data of the structured data refers to identifying the department structure data in the structured data, each department corresponds to a node, and the node data contains information about each department and information about department leaders. Since the structured data is usually stored in a relational database, data such as department information and employee information can be confirmed by identifying the table name and column name of the structured data in the database.
[0137] In detail, constructing a consortium chain based on the node data refers to designing a network architecture of the blockchain based on the enterprise department structure.
[0138] In detail, confirming the alliance members according to the structured node data refers to taking the leader of each department as an alliance member.
[0139] In detail, the consensus mechanism established based on the alliance member data refers to the establishment of a mechanism that requires the joint participation of leaders of each department in decision-making. The consensus mechanism is a system used to maintain the order and fairness of the operation of the alliance chain system. This mechanism is designed to ensure that the various nodes in the system can reach a consensus on the update and addition of the blockchain without any centralized organization's coordination.
[0140] In detail, designing a smart contract according to the business process data refers to formulating the smart contract logic according to the business rules contained in the business process data, and then implementing the smart contract logic by writing code.
[0141] In an embodiment of the present invention, a blockchain is constructed according to the business process data and the structured data to obtain an enterprise blockchain, thereby improving the efficiency of enterprise decision-making and transaction transparency.
[0142] S5. Store the encrypted data set into the enterprise blockchain, set access rights for the encrypted data set through the enterprise blockchain, and perform security access monitoring on the encrypted data set.
[0143] In the embodiment of the present invention, storing the encrypted data set in the enterprise blockchain is to perform distributed storage of the encrypted data set in the enterprise blockchain, that is, storing the encrypted data set on multiple blockchain nodes, and each blockchain node stores a same encrypted data set, thereby avoiding the impact of a single node failure and greatly improving the security and availability of data.
[0144] In the embodiment of the present invention, storing the encrypted data set into the enterprise blockchain includes:
[0145] Performing a hash operation on each encrypted data in the encrypted data set to obtain a unique identifier for each encrypted data;
[0146] Creating a new block in the enterprise blockchain chain;
[0147] Confirming the new block using the consensus mechanism of the enterprise blockchain;
[0148] The encrypted data set and a unique representation of each encrypted data are stored in the new block.
[0149] In the embodiment of the present invention, setting access rights for the encrypted data set through the enterprise blockchain refers to setting an access control mechanism for the encrypted data set, so that only specific personnel can access the encrypted data set. The access control mechanism can be set for the encrypted data set using a smart contract.
[0150] In the embodiment of the present invention, the step of performing security access monitoring on the encrypted data set includes:
[0151] Using the enterprise blockchain to obtain recent access data of the encrypted data set;
[0152] The security factor of the encrypted data set is calculated based on the access data using the following formula: in, is the safety factor, is the total number of access records in the access data, The access data is The access rights of the access records. For about The sign function of For authorized access, the symbol function outputs 1. For unauthorized access, the symbol function outputs 0. The access data is The duration of the visit, is the access time weight parameter, The access data is The number of days between each access record and the current time. The access data is The distance between the access address of each access record and the enterprise;
[0153] If the safety factor is less than or equal to a preset safety factor threshold, a warning message is sent to the administrator and the access data is sent.
[0154] In detail, the use of the enterprise blockchain to obtain the recent access data of the encrypted data set is to obtain the access data by accessing the access log of the enterprise blockchain. Each time the encrypted data set is accessed, the blockchain will create an access log to record the relevant information of the visitor.
[0155] In detail, the administrator needs to be set by the manager of the enterprise.
[0156] In an embodiment of the present invention, the reliability of the encrypted data set is improved by storing the encrypted data set in the enterprise blockchain, and access rights are set for the encrypted data set through the enterprise blockchain, and security access monitoring is performed on the encrypted data set, thereby improving the security of the encrypted data set.
[0157] S6. Match the data nodes in the entity-related data with the blockchain nodes of the enterprise blockchain, write the entity-related data into the enterprise blockchain according to the matching result, and build a digital map of the enterprise according to the structure of the enterprise blockchain and the data stored in each blockchain node.
[0158] In the embodiment of the present invention, the data nodes in the entity association data take each part of the enterprise as a data node, and each data node contains detailed information, leadership information and employee information of its corresponding department.
[0159] In the embodiment of the present invention, each blockchain node of the enterprise blockchain includes an alliance member, and the alliance member is usually a manager of the enterprise.
[0160] In the embodiment of the present invention, matching the data node in the entity-related data with the blockchain node of the enterprise blockchain, and writing the entity-related data into the enterprise blockchain according to the matching result, includes:
[0161] Performing node identification on the entity-related data to obtain data nodes in the entity-related data;
[0162] Extracting the management personnel information corresponding to each data node in the entity association data;
[0163] Matching the management personnel information corresponding to each data node with all blockchain nodes of the enterprise blockchain to obtain matching data;
[0164] Performing format conversion processing on the entity-related data to obtain converted related data;
[0165] The conversion-related data is uploaded to the enterprise blockchain according to the matching data.
[0166] In detail, the performing node identification on the entity association data refers to identifying entities having association relationships with multiple entities as nodes according to association relationships between entities in the entity association data.
[0167] In detail, extracting the management personnel information corresponding to each data node in the entity association data refers to extracting the department information corresponding to each data node in the entity association data, and extracting the leadership information of the department as the management personnel information based on the department information.
[0168] In the embodiment of the present invention, since the network structure of the enterprise blockchain is constructed according to the department structure of the enterprise, it is necessary to match the management personnel information corresponding to each data node with all the blockchain nodes of the enterprise blockchain to obtain matching data, aiming to allow the management personnel of each part of the enterprise to serve as the management personnel of the blockchain nodes in the enterprise blockchain.
[0169] In detail, the format conversion processing of the entity-related data refers to converting the entity-related data into a format suitable for storage in a blockchain, such as a serialization format such as JSON, CSV, etc.
[0170] In the embodiment of the present invention, refer to Figure 3 As shown, a schematic diagram of a process for constructing a digital graph of an enterprise is provided in an embodiment of the present invention. The digital graph of the enterprise is constructed according to the structure of the enterprise blockchain and the data stored in each blockchain node, including:
[0171] S31, extracting graph data contained in each blockchain node;
[0172] S32, using a pre-established graph visualization template to visualize the graph data of each blockchain node to obtain a visualization graph set;
[0173] S33. Establish a connection relationship for all the visual graphs in the visual graph set according to the structure of the enterprise blockchain to obtain a digital graph of the enterprise.
[0174] In detail, the extracting of the graph data contained in each blockchain node refers to extracting the department information, leadership information and employee information contained in each blockchain node as graph data.
[0175] In detail, the pre-established map visualization template needs to be set according to the enterprise's visualization requirements for the digital map. The pre-established map visualization template defines the location of data display, the level of data display, font size, font style, UI and other elements.
[0176] In detail, establishing a connection relationship for all the visual maps in the visual map set according to the structure of the enterprise blockchain to obtain an enterprise digital map means establishing a pyramid-shaped upstream and downstream relationship for all the visual maps according to the structural relationship of the enterprise blockchain.
[0177] In the embodiment of the present invention, the graph data of each blockchain node is visualized by using a pre-established graph visualization template, thereby improving the efficiency of constructing a digital graph.
[0178] In the embodiment of the present invention, the data nodes in the entity-related data are matched with the blockchain nodes of the enterprise blockchain, and the entity-related data is written into the enterprise blockchain according to the matching result, thereby improving the security and transparency of the data. The digital map of the enterprise is constructed according to the structure of the enterprise blockchain and the data stored in each blockchain node, thereby improving the efficiency of constructing the digital map.
[0179] like Figure 4 The figure shows a functional module diagram of a blockchain-based enterprise digital map construction system provided by one embodiment of the present invention.
[0180] The enterprise digital map construction system 100 based on blockchain of the present invention can be installed in an electronic device. According to the functions implemented, the enterprise digital map construction system 100 based on blockchain can include a data acquisition module 101, a data identification module 102, a data association module 103, a data chain module 104 and a map construction module 105. The module of the present invention can also be called a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.
[0181] In this embodiment, the functions of each module / unit are as follows:
[0182] The data acquisition module 101 is used to acquire the structured data, unstructured data and business process data of the enterprise, and identify the index relationship between the structured data and the unstructured data;
[0183] The data identification module 102 is used to perform entity identification on the structured data to obtain an entity set, and to perform encrypted data identification on the unstructured data to obtain an encrypted data set;
[0184] The data association module 103 is used to define attributes for each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, and identify association relationships for each entity in the entity data set to obtain entity association data;
[0185] The data uplink module 104 constructs a blockchain according to the business process data and the structured data to obtain an enterprise blockchain, stores the encrypted data set in the enterprise blockchain, sets access permissions for the encrypted data set through the enterprise blockchain, performs security access monitoring on the encrypted data set, matches the data nodes in the entity-related data with the blockchain nodes of the enterprise blockchain, and writes the entity-related data into the enterprise blockchain according to the matching result;
[0186] The graph construction module 105 constructs a digital graph of the enterprise according to the structure of the enterprise blockchain and the data stored in each blockchain node.
[0187] In detail, each module described in the blockchain-based enterprise digital map construction system 100 in the embodiment of the present invention is used in the same manner as described above. Figures 1 to 3 The technical means are the same as the method for building a digital enterprise map based on blockchain described in the text, and can produce the same technical effects, so I will not go into details here.
[0188] In the embodiments provided by the present invention, it should be understood that the disclosed devices, systems and methods can be implemented in other ways. For example, the system embodiments described above are only schematic, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.
[0189] The modules described as separate components may or may not be physically separated, and the components shown as modules may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0190] In addition, each functional module in each embodiment of the present invention may be integrated into one processing unit, each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of hardware plus software functional modules.
[0191] It is obvious to those skilled in the art that the present invention is not limited to the details of the above exemplary embodiments, and that the present invention can be implemented in other specific forms without departing from the spirit or essential characteristics of the present invention.
[0192] Therefore, no matter from which point of view, the embodiments should be regarded as illustrative and non-restrictive, and the scope of the present invention is limited by the appended claims rather than the above description, so it is intended that all changes falling within the meaning and scope of the equivalent elements of the claims are included in the present invention. Any attached figure mark in the claims should not be regarded as limiting the claims involved.
[0193] The embodiments of the present application can acquire and process relevant data based on artificial intelligence technology. Artificial Intelligence (AI) is the theory, method, technology and application system that uses digital computers or machines controlled by digital computers to simulate, extend and expand human intelligence, perceive the environment, acquire knowledge and use knowledge to obtain the best results.
[0194] In addition, it is clear that the word "comprising" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices stated in the system claim can also be implemented by one unit or device through software or hardware. The words first, second, etc. are used to indicate names, and do not indicate any particular order.
[0195] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.
Claims
1. A method for constructing a digital graph of an enterprise based on blockchain, characterized in that: The method comprises: Acquire structured data, unstructured data, and business process data of the enterprise, and identify index relationships between the structured data and the unstructured data; Performing entity recognition on the structured data to obtain an entity set, and performing encrypted data recognition on the unstructured data to obtain an encrypted data set; Defining attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, and identifying association relationships of each entity in the entity data set to obtain entity association data; Building a blockchain according to the business process data and the structured data to obtain an enterprise blockchain; Storing the encrypted data set in the enterprise blockchain, setting access permissions for the encrypted data set through the enterprise blockchain, and performing security access monitoring on the encrypted data set; The data nodes in the entity-associated data are matched with the blockchain nodes of the enterprise blockchain, and the entity-associated data are written into the enterprise blockchain according to the matching results, and a digital map of the enterprise is constructed according to the structure of the enterprise blockchain and the data stored in each blockchain node.
2. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The identifying the index relationship between the structured data and the unstructured data includes: identifying keywords in the structured data to obtain structured data keywords, and identifying keywords in the unstructured data to obtain unstructured data keywords; Creating index information for the structured data according to the structured data keyword to obtain a structured data index; Creating index information for the unstructured data according to the unstructured data keyword to obtain an unstructured data index; The structured data index and the unstructured data index are relevance matched according to the structured data keyword and the unstructured data keyword to obtain index information.
3. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The performing entity recognition on the structured data to obtain an entity set includes: Define entity types based on pre-determined digital graph construction requirements; Performing a process of removing duplicate values on the structured data to obtain preprocessed structured data; Retrieving the preprocessed structured data according to the entity type to obtain an entity list; A unique identifier is created for each entity in the entity list to obtain an entity set.
4. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The step of performing encrypted data identification on the unstructured data to obtain an encrypted data set includes: The entropy value of each file in the unstructured data is calculated using the following formula: in, is the entropy value of any file in the unstructured data, is the total number of characters in the file, For the document characters, Indicates the file The frequency with which a character appears in the file; Files in the unstructured data whose entropy values are greater than or equal to a preset entropy value threshold are marked as encrypted data to obtain an encrypted data set.
5. The method for constructing a digital enterprise graph based on blockchain according to claim 2, characterized in that: The step of defining attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set includes: Extracting keywords of each entity in the entity set to obtain an entity keyword set; Filter the index information according to each keyword in the entity keyword set to obtain entity index information; Retrieving a set of entity detailed information from the unstructured data according to the entity index information; The entity detailed information set is bound to each entity in the entity set according to the keyword set to obtain an entity data set.
6. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The step of identifying the association relationship of each entity in the entity data set to obtain entity association data includes: Identifying departmental organizational structure data in the structured data; Identify the number of levels of organizational structure data for the department; Constructing a pyramid relationship model according to the department organizational structure data and the number of levels; hierarchically classifying the entity data set according to the number of hierarchies to obtain a hierarchical entity set; Inputting the hierarchical entity set into the pyramid relationship model to obtain pyramid association data; The pyramid associated data is processed by removing blank values to obtain entity associated data.
7. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The step of constructing a blockchain according to the business process data and the structured data to obtain an enterprise blockchain includes: Identify the node data of the structured data to obtain the number of structured nodes; Building a consortium chain based on the node data; Confirming alliance members according to the structured node data to obtain alliance member data; Building a consensus mechanism based on the alliance member data; Design smart contracts based on the business process data; The consensus mechanism and the smart contract are deployed on the alliance chain to obtain an enterprise blockchain.
8. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The performing security access monitoring on the encrypted data set includes: Using the enterprise blockchain to obtain recent access data of the encrypted data set; The security factor of the encrypted data set is calculated based on the access data using the following formula: in, is the safety factor, is the total number of access records in the access data, The access data is The access rights of the access records. About The sign function of For authorized access, the symbol function outputs 1. For unauthorized access, the symbol function outputs 0. The access data is The duration of the visit, is the access time weight parameter, The access data is The number of days between each access record and the current time. The access data is The distance between the access address of each access record and the enterprise; If the safety factor is less than or equal to a preset safety factor threshold, a warning message is sent to the administrator and the access data is sent.
9. The method for constructing a digital enterprise graph based on blockchain according to claim 1, characterized in that: The digital map of the enterprise is constructed according to the structure of the enterprise blockchain and the data stored in each blockchain node, including: Extract the graph data contained in each blockchain node; Use the pre-established graph visualization template to visualize the graph data of each blockchain node to obtain a visualization graph set; According to the structure of the enterprise blockchain, a connection relationship is established for all the visual graphs in the visual graph set to obtain an enterprise digital graph.
10. A blockchain-based enterprise digital graph construction system, characterized in that: The system comprises: A data acquisition module is used to acquire the structured data, unstructured data and business process data of the enterprise, and identify the index relationship between the structured data and the unstructured data; A data identification module, used to perform entity identification on the structured data to obtain an entity set, and to perform encrypted data identification on the unstructured data to obtain an encrypted data set; A data association module, configured to define attributes of each entity in the entity set according to the index relationship and the unstructured data to obtain an entity data set, and identify association relationships of each entity in the entity data set to obtain entity association data; A data on-chain module, which constructs a blockchain according to the business process data and the structured data to obtain an enterprise blockchain, stores the encrypted data set in the enterprise blockchain, sets access rights for the encrypted data set through the enterprise blockchain, performs security access monitoring on the encrypted data set, matches the data nodes in the entity-related data with the blockchain nodes of the enterprise blockchain, and writes the entity-related data into the enterprise blockchain according to the matching result; The graph construction module constructs a digital graph of the enterprise based on the structure of the enterprise blockchain and the data stored in each blockchain node.
Citation Information
Patent Citations
Government affair information intelligent fusion system and method based on big data
CN116415203A
Method and system for generating cold chain transfer data
CN117649163A
