Contract relationship management method and system based on graph data

By managing contractual relationships based on graph data, the problem that existing technology cannot effectively display and manage complex contract relationships is solved, the intuitive display and efficient management of contract relationships are achieved, and the occurrence of legal risks and losses is reduced.

CN118379033BActive Publication Date: 2024-09-13SHANGHAI ZHENLING TECH CO LTD
View PDF 12 Cites 0 Cited by

Patent Information

Application Number
CN202410829090.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-25
Publication Date
2024-09-13
Estimated Expiration
2044-06-25

AI Technical Summary

Technical Problem

The existing contract management system cannot effectively display and dynamically manage the complex relationships between contracts, resulting in the inability to detect and handle conflicts or interactions between contracts in a timely manner, increasing legal risks and the possibility of potential losses.

Method used

Adopting a contract relationship management method based on graph data, by defining contract graph models, extracting and structuring contract element information, establishing contract nodes and relationships, generating contract relationship graphs, and managing complex relationships through graph databases, predicting and displaying direct and indirect relationships , receive user actions to modify or correct relationships, and update the contract relationship graph.

Benefits of technology

It achieves a clear display and intuitive understanding of contractual relationships, improves contract management efficiency, reduces the possibility of management errors, detects and handles conflicts between contracts in a timely manner, and avoids legal risks and unnecessary losses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118379033B
    Figure CN118379033B
Patent Text Reader

Abstract

The present application relates to the field of computer software system processing technology, and specifically to a method and system for contract relationship management based on graph data. The present application scheme converts the contract relationship into corresponding nodes and relationship edges for management based on the idea of ​​graph theory, establishes each node associated with the contract and the relationship between each node, and establishes a contract relationship map in combination with the modeling of the graph database to manage the relationship between each contract. It can not only clearly establish and present the complex relationship between each contract entity, making the complex contract relationship more intuitive and easy to understand, greatly improving the efficiency of contract management, but also can timely discover and deal with possible conflicts or interactions between contracts through the relationship between the established contracts, so as to avoid situations that lead to invalid contracts or invalid clauses, causing legal risks and even unnecessary losses.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer software system processing technology, and in particular to a method and system for contract relationship management based on graph data. Background Art

[0002] A contractual relationship refers to a certain relationship and connection between any two contracts. Traditionally, people tend to evaluate the type of legal relationship based on a single, isolated contract, such as a sales relationship, a commission relationship, etc. There are also cases where multiple contractual relationships with the same purpose are evaluated as a certain type of contract, such as a joint contract, a master-slave contract, etc. However, this approach focuses on the performance and effectiveness level, rather than the relationship management level between multiple contracts. However, in the actual business process, contractual relationship management is the prerequisite for performance and effectiveness.

[0003] In the existing contract management, project management systems and file management systems are often used to manage related contracts. This traditional management method has the following defects:

[0004] First, this management method is mainly through partial classification. Its essence is to simply collect contracts with the same characteristics or affiliation together, which belongs to the category of contract classification. The relationship between contracts is still independent and isolated;

[0005] Second, the richness of market activities leads to the diversity of contracts, which further leads to the complexity of contractual relationships. Single-dimensional classification or general classification cannot show this complex relationship.

[0006] Third, these systems mainly maintain only the static relationship of contracts, but the relationship between contracts is actually a dynamic relationship. For example, the emergence of a new contract may lead to changes in all prior contractual relationships. The original static management method not only cannot present this dynamic relationship, but also cannot handle the dynamic characteristics of contractual relationships.

[0007] Therefore, the existing contract management solutions cannot truly and effectively display and dynamically manage the complex relationships between the above contracts. Summary of the invention

[0008] Based on this, this application proposes a contract relationship management method and system based on graph data to address the above problems, aiming to efficiently maintain and manage the complex relationships of contracts, and further help users to promptly discover and deal with possible conflicts or interactions between contracts when editing and drafting contracts, so as to avoid legal risks and even unnecessary losses.

[0009] On one hand, the present application provides a method for managing contractual relationships based on graph data, characterized in that the method comprises:

[0010] Define the contract graph model nodes, relationship edges and set attribute information, where the nodes at least include contract nodes and legal subject nodes;

[0011] Extract each contract element information and perform structured processing on the contract element information;

[0012] Create a node for each contract and legal entity in the preset graph database;

[0013] Establish relationships between legal subject nodes based on the associated information in the legal subject nodes;

[0014] According to the legal subject information in the contract node, the relationship between the contract node and the legal subject node is established;

[0015] Establish relationships between contract nodes based on element information;

[0016] Generate a contract relationship diagram based on the established nodes and relationships, and render and display the contract relationship diagram;

[0017] Receive the user's instruction to operate the contract relationship diagram, and register the relationship of the contract relationship diagram.

[0018] Furthermore, the node further includes an event node, and the method further includes:

[0019] Create a node for each event and establish the relationship between the event node and the existing nodes;

[0020] The influence of establishing the relationship between event nodes and contract nodes based on the existing relationship and event attributes;

[0021] And, a corresponding subgraph is created based on the information of each node, and a cross-subgraph relationship is established according to the existing relationship between the nodes.

[0022] Furthermore, the method further comprises:

[0023] Acquire a newly added target contract and extract element information of the target contract;

[0024] Determine the ownership of the target contract, and create the target contract node and its attribute information;

[0025] Based on the target contract element information and / or event changes, predict the direct relationship between the target contract node and the prior contract node;

[0026] Based on the path of the previous node, predicting the indirect relationship between the target contract node and the previous node;

[0027] Renderings showing direct and indirect relationships of said predictions;

[0028] Receiving user operations on the predicted relationship, triggering modification or correction of the predicted relationship or content corresponding to the predicted relationship;

[0029] Update the contract relationship diagram and submit for registration.

[0030] Preferably, the predicting the direct relationship between the target contract node and the previous contract node includes:

[0031] Matching the element information of the target contract and the prior contract with the same fields, or acquiring the element information of the target contract and the prior contract with a similarity greater than a preset value, and creating a direct relationship according to the relationship configuration information;

[0032] and / or,

[0033] According to the target contract event change information, an event node is created or updated, a matched relationship of the original event is selected as a direct relationship, and a direct relationship is created or updated;

[0034] Among them, the similarity of the target contract and the prior contract's information on various elements includes:

[0035] ,

[0036] In the formula, sim(T,T i ) is the similarity between the target contract and the i-th prior contract elements, , are the vector representations of the structured element field contents of the target contract and the i-th prior contract, respectively. , are the corresponding L2 norms respectively.

[0037] Further, the method comprises:

[0038] Calculate the strength of the relationship between two contract nodes:

[0039] ,

[0040] Among them, R is the relationship strength, S i The number of identical attribute fields of the i-th attribute field of the structured information of two contract nodes, is the corresponding weight, L is the number of times two contracts are connected;

[0041] Generates connecting relationship edges with transparency anti-correlated with relationship strength;

[0042] Render and display the connection relationship edges.

[0043] Furthermore, the method further comprises:

[0044] Receive a user's selection or focus operation on the relationship diagram;

[0045] Determine the graph node and / or edge target object corresponding to the operation;

[0046] The target nodes and / or target relationships associated with the target object are displayed in a first manner, and the nodes and relationships not associated with the target object are displayed in a second manner; further, if the target object is an edge, the edge and the associated graph nodes are displayed in a first manner, and the detailed relationship corresponding to the edge is displayed at a preset position of the edge.

[0047] The second aspect of the present application provides a contract relationship management system based on graph data, the system comprising a graph model definition configuration module, a drafting module, a relationship deduction module, a relationship graph display module, and a relationship registration module, wherein the counterparty management module is used to input, store, and manage the subject information of the contract parties;

[0048] The graph model definition configuration module is used to define the contract graph model nodes, relationship configuration and attribute information;

[0049] The relationship deduction module is used to establish nodes and deduce and calculate contractual relationships;

[0050] The relationship diagram display module is used to generate a contract relationship diagram according to the nodes and contract relationships, and render and display the contract relationship diagram;

[0051] The relationship registration module is used to register the confirmed relationship.

[0052] The third aspect of the present application provides a computer-readable storage medium storing a computer program, which, when executed by a processor, enables the processor to perform the steps of any one of the above methods.

[0053] A fourth aspect of the present application provides a computer terminal device, comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of any one of the above methods.

[0054] The graph data-based contract relationship management solution provided in the present application defines a contract relationship graph model and configuration, converts the contract relationship into corresponding nodes and relationship edges for management based on graph theory, establishes nodes associated with the contract and the relationship between each node, and combines the modeling of the graph database to establish a contract relationship graph to manage the relationship between each contract. It can not only clearly establish and present the complex relationship between each contract entity, but also make the complex contract relationship more intuitive and easy to understand, which greatly improves the efficiency of contract management and reduces the possibility of management errors.

[0055] Furthermore, the present application solution can also help analyze risk propagation paths through changes in contractual relationships or events by establishing graph relationships, and timely discover and deal with possible conflicts or interactions between contracts when drafting, reviewing, and signing contracts, so as to avoid situations that lead to invalid contracts or invalid clauses, causing potential legal risks and even unnecessary losses. BRIEF DESCRIPTION OF THE DRAWINGS

[0056] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0057] in:

[0058] Figure 1 A flowchart of a method for managing a contractual relationship based on graph data in some embodiments;

[0059] Figure 2 A rendering of a relationship graph is established for a newly added contract in some embodiments;

[0060] Figure 3 A structural block diagram of a contract relationship management system based on graph data in some embodiments;

[0061] Figure 4 is a structural block diagram of a computer device in some embodiments. DETAILED DESCRIPTION

[0062] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0063] The terms "include", "comprising" and "having" and any variations thereof in the specification and claims of the present application and the above-mentioned drawings are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units that are not listed, or may optionally include other steps or units that are inherent to these processes, methods, products or devices. In the claims, specification and drawings of the present application, relational terms such as "first" and "second" are merely used to distinguish one entity / operation / object from another entity / operation / object, and do not necessarily require or imply any such actual relationship or order between these entities / operations / objects.

[0064] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least some embodiments of the present application. The occurrence of the phrase at various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0065] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0066] like Figure 1 The flowchart of the present application is a method for managing a contract relationship based on graph data, the method comprising:

[0067] S10. Define the contract graph model nodes, relationship configuration and set attribute information, where the nodes at least include contract nodes and legal entity nodes.

[0068] When defining a contract graph model, it is necessary to consider the structure of the contract, the entities involved, and the relationships between them. Based on a graph database, nodes usually represent entities, and relationship edges represent the connections between entities. In some embodiments of the present application, after defining a contract graph model, contract information is extracted and content is configured for each contract through relationship configuration. The contract relationship graph model configuration includes:

[0069] (1) Node definition and setting, including the following nodes: legal entity, contract. Furthermore, the nodes defined in this application also include event nodes.

[0070] (2) Node attribute settings: the legal entity node attributes include: name, type, place of registration, associated person, tense, etc.;

[0071] The contract node attributes include: number, legal subject, event, subject matter, price, business content, version, status, etc. The contract node attribute information can be obtained through element extraction.

[0072] Event node attributes include: commitment and behavior. Among them, commitment refers to some important terms or contents that may cause changes in the relationship, and behavior refers to the corresponding executable rights and obligations content execution behavior and corresponding legal behavior agreed in the contract.

[0073] (3) Relationship definition and configuration, including the following relationships: business relationship, financial relationship, legal relationship, and other custom relationships. Among them, business relationships may include: customer relationship, supplier relationship, execution relationship (signing, performance), etc.; financial relationships may include: investment, investment, creditor, debtor, internal unit, employee, etc.; economic interest relationship between entities and legal relationships include: master-slave relationship, supplementary relationship, change relationship, parent-child relationship, complete substitution relationship, formal relationship (formal contract and substantive contract), joint relationship, pre-contract relationship (pre-contract and main contract), etc.

[0074] (4) Other custom nodes and relationships.

[0075] In some embodiments of the present application, a reserved response interface is used to allow users to customize related nodes and relationships.

[0076] The configuration of any relationship must be subject to relationship rule validity verification, that is, the integrity of nodes, node attributes, and edges must be verified. If a parameter is missing, the user will be prompted that the relationship rule configuration is invalid.

[0077] S11. Extract each contract element information and perform structured processing on the contract element information.

[0078] Specifically, the contract elements of each independent contract are extracted and displayed. AI or natural language processing technology (NLP) or text mining technology is used to identify and extract the legal entities, terms, subject matter, amounts, inclusion relationships (such as reference, dependency or complementarity) in the contract, etc., and the extracted data is cleaned, irrelevant information is removed, errors are corrected, and other pre-processing is performed before display, editing and modification.

[0079] Furthermore, the present application scheme also includes converting or calculating the contents of certain fields in the pre-processed raw data, such as converting the amount field from a string to a numeric type, such as converting the corresponding field content expression, etc., to ensure the consistency of the data, and then organizing the element information according to the preset data structure to organize the element information into structured information related to the current contract. In one embodiment, the structured information is processed by mapping the extracted information into fields. For example, by defining the preset data structure field attributes (legal entity attributes, project attributes, corresponding relationship type attributes) and mapping the processed raw data to the corresponding fields of the data structure of the current contract. After extracting and generating the structured element information, the system can subsequently facilitate the establishment of nodes and the deduction and calculation of contractual relationships based on each of the element information.

[0080] Furthermore, the present application scheme also classifies and identifies the extracted contract element information according to the definition fields of the contract relationship graph model. For example, the elements are classified into subject type, relationship type, and event type according to the extraction and recognition results, or the subject identifier, relationship identifier, and event identifier are set for the corresponding element information.

[0081] S12. Establish a node for each contract and legal entity in the preset graph database.

[0082] Specifically, you first need to select a suitable graph database system, such as Neo4j, OrientDB, GraphX, ArangoDB, etc., then install and configure the graph database environment to ensure that it runs normally and can receive new nodes and relationships, and then retrieve the relevant information of each contract and use Cypher language or corresponding API to create nodes. Creating nodes includes:

[0083] A contract node is created for each independent contract, and the attribute information of the contract node is set according to the field and / or tag information of the element information of the contract. A legal subject node is created for each legal subject, and the attribute information of the legal subject node is set. Furthermore, in some embodiments of the present application, an event node is also created for each event and the attribute information of the event node is set.

[0084] S13. Establish relationships between legal subject nodes based on the associated information in the legal subject nodes.

[0085] Specifically, after establishing each legal entity node, the relationship between the legal entity nodes can be established based on the association information between the legal entities. For example, if entity A is a subsidiary of entity B, a corresponding investment relationship can be established between the nodes corresponding to entity A and entity B. The association information can be an associated person, an associated event, etc. The application solution can be connected to the upstream system through the interface, such as CRM, SRM, etc., to obtain the relevant association information and supplier information of the corresponding parties.

[0086] S14. Establish the relationship between the contract node and each legal entity node based on the legal entity information in the same node.

[0087] Specifically, the relationship between each contract node and each legal entity node is established through the legal entity information contained in the extracted contract elements. For example, a relationship is established with the corresponding legal entity node based on the signatory, performer, provider, recipient, etc. involved in the content of each contract.

[0088] S15. Establish the relationship between contract nodes based on the element information.

[0089] Preferably, by reading the corresponding content and clause information of the relationship type label or classification of each contract element information, and combining the relationship definition configuration information in the contract relationship graph model defined above, the relationship corresponding to the relationship content is matched, and the corresponding relationship between the corresponding contract nodes and contract nodes is created. For example, if the content of an element information belonging to the relationship type extracted from contract a indicates that it is a supplement to contract b, the relationship configuration information is matched and searched, and it belongs to a supplementary agreement relationship, then a supplementary agreement relationship is established in the nodes corresponding to contract a and contract b.

[0090] S16. Generate a contract relationship diagram based on the established nodes and relationships, and render and display the contract relationship diagram.

[0091] Specifically, a graph visualization tool (such as Graphviz, Gephi, D3.js, Vis.js, etc.) can be used to render and display the constructed contract relationship graph by executing graph traversal query statements or corresponding API functions. For example, in a Web application, D3.js is used to obtain data from a Neo4j database and render it into an interactive SVG graph or other type of graph.

[0092] S17, receiving the user's instruction to operate the contract relationship diagram, and registering the relationship of the contract relationship diagram.

[0093] Specifically, the operation instruction can be a user's confirmation or submission operation instruction. The established nodes and relationships need to be registered to form a formal relationship. In some embodiments, the confirmed attribute is set for the above-mentioned established contractual relationships. Before the user confirms, the attribute value is false; after the user confirms or submits, the confirmed attribute with a value of false is modified to true, that is, it is registered as a formal node and relationship, and the contract relationship graph is recorded in the graph database.

[0094] Furthermore, when establishing the relationship, the method further includes:

[0095] Extract event information from the contract and create a node for each event. According to the attribute information in the event node, establish the relationship between the event node and the existing nodes.

[0096] Specifically, based on the extraction of elements, the corresponding executable rights and obligations set in the contract content, the behaviors and events of the commitment content are obtained, a node is established for each event, and the relationship between the event node and the existing contract node and the legal subject node is established based on the behavior and / or commitment. For example, a sales contract may contain executable rights and obligations including packaging, transportation, warehousing, acceptance, payment, invoicing and other behavioral events. Then, an event node is established based on the above content, and the association relationship between the event node and the corresponding other nodes is established based on the content information of the event.

[0097] Establish the impact of the relationship between event nodes and contract nodes based on the existing relationship and event attributes.

[0098] Specifically, in some embodiments of the present application, a preset evaluation system is established to quantify and evaluate the impact of specific events on contract terms, contract execution, and the rights and interests of both parties to the contract, including:

[0099] Define event types: Identify the various impact parameters that may occur as a result of the event, such as breach of contract, contract change, force majeure, contract renewal, etc.

[0100] Determine the probability of occurrence: List the various factors that affect the contract and determine the probability of their occurrence.

[0101] Quantitative evaluation indicators: define quantitative indicators, including: loss impact, progress impact, legal impact, reputation impact, etc.

[0102] Establish evaluation criteria: Based on quantitative indicators, establish evaluation criteria, such as slight impact, medium impact, and major impact.

[0103] Preferably, in one embodiment of the present application, loss impact is used as an indicator to evaluate the impact of an event on a contractual relationship, including the following process:

[0104] (1) Establish a multi-dimensional evaluation system model:

[0105] ,

[0106] Among them, I is the quantitative value of the event impact, E i is the quantitative score value when the i-th influencing parameter occurs, is the weight of the i-th parameter, p i is the probability of the occurrence of the ith event. The quantitative score value and weight of each influencing parameter can be determined through expert scoring, stakeholder meetings or historical data analysis.

[0107] Set evaluation criteria and influence assessment:

[0108] Set the evaluation criteria thresholds d and h (where d

[0109] If I

[0110] If d≤I

[0111] If I ≥ h, the impact of the event is significant.

[0112] Furthermore, in some embodiments of the present application, the influence of the relationship between the event node and other nodes can also be established according to the above scheme.

[0113] Furthermore, some embodiments of the present application also include creating a subgraph and establishing a cross-subgraph relationship, specifically including:

[0114] Create a project subgraph: Create a contract node under the project subgraph for direct contracts under the same project framework; for established contract nodes, you can add and create contract nodes in the corresponding project subgraph based on the user's selection; for newly added or drafted contracts, you can directly add and create the newly added or drafted contract node in the project subgraph based on the project information on which the contract is based.

[0115] Create a subject group subgraph: create legal subject nodes under the subject group subgraph for legal subjects within the same jurisdiction or related to each other; a corresponding subject group subgraph can be established based on the control relationship or non-control relationship between legal subjects.

[0116] Create a contract plan subgraph: Create contract nodes under the contract plan subgraph for each version of the same contract; you can directly add and create the new or proposed contract node in the project subgraph based on the contract version information of the contract.

[0117] Establishing cross-subgraph relationships: After creating each subgraph, you can establish cross-subgraph relationships based on the existing relationships between the above nodes.

[0118] The above-mentioned embodiments of the present application define a contract relationship graph model and configuration, convert the contract relationship into corresponding nodes and relationship edges for management based on graph theory, establish each node associated with the contract and the relationship between each node, and establish a contract relationship graph in combination with the modeling of the graph database to manage the relationship between each contract. This can not only clearly establish and present the complex relationship between each contract entity, but also make the complex contract relationship more intuitive and easy to understand, greatly improve the efficiency of contract management, and reduce the possibility of management errors.

[0119] In other embodiments, the embodiments of the present application include:

[0120] Calculate the strength of the relationship between two contract nodes:

[0121] ,

[0122] Among them, R is the relationship strength, S i is the number of identical contents of the i-th attribute field of the structured information of two contract nodes (such as the number of identical contents of corresponding fields in the attributes such as legal subject, project, subject matter, price, corresponding relationship, etc.). is the corresponding weight, L is the number of times two contracts are connected;

[0123] Generate contract node-connected relationship edges with transparency anti-correlated with relationship strength;

[0124] Render and display the connection relationship edges.

[0125] The above-mentioned implementation mode of the present application calculates the relationship strength between contract nodes according to the same attribute information of the contract nodes, and generates and renders connection relationship edges based on the relationship strength, so as to clearly establish and present the complex relationship between various contract entities.

[0126] In other embodiments, the embodiments of the present application further include:

[0127] Receives user selection or focus operations on the relationship graph.

[0128] Specifically, the selection or focusing operation may be a click, double-click, select, hover, or other operation.

[0129] Determine a graph node and / or edge target object corresponding to the operation, display nodes and / or relationships associated with the target object in a first manner, and display nodes and relationships not associated with the target object in a second manner.

[0130] Specifically, the graph node or edge selected by the operation is determined according to the user's operation position, and other nodes and / or relationship edges associated with the graph node or edge are obtained and displayed in a first manner, and other unassociated nodes and relationships are displayed in a second manner to help users better display the relationship network of the node. The first manner may be highlighted, and the second manner may be dimmed or displayed with increased transparency.

[0131] Furthermore, if the target object is an edge, the edge and the associated graph nodes are displayed in a first manner, and the detailed relationship corresponding to the edge is displayed at a preset position of the edge. For example, detailed information of the element corresponding to the edge is obtained and displayed near the edge, so as to facilitate the user to directly obtain and understand the meaning and specific content corresponding to the relationship edge.

[0132] In another embodiment, when there is a new or proposed contract, the implementation scheme of this application further includes:

[0133] S20. Acquire a newly added target contract and extract element information of the target contract.

[0134] Specifically, the newly added target contract mainly includes the newly added contract in the contract drafting and the newly uploaded new contract. For the newly added contract, the element information of the newly added or drafted contract can be extracted based on the above step S11 and the element information can be processed accordingly.

[0135] S21. Determine the ownership of the target contract, and create a target contract node and its attribute information in the attributable subgraph.

[0136] Specifically, attribution refers to the source of the currently drafted or newly added contract, such as which project the target contract belongs to or which prior contract it was created based on. The source information of the contract can be obtained by manually entering the contract creation method and the corresponding subordinate clause information and reference information of the contract content.

[0137] After determining the ownership of the target contract, determine whether the corresponding subgraph (such as contract plan subgraph, project subgraph) already exists. If not, create the corresponding subgraph and create the current contract node and contract node attributes in the created subgraph. If it exists, directly create the current contract node and contract node attributes in the subgraph.

[0138] Furthermore, if the legal entity node and event node related to the target contract are not included in the nodes in the current relationship graph, corresponding newly added legal entity nodes and event nodes are established.

[0139] S22. Based on the target contract element information and / or event changes, predict the direct relationship between the target contract node and the prior contract node.

[0140] Preferably, the predicting of the direct relationship between the target contract node and the prior contract node includes predicting based on contract element information and predicting based on event change information in the target contract. Predicting based on contract element information includes:

[0141] Matching the element information of each prior contract with the target contract that has one or more identical fields, and creating a direct relationship according to the relationship configuration: that is, performing a matching query on one or more preset fields of the target contract element information and each prior contract element information field; if the matching query is successful, predicting that the target contract node has a direct relationship with the prior contract node, obtaining relationship configuration unit information, and creating the direct relationship; and / or,

[0142] The contract element information is converted into vector representation through TF-IDF, Word2Vec and other methods;

[0143] Calculate the similarity between the target contract and the prior contract information:

[0144] ,

[0145] Among them, T and T i are respectively vector representations of the target contract element information and the i-th prior contract element information field contents;

[0146] If the similarity is greater than a preset threshold, the relationship corresponding to the element is matched according to the relationship configuration unit information to create the direct relationship.

[0147] Further, predicting a direct relationship based on an event change includes: creating or updating an event node according to the target contract event change information, selecting the original event matched relationship as a direct relationship, and creating or updating the direct relationship. Specifically, if the target contract has a change in the corresponding event with the prior contract, the original event node is updated, the original event matched relationship is selected as a direct relationship, and the direct relationship is created or updated.

[0148] S23. Based on the paths of the preceding nodes connected by the direct relationships, predict the indirect relationships between the target contract node and each preceding node.

[0149] Specifically, based on the above predicted direct relationship, the relationship between the target contract and the prior contract can be preliminarily established, and the target contract node can be added to the prior contract relationship graph. At this time, the shortest path length from the target contract node to each prior contract node is calculated based on the shortest path algorithm in graph theory (such as the Dijkstra algorithm or the Floyd-Warshall algorithm), and the indirect relationship between the new contract and the existing prior contract is inferred based on the relationship type on the shortest path.

[0150] Alternatively, the target prior contract whose shortest path is shorter than a preset path is found through the shortest path algorithm, and then the element information of the target contract and the prior contract are matched and identified, and an indirect relationship is established.

[0151] S24: Rendering and displaying the predicted direct and indirect relationships.

[0152] Specifically, a graphic visualization tool is used to render and display the predicted direct and indirect relationships. In one embodiment, different line types (solid, thick, dashed, or thin) can be used, and different colors can also be used to distinguish different relationship types or strengths. Preset identification symbols (such as question marks) can also be added to the predicted relationship edges to prompt the user to confirm the modification.

[0153] like Figure 2 The above is a rendering result map of contractual relationships established when a new draft contract is prepared in one embodiment of the present application (some relationships are not shown in the figure).

[0154] S25. Receive the user's operation on the predicted relationship, and trigger modification or correction of the predicted relationship or content corresponding to the predicted relationship.

[0155] After rendering and displaying the predicted relationship, the user can select the relationship by performing a preset first operation (such as single-clicking or selecting) on ​​the predicted relationship, and modify or correct the relationship based on his or her professional knowledge.

[0156] Since the addition of a new contract will generate a new relationship, it may even affect the changes of other prior relationships, such as affecting the changes of some previously stable relationships. Therefore, after displaying the predicted relationship, an implementation scheme of the present application also provides an interface for the user to preset the corresponding relationship through a second operation (such as double-clicking), and locate the clauses or content corresponding to the newly added contract to allow the user to re-modify and confirm the newly added contract content. For example, if the user does not want some of the original stable relationships to change, the user can modify the individual clauses therein to avoid changes to some of the original stable relationships.

[0157] S26. Update the contract relationship diagram and submit for registration.

[0158] Specifically, once the user's confirmation and submission instructions are received, the system automatically updates the contract relationship graph and formally registers the corresponding new or changed nodes and relationships in the graph database.

[0159] The above implementation scheme of the present application can help analyze the risk propagation path by analyzing the changes in contractual relationships or events, and timely discover and deal with possible conflicts in contractual relationships when drafting, reviewing, and signing contracts, so as to avoid situations that lead to invalid contracts or invalid clauses and cause unnecessary losses.

[0160] In one embodiment, if Figure 3 The figure shows a structural block diagram of the contract relationship management system based on graph data proposed in this application, wherein the system includes a graph model definition configuration module, a simulation module, a relationship deduction module, a relationship graph display module, and a relationship registration module, wherein:

[0161] The graph model definition configuration module is used to define the contract graph model nodes, relationship configuration and attribute information.

[0162] The drafting module is used to draft, edit and obtain the element information of the current contract. The drafting module provides contract drafting and editing functions, relationship simulation, existing relationship display and other functions, including:

[0163] Contract editing unit: used to provide contract drafting and editing;

[0164] Contract element unit: used to obtain the current contract element information and generate structured information related to the current contract;

[0165] Commitment management unit: used to obtain and manage the commitment information of the current contract, such as important terms and commitment information in the current contract;

[0166] Display unit: used to display the information of each element.

[0167] The relationship deduction module is used to establish nodes and deduce and calculate contractual relationships. This module mainly implements the establishment of object nodes and relationship prediction, including the establishment of contract nodes, legal subject nodes, event nodes, and attribute information of each node, and the establishment of relationships between nodes. Furthermore, when the user is drafting a contract, modifying a contractual relationship, or operating an event, the relationship deduction module will be triggered.

[0168] The relationship diagram display module is used to generate a contract relationship diagram according to the nodes and contract relationships, and render and display the contract relationship diagram.

[0169] The relationship registration module is used to register the confirmed relationship.

[0170] Furthermore, the system also includes a counterparty management module: the counterparty management module is used to input, store, and manage the principal information of the contract parties. Specifically, during the contract creation process, the counterparty management module provides the function of inputting the principal information of the parties to the current contract, and stores, associates, and manages the inputted principal information of the parties.

[0171] In some embodiments, the present application further provides a computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor performs the following steps:

[0172] Define the node and relationship configuration of the contract relationship graph model, where the nodes at least include contract nodes and legal entity nodes;

[0173] Extracting contract element information and processing the contract element information;

[0174] Create a node for each independent contract and legal entity in the preset graph database;

[0175] Establish relationships between legal subject nodes based on the associated information in the legal subject nodes;

[0176] According to the legal subject information in the contract node, the relationship between the contract node and the legal subject node is established;

[0177] Establish relationships between contract nodes based on element information;

[0178] Generate a contract relationship diagram based on the established nodes and relationships, and render and display the contract relationship diagram;

[0179] Receive the user's confirmation of the contractual relationship or submit an operation instruction, and register the contractual relationship.

[0180] In some embodiments, Figure 4 The present application also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor performs the following steps:

[0181] Define the node and relationship configuration of the contract relationship graph model, where the nodes at least include contract nodes and legal entity nodes;

[0182] Extracting contract element information and processing the contract element information;

[0183] Create a node for each independent contract and legal entity in the preset graph database;

[0184] Establish relationships between legal subject nodes based on the associated information in the legal subject nodes;

[0185] According to the legal subject information in the contract node, the relationship between the contract node and the legal subject node is established;

[0186] Establish relationships between contract nodes based on prime information;

[0187] Generate a contract relationship diagram based on the established nodes and relationships, and render and display the contract relationship diagram;

[0188] Receive the user's confirmation of the contractual relationship or submit an operation instruction, and register the contractual relationship.

[0189] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the program can be stored in a non-volatile computer-readable storage medium. When the program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application can include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM).

[0190] The technical features of the above embodiments may be combined arbitrarily. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0191] The above-mentioned embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.

Claims

1. A method for managing contractual relationships based on graph data, characterized in that: The method comprises: Define the node and relationship configuration of the contract relationship graph model, wherein the nodes at least include contract nodes and legal entity nodes; Extract contract element information and perform structured processing on the contract element information; Create a node for each independent contract and legal entity in the preset graph database; Establish relationships between legal subject nodes based on the associated information in the legal subject nodes; According to the legal subject information in the contract node, the relationship between the contract node and the legal subject node is established; Establish relationships between contract nodes based on element information; Generate a contract relationship diagram based on the established nodes and relationships, and render and display the contract relationship diagram; Receiving a user's instruction to operate a contract relationship diagram, and registering the relationship of the contract relationship diagram; The method further comprises: Obtain instructions for adding new target contracts or modifying contract data to trigger contract relationship deduction; Establish new target contracts or modify corresponding nodes of contract data and deduce and predict corresponding contract relationships, including: Based on the element information and / or event changes of the target contract or modified contract, predict the direct relationship between the node corresponding to the newly added target contract or modified contract data and the previous node; Based on the direct relationship and the path of the previous node, the indirect relationship between the node corresponding to the newly added target contract or modified contract data and the previous node is predicted, or, based on the path of the previous node, the indirect relationship between the node corresponding to the newly added target contract or modified contract data and the previous node is predicted.

2. The method according to claim 1, characterized in that The method further comprises: Create a node for each event and establish the relationship between the event node and the existing nodes; Establish the impact of the relationship between event nodes and contract nodes based on the existing relationship and event attributes.

3. The method according to claim 2, characterized in that The method further comprises: Create corresponding subgraphs based on each node information; Establish cross-subgraph relationships based on existing relationships between nodes.

4. The method according to claim 3, characterized in that The method further comprises: Extracting element information of the target contract; Determine the ownership of the target contract, and create the target contract node and its attribute information; The rendering shows the predicted contractual relationship; Receiving user operations on the predicted relationship, triggering modification or correction of the predicted relationship or content corresponding to the predicted relationship; Update the contract relationship diagram and submit for registration.

5. The method according to claim 4, characterized in that The predicting of the direct relationship between the node corresponding to the newly added target contract or modified contract data and the previous node based on the element information and / or event changes of the target contract or modified contract includes: Matching element information with the same fields as the prior contract, or obtaining element information with a similarity between the target contract and the prior contract element information greater than a preset value, and creating a direct relationship according to the relationship configuration information; and / or, According to the target contract event change information, an event node is created or updated, the original event matched relationship is selected as a direct relationship, and the direct relationship is created or updated.

6. The method according to any one of claims 1 to 5, characterized in that: The method comprises: Calculate the strength of the relationship between two contract nodes: , Among them, R is the relationship strength, S i The number of identical attribute fields of the i-th attribute field of the structured information of two contract nodes, is the corresponding weight, L is the number of connections between two contracts; Generates connecting relationship edges with transparency anti-correlated with relationship strength; Render and display the connection relationship edges.

7. The method according to any one of claims 1 to 5, characterized in that: The method further comprises: Receive a user's selection or focus operation on the relationship diagram; Determine the graph node and / or edge target object corresponding to the operation; The nodes and / or relationships associated with the target object are displayed in a first manner, and the nodes and relationships not associated with the target object are displayed in a second manner.

8. A contract relationship management system based on graph data, the system comprising a graph model definition configuration module, a simulation module, a relationship deduction module, a relationship graph display module, and a relationship registration module, characterized in that: The graph model definition configuration module is used to define the contract graph model nodes, relationship configuration and attribute information; The drafting module is used to draft, edit and obtain the element information of the current contract; The relationship deduction module is used to establish nodes and deduce and calculate contractual relationships; The relationship diagram display module is used to generate a contract relationship diagram according to the nodes and contract relationships, and render and display the contract relationship diagram; The relationship registration module is used to register the confirmed relationship; The system further comprises: Obtain instructions for adding new target contracts or modifying contract data to trigger contract relationship deduction; Establish new target contracts or modify corresponding nodes of contract data and deduce and predict corresponding contract relationships, including: Based on the element information and / or event changes of the target contract or modified contract, predict the direct relationship between the node corresponding to the newly added target contract or modified contract data and the previous node; Based on the direct relationship and the path of the previous node, the indirect relationship between the node corresponding to the newly added target contract or modified contract data and the previous node is predicted, or, based on the path of the previous node, the indirect relationship between the node corresponding to the newly added target contract or modified contract data and the previous node is predicted.

9. A computer-readable storage medium storing a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the steps of the method according to any one of claims 1 to 7.

10. A computer device comprising a memory and a processor, wherein the memory stores a computer program, and when the computer program is executed by the processor, the processor executes the steps of the method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Budget management knowledge graph construction method and device and budget management knowledge graph application method and device

    CN112699245A

  • Relationship graph display method, device, electronic equipment and medium

    CN113609343A

  • Contract management method and device based on knowledge graph classification

    CN115422904A

  • Contract term risk check method, system and device and storage medium

    CN116843175A

  • Intelligent legal contract generation method and device, electronic equipment and storage medium

    CN117311726A