A railway bureau configuration file error prevention system based on domain knowledge graph
By constructing a knowledge graph in the railway field and querying and correcting it in the graph database, automatic detection and correction of railway bureau configuration files are realized, which solves the inefficiency problem of configuration file verification and maintenance in the existing technology, and improves work efficiency and configuration files. correctness.
Patent Information
- Application Number
- CN202110955610.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-19
- Publication Date
- 2024-10-18
- Estimated Expiration
- 2041-08-19
AI Technical Summary
Existing Technology In the field of railway science and technology, data verification and system maintenance of railway bureau configuration files have problems such as large data volume, non-compliant formats, cumbersome inspections, manual dependence, and the need for continuous maintenance for error correction, especially in protocols and data. Inefficiency when specifications change.
The railway bureau configuration file error prevention system based on the domain knowledge map is used to obtain railway domain data through the data acquisition unit, build the railway domain knowledge map, and query and modify the configuration file in the graph database to achieve automated detection and error correction.
It improves work efficiency, ensures the correctness of road bureau configuration files, solves the problem of automatic error correction and maintenance, reduces manual maintenance costs, and adapts to changes in protocols and data specifications.
Smart Images

Figure CN113704491B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of railway science and technology, and in particular to a railway bureau configuration file error prevention system based on a domain knowledge graph. Background Art
[0002] When the TDCS (Train Dispatching Command System) centers of various railway bureaus of the China Railway Corporation exchange station display data with the Ministry's TDCS centers, and when the TDCS centers of various railway bureaus exchange station display data with each other, a railway bureau configuration file of type cfg is used. When exchanging the configuration files of neighboring railway bureaus with other TDCS / CTC manufacturers, there are problems such as large data volume, format not meeting the Ministry's standards, and configuration not meeting the Ministry's standards, which brings many difficulties to data verification and system maintenance.
[0003] Currently, there are two main solutions for checking and correcting the bureau configuration files:
[0004] Solution 1: The railway bureau configuration file in the Ministry Standard Agreement contains a large amount of key data for the operation diagram display. Each part of the data has its own strict content definition and format specifications. Incorrect data content or irregular format will lead to errors in the operation diagram display. In actual application scenarios, due to the lack of standardized methods, the data inspection and correction work is extremely cumbersome and is mainly verified manually.
[0005] However, Solution 1 mainly relies on manual work, which has obvious disadvantages of missed detection, high error rate, time consumption, and manpower consumption.
[0006] Solution 2: Automatic normalization of railway bureau configuration files relies on computer programs to complete data self-check logic. Its characteristic is that it uses customized self-check logic to check the content and format of each data in the railway bureau configuration file according to the departmental standard protocol. When an error is detected, it can output an error message. When executing, the self-check logic checks whether the format of the included row data is valid (format check) and whether the read-in data is legal (segment check), and performs correlation comparison with other types of data to ensure data consistency and validity (correlation check). The main inspection methods include checking whether the station configuration code is repeated, checking that the spacing between the sub-map switching points and lines cannot be 0, checking whether the base map station name is consistent with the station configuration name, and checking whether the base map station code corresponds to the station code.
[0007] However, the correction of errors in Solution 2 still needs to be done manually. At the same time, when the protocol and data specifications change, the established self-checking logic will no longer be applicable, and developers will need to continuously maintain the program code. At the same time, queries based on relational databases are prone to inefficiency when faced with complex and multi-level data verification. Summary of the invention
[0008] The purpose of the present invention is to provide a railway bureau configuration file error prevention system based on a domain knowledge graph, which can automatically check the information of the railway bureau configuration file and automatically correct errors, thereby improving work efficiency.
[0009] The objective of the present invention is achieved through the following technical solutions:
[0010] A railway bureau configuration file error prevention system based on domain knowledge graph, comprising:
[0011] A data acquisition unit, used to acquire data for constructing a railway field knowledge graph from a data source;
[0012] The railway domain knowledge graph construction and storage unit is used to obtain relevant data from the data acquisition unit, extract railway-related entities, entity-related information, and the relationship between different entities, use the entity-related information as the entity's attributes, use the relationship between entities to build edges between different entities, associate the entities, form a railway domain knowledge graph, and store it as a graph database;
[0013] The information query and correction unit identifies the dispatching section data from the input railway bureau configuration file, extracts the corresponding dispatching desk information, queries the corresponding dispatching desk code, the station managed by the corresponding dispatching desk and the station code in the graph database, compares the query result with the information in the railway bureau configuration file, and if there is any inconsistency, uses the query result to correct the railway bureau configuration file; among them, the specific dispatching desk, station, section and track that need to be queried are all entities.
[0014] It can be seen from the technical solution provided by the present invention that by using the method of domain knowledge graph to construct a knowledge graph of railway dispatching static data, querying and realizing automatic detection of erroneous content and file data correction in the graph database, not only work efficiency can be improved, but also the correctness of the railway bureau configuration files can be ensured. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.
[0016] Figure 1 A schematic diagram of a railway bureau configuration file error prevention system based on a domain knowledge graph provided by an embodiment of the present invention;
[0017] Figure 2 A schematic diagram of the main concepts and relationship patterns in the railway field provided by an embodiment of the present invention;
[0018] Figure 3 A schematic diagram of storing entities and relationships in a railway scheduling domain knowledge graph into a Neo4j graph database provided by an embodiment of the present invention;
[0019] Figure 4 This is a flowchart of error correction of a railway bureau configuration file provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0020] The following is a clear and complete description of the technical solutions in the embodiments of the present invention in conjunction with the drawings 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 protection scope of the present invention.
[0021] First, the terms that may be used in this article are explained as follows:
[0022] The terms "include", "comprises", "contains", "has" or other descriptions with similar semantics should be interpreted as non-exclusive inclusion. For example, including certain technical feature elements (such as raw materials, components, ingredients, carriers, dosage forms, materials, dimensions, parts, components, mechanisms, devices, steps, procedures, methods, reaction conditions, processing conditions, parameters, algorithms, signals, data, products or products, etc.) should be interpreted as including not only certain technical feature elements explicitly listed, but also other technical feature elements known in the art that are not explicitly listed.
[0023] The term "consisting of..." means excluding any technical feature elements not explicitly listed. If this term is used in a claim, it will make the claim closed, so that it does not contain technical feature elements other than the technical feature elements explicitly listed, except for the conventional impurities related to them. If this term only appears in a clause of a claim, it only limits the elements explicitly listed in the clause, and the elements recorded in other clauses are not excluded from the overall claim.
[0024] The following is a detailed description of a railway bureau configuration file error prevention system based on a domain knowledge graph provided by the present invention. The contents not described in detail in the embodiments of the present invention belong to the prior art known to professional and technical personnel in the field. If no specific conditions are specified in the embodiments of the present invention, they shall be carried out in accordance with the conventional conditions in the field or the conditions recommended by the manufacturer. Figure 1 As shown, the system mainly includes:
[0025] A data acquisition unit, used to acquire data for constructing a railway field knowledge graph from a data source;
[0026] The railway domain knowledge graph construction and storage unit is used to obtain relevant data from the data acquisition unit, extract railway-related entities, entity-related information, and the relationship between different entities, use the entity-related information as the entity's attributes, use the relationship between entities to build edges between different entities, associate the entities, form a railway domain knowledge graph, and store it as a graph database;
[0027] The information query and correction unit identifies the dispatching section data from the input railway bureau configuration file, extracts the corresponding dispatching desk information, queries the corresponding dispatching desk code, the station managed by the corresponding dispatching desk and the station code in the graph database, compares the query result with the information in the railway bureau configuration file, and if there is any inconsistency, uses the query result to correct the railway bureau configuration file; wherein the specific dispatching desk, station, section and track to be queried are all entities, and the relationship between the entities includes: the management relationship between the dispatching desk and the station, the connection relationship between the section and the adjacent station, and the subordinate relationship between the track and the station.
[0028] In the embodiment of the present invention, the dispatching desk, station, track, section, and station map are all conceptual types, and individual specific dispatching desks (for example, the Beijing-Shanghai dispatching desk, the Beijing-Guangzhou dispatching desk, and the Beijing-Harbin dispatching desk), stations (for example, Beijing South Station, Beijing East Station), sections (for example, the Beijing South-Wuqing section), and tracks (for example, a track in Beijing South Station) are all instances. Instances have their own attributes, and relationships are established between instances. Therefore, all entities are applicable to query in the above manner.
[0029] The above scheme of the embodiment of the present invention utilizes the method of domain knowledge graph to construct a knowledge graph of railway dispatching static data, queries and realizes automatic detection of erroneous content and correction of file data in the graph database. The above scheme can at least solve the problems existing in the aforementioned scheme 2: 1) the problem of inability to correct erroneous data; 2) the problem of inapplicability of subsequent inspection logic code due to limitations of current protocol data specifications; 3) the problem of difficulty in extending to other file inspections; 4) solving the problem of inefficiency when querying multi-level related data in relational databases.
[0030] In order to more clearly demonstrate the technical solution and technical effects provided by the present invention, a railway bureau configuration file error prevention system based on a domain knowledge graph provided by an embodiment of the present invention is described in detail below with reference to a specific embodiment.
[0031] 1. Basic concepts of knowledge graph in railway dispatching field and its application in this invention.
[0032] Knowledge graph is an application method based on semantic web, which uses nodes to represent structured semantic information, forms a network diagram based on the crisscross relationship between nodes and realizes visual display. To build and store the knowledge graph in the field of railway dispatching based on the graph database, we first analyze the knowledge characteristics of the railway dispatching field, realize the classification of entity types in the field, establish the relationship types between knowledge entities, knowledge attributes and knowledge, complete the model design of the railway dispatching knowledge base, and then use the graph database to complete the construction, storage and query of the knowledge graph.
[0033] In the embodiment of the present invention, the knowledge base construction process is divided into 6 steps:
[0034] 1) Clarify the scope of railway dispatching knowledge and its construction requirements, and identify important concepts and terms in the field; as mentioned earlier, important concepts include dispatching desk, station, section, track, etc.; terms include receiving and dispatching overloaded vehicles, high platform, low platform, etc.
[0035] 2) Abstract the core concept set in the field of railway dispatching, and determine the classes, entities, and the relationships between entities; the core concept set includes the types of important concept definitions and the relationships between types, such as dispatching desk type, station type, and the relationship between dispatching desks and stations.
[0036] 3) Define the type and properties of the entity.
[0037] 4) Define other constraint relationships; for example, a track has multiple attributes, one of which is the platform attribute of the track, and the value constraint is one of no platform, low platform and high platform.
[0038] 5) Create entities and relationships in the railway scheduling domain.
[0039] 6) Correction of railway dispatching knowledge.
[0040] Those skilled in the art can understand that the various concepts, terms and other descriptions involved in the above steps are proprietary features of the field, and the meanings and related contents referred to are common knowledge.
[0041] The specific implementation method of each step will be introduced later.
[0042] 2. Data sources of knowledge graph in railway field.
[0043] In the embodiment of the present invention, data for constructing a knowledge graph in the railway field is obtained from a data source, and knowledge elements are extracted.
[0044] In an embodiment of the present invention, the data for constructing the railway field knowledge graph mainly includes: structured data, semi-structured data and plain text data (for example, a configuration file in Txt format is a kind of plain text data).
[0045] The structured data includes: two-dimensional data represented and stored in a relational database, which can be directly extracted into the knowledge graph, for example, the static data of the operation diagram of the production database of the dispatching command system.
[0046] Semi-structured data includes: data that uses relevant tags to separate semantic elements and does not exist in database form, for example, the data in "Appendix C to the Ministry's Standards on the Provisions on Railway Bureau-Related Exchange Documents".
[0047] 3. The model of knowledge graph in the field of railway dispatching.
[0048] Knowledge modeling requires determining the types of entities and relationships in the knowledge network, that is, the design of concepts and relationship patterns. The basic goal of the knowledge graph in the railway dispatching field is to give computers the basic conceptual knowledge in the railway dispatching field. In the basic cognitive framework, it is necessary to specify the basic concepts of the field and the subclass relationships between concepts. As mentioned earlier, the dispatching desk and station are concepts, and individual specific dispatching desks and stations are instances, such as Beijing-Shanghai Station, Beijing-Harbin Station, Beijing South Station, Beijing Station, etc.; it is necessary to clarify the basic attributes of the railway field; clarify the applicable concepts of the attributes; and clarify the categories or ranges of attribute values.
[0049] Here is an example:
[0050] 1. The "track" attribute is defined based on the station concept, and its reasonable value is a track name.
[0051] 2. There are still a lot of constraints or rules in the railway field, which restrict whether attributes can have multiple values:
[0052] a) "Track train reception and departure type" as an attribute can take multiple values.
[0053] b) The "main line" attribute of a track and the "side line" attribute of a track are a pair of inverse attributes.
[0054] These metadata (i.e., track receiving and dispatching types, main lines, and side lines) are of great significance for eliminating inconsistencies in the knowledge base and improving the quality of the knowledge base.
[0055] According to the embodiment of the present invention, entities related to railways, entity related information, and relationships between different entities are extracted to form two types of triples of data structures:
[0056] The first type of triples contains the relationship between different entities, expressed as: <entity 1, relationship, entity 2>; entity 1 and entity 2 represent two different entities. For example: Station Anjing is under the jurisdiction of Chengdu Station, where Station Anjing and Chengdu Station are different entities, indicating the relationship that Chengdu Station manages Anjing Station.
[0057] The second type of triple contains the relevant information of the entity, expressed as <entity, attribute, value>. For example: the station code of Changzi South Station is 500, which can be expressed as <Changzi South, stationcode, 500>; Anjing Station IG can receive and send overloaded vehicles, which can be expressed as<IG,limit,1> .
[0058] 3. Data relations of knowledge graph in railway field.
[0059] In the embodiment of the present invention, the ER diagram (Entity Relationship Diagram, i.e., entity-relationship diagram) used in traditional database design is used to analyze the concepts in the railway field and the relationships between them, and arrows are used to identify the direction of the relationship. The knowledge graph usually forms a large network with entities as nodes. The schema (i.e., mode, which can be understood as organization and structure) of the graph is equivalent to the data model, which describes the types (Type) contained in the field and the properties (Property) describing the entities under the type. The relationship between entities in the Property is the edge (Relation), and the information brought by the entity is the attribute (Attribute). Based on actual business needs, a data model is abstracted on the existing data table, with the dispatching desk, station, section, etc. as the main entities, their basic information as attributes, and the relationship between stations and dispatching desks as edges, which associates information in multiple fields and fills in the graph information, thereby providing more diversified knowledge.
[0060] like Figure 2 As shown in Figure 1, the main concepts and relationship patterns in the railway field are shown. Figure 2As shown in the figure, the attributes of track mainly include: direction (dir), station code (stationid), platform (passenger), overload vehicle (limit), name (name), etc. The attributes of station (station) mainly include: station name (name), station code (id), dispatching desk (ddt), type (type), bureau code (bureaucode), etc. The attributes of section (sectionline) mainly include: station 1 (stationid1), station 2 (stationid2), section number (id), dispatching desk (ddt), direction (dir), etc. The attributes of node (dot) mainly include: sequence number (sequence), station code (stationid), upkm mark (upkm), downkm mark (downkm), position (position), etc. The attributes of dispatching desk (dispatch) mainly include: platform code (id), name (name), etc. Layout is a single station display file. Tracks and display files belong to stations, stations are managed by dispatching desks, and dispatching desks have subgraphs, nodes, and sections. One bureau governs multiple dispatching desks.
[0061] 4. Storage of knowledge graph in the railway field.
[0062] After the knowledge graph in the railway field is modeled (that is, important concepts, definition classes and relationships are determined using the knowledge graph method) and the data source is determined, how to store it should be designed. Knowledge storage is to store the acquired knowledge in a specific physical structure. The traditional SQL database with data tables as the storage method restricts the performance, extended storage and query requirements of the knowledge graph. Compared with the traditional "table" database, the graph database with graph model as the storage unit is not only good at storing and processing a large amount of complex entity data, but also can effectively process the complex "relationship" data of massive entities, and support the fast traversal of graph algorithms. Therefore, considering the scale, operation complexity, popularity and maturity of the graph, this system uses the Neo4j graph database as the storage system of the knowledge graph. Of course, other graph databases can also be used to replace the Neo4j graph database.
[0063] Graph databases use a graph composed of nodes and relationships as a storage data model, and have a natural advantage in processing entity (node)-relationship (edge) calculations in knowledge graphs. The nodes and edges of the graph correspond to the nodes and relationships in the graph database. Compared with traditional relational databases, they can quickly solve complex relationship problems. At the same time, the data relationship structure composed of nodes and relationships can realize all the characteristics of the database, such as Create, Update, Read, and Delete, and can also realize rich relationship connections, so that complex relationship data queries can be operated in a more efficient way. Compared with other types of databases, graph databases can describe complex relationships between data more concisely and clearly.
[0064] The railway domain knowledge graph uses the storage structure of the Neo4j graph database, which includes two data storage methods:
[0065] Node: represents the entity mentioned above. A node contains several properties in the form of key-value (a data storage method for properties) pairs. Different types of nodes are distinguished according to the corresponding labels of each node.
[0066] Relationship: Contains its own attributes and type tags, as well as the IDs of the start and end nodes. Exemplarily, the categories of the relationship include: management relationship, belonging relationship, and inclusion relationship; taking Beijing-Harbin Railway Station as an example, it contains 5 stations, the start node is Beijing North Station, the end node is Harbin Station, and Beijing-Harbin Railway Station manages Beijing North Station; there are 10 tracks belonging to Beijing North Station; Beijing North Station and Harbin Station are both stations, and the station category includes Beijing North Station, Harbin Station and other stations.
[0067] like Figure 3 As shown in FIG. 1 , an example of storing entities and relationships in a knowledge graph in the railway scheduling field into a Neo4j graph database is provided. The graph is automatically generated by a graph algorithm. The text content in the graph is only used as an example and does not constitute a limitation. In addition, since the graph generated by the computer contains a large amount of information, Figure 3 Only a part of it was captured. Figure 3 Some text is blocked in the area of dense arrows on the right, which can be used as evidence to increase the richness of the experimental data.
[0068] 5. Query of knowledge graph in railway field.
[0069] In many fields, most of the queries on the graph are single-step or two- to three-step traversals, and SQL is fully capable of handling them. However, in the embodiments of the present invention, when it comes to the correlation analysis of data information and complex subgraph mining is required, the expressive power of SQL appears to be relatively weak. To accurately and efficiently query the complexly related data in the railway dispatching field, the query language Cypher of the Neo4j graph database is innovatively introduced. It can traverse and query the relationship subgraph without writing traversal code, and generate Cypher query statements from the feature words and classification labels of the query statements to search for answers in Neo4j. Of course, the specific search method can also be replaced with other available methods according to the actual situation.
[0070] The following details the operation content and implementation method of the Cypher language for data storage, update, and query of railway dispatching knowledge in the example.
[0071] 1. Create entity nodes.
[0072] The Cypher statement for creating the Changzinan entity in this example is as follows:
[0073] CREATE(s:Station{title:'Changzinan',stationCode:500,delta:22})RETURN s
[0074] 2. Update entity nodes.
[0075] The Cypher statement for updating the attributes of the Changzinan entity in this example is as follows:
[0076] MATCH(s)WHERE s.stationCode=500SET s.stationCode=501RETURN s
[0077] 3. Query entity nodes.
[0078] The Cypher statement for querying the station with a station code of 500 in this example is as follows:
[0079] MATCH(s{stationCode:500})RETURN s
[0080] 4. Create entity relationships.
[0081] The Cypher statement for creating a relationship between Jingguang South Platform and Songzhai in this example is:
[0082] MATCH(d:Ddt),(s:Station) WHERE d.title = 'Jingguang South Platform' AND s.title = 'Songzhai' CREATE(d)-[r:RelationShip{title: 'Manage'}]->(s) RETURN r
[0083] 5. Update entity relationships.
[0084] Read the relationship through MATCH to match the graph pattern, and then use SET to update the attribute content of the relationship. The Cypher statement to change the relationship to Diplopia Station in this example:
[0085] MATCH(d)-[r]->(s) WHERE id(r) = 13 SET r.title = 'Diplopia' RETURN r
[0086] 6. Query entity relationships.
[0087] All stations with Diplopia of Jingguang South Platform are queried in this example:
[0088] MATCH(d)-[r]->(s) WHERE d.title = 'Jingguang South Platform' AND r.title = 'Diplopia' RETURN *
[0089] VI. Error correction of the railway administration configuration file.
[0090] The above five parts introduce the construction, storage, and query methods of the knowledge graph in the railway field. Based on the above introduction, the error correction process is introduced below. Error correction mainly refers to information query and correction. The main steps are as follows:
[0091] Step S1: Identify the dispatching section data from the input railway administration configuration file, and extract the corresponding entity ID. For example, the dispatching desk code (ddtCpde).
[0092] Step S2: Query using the entity ID in the graph database. If the corresponding entity ID is queried, go to Step S3; otherwise, go to Step S4.
[0093] Step S3: Query the entity name (title) corresponding to the entity ID. If the corresponding entity name is the same as that in the railway administration configuration file, go to Step S5; otherwise, go to Step S6. For example, if the entity ID is the dispatching desk code, the corresponding dispatching desk name is queried here using the dispatching desk code.
[0094] Step S4, query all entities and related sub-entity IDs managed by the entity corresponding to the entity ID, and compare them with the railway bureau configuration file. If the number of managed entities and the related entity IDs are consistent, then the entity ID of the railway bureau configuration file (i.e., the entity ID in step 1) is corrected. If they are inconsistent, then the number of managed entities and related sub-entity IDs in the railway bureau configuration file are corrected. For example, if the entity in step 1 is a dispatching station, then the entity it manages is a station. This type of logic is common knowledge, so it will not be repeated. Step S5, query all entities and related sub-entity IDs managed by the entity corresponding to the entity ID, and compare them with the railway bureau configuration file; if the number of managed entities and the related sub-entity IDs are consistent, then proceed to the next check. If they are inconsistent, then the number of managed entities and related sub-entity IDs in the railway bureau configuration file are corrected.
[0095] Step S6: query all entities and related sub-entity IDs managed by the dispatching station, and compare them with the railway bureau configuration file. If the managed entities and related sub-entity IDs are consistent, correct the entity ID of the railway bureau configuration file. If they are inconsistent, correct the number of managed entities and related sub-entity IDs in the configuration file.
[0096] Those skilled in the art can understand that specific entities such as dispatch stations and stations have unique names and serial numbers (IDs), that is, station names, station codes, station names, and station codes. Therefore, each entity introduced in the above text can be queried according to the above principles; Figure 4 The above query and correction process is introduced by taking the dispatching desk as the entity and the stations it manages as sub-entities. In addition, the interval is also managed by the dispatching desk. A single interval is composed of two adjacent stations. The above process is also used for query and correction. First, identify whether the two stations before and after the interval belong to the dispatching desk, and identify the name of the interval and the direction of the interval.
[0097] The above scheme of the embodiment of the present invention constructs a railway bureau configuration exchange file error prevention system based on the domain knowledge graph, establishes the concept and model of the railway scheduling knowledge graph on the basis of existing railway knowledge, establishes a Neo4j-based graph database based on existing data sources (i.e., production database, departmental standard protocol files, etc.), and uses Cypher to query, retrieve and correct railway bureau configuration files, which solves the problem that the existing scheme can only check the format but not correct the content. It also solves the problem that the code needs to be rewritten after the subsequent protocol upgrade, and solves the problem that data updates and continuous increase in manpower cannot be maintained. At the same time, this system can also query and retrieve other types of railway files.
[0098] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above embodiments can be implemented by software, or by means of software plus necessary general hardware platforms. Based on such understanding, the technical solutions of the above embodiments can be embodied in the form of software products, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.), including several instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the methods described in the various embodiments of the present invention.
[0099] Technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the system can be divided into different functional modules to complete all or part of the functions described above.
[0100] The above is only a preferred specific embodiment of the present invention, but the protection scope of the present invention is not limited thereto. Any changes or substitutions that can be easily thought of by a person skilled in the art within the technical scope disclosed in the present invention should be included in the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.
Claims
1. A railway bureau configuration file error prevention system based on domain knowledge graph, characterized in that: include: A data acquisition unit, used to acquire data for constructing a railway field knowledge graph from a data source; The railway domain knowledge graph construction and storage unit is used to obtain relevant data from the data acquisition unit, extract railway-related entities, entity-related information, and the relationship between different entities, use the entity-related information as the entity's attributes, use the relationship between entities to build edges between different entities, associate the entities, form a railway domain knowledge graph, and store it as a graph database; The information query and correction unit identifies the dispatching section data from the input railway bureau configuration file, extracts the corresponding dispatching station information, queries the corresponding dispatching station code, the station managed by the corresponding dispatching station and the station code in the graph database, compares the query result with the information in the railway bureau configuration file, and uses the query result to correct the railway bureau configuration file if there is any inconsistency; wherein the specific dispatching station, station, section and track to be queried are all entities; The query and correction process of the information query and correction unit includes: Step S1, identifying the dispatch section data from the input railway bureau configuration file and extracting the corresponding entity ID; Step S2: Use the entity ID to query in the graph database. If the corresponding entity ID is found, go to step S3; otherwise, go to step S4. Step S3, query the entity name corresponding to the entity ID, if the corresponding entity name is consistent with the railway bureau configuration file, then go to step S5, otherwise go to step S6; Step S4, query all entities and related entity IDs managed by the entity corresponding to the entity ID, and compare them with the railway bureau configuration file. If the number of managed entities and the related entity IDs are consistent, the entity ID of the railway bureau configuration file is corrected; if they are inconsistent, the number of managed entities and the related entity IDs in the railway bureau configuration file are corrected; Step S5, query all entities and related entity IDs managed by the entity corresponding to the entity ID, and compare them with the railway bureau configuration file; if the number of managed entities and the related entity IDs are consistent, proceed to the next check, if not consistent, correct the number of managed entities and entity IDs in the railway bureau configuration file; Step S6: query all entities managed by the entity corresponding to the entity ID and their related entity IDs, and compare them with the railway bureau configuration file. If the number of managed entities and the related entity IDs are consistent, correct the entity name of the railway bureau configuration file; if they are inconsistent, correct the number of managed entities and the related entity IDs in the configuration file.
2. According to the domain knowledge graph-based railway bureau configuration file error prevention system of claim 1, it is characterized in that: The data for constructing the railway field knowledge graph includes: structured data, semi-structured data and plain text data; The structured data includes: two-dimensional data represented and stored in a relational database; Semi-structured data includes data that uses relevant tags to separate semantic elements and does not exist in the form of a database.
3. According to the domain knowledge graph-based railway bureau configuration file error prevention system of claim 1, it is characterized in that: The entities related to railways, entity-related information, and the relationships between different entities are extracted to form two types of triples of data structures: The first type of triples contains the relationship between different entities, expressed as: <entity 1, relationship, entity 2>; entity 1 and entity 2 represent two different entities; The second type of triples contains information about the entity, expressed as <entity, attribute, value>.
4. A railway bureau configuration file error prevention system based on domain knowledge graph according to claim 1 or 3, characterized in that: Each entity has a unique name and ID; The relationships between entities include: the management relationship between the dispatching desk and the station, the connection relationship between the section and the adjacent station, and the subordinate relationship between the track and the station.
5. According to the domain knowledge graph-based railway bureau configuration file error prevention system of claim 1, it is characterized in that: The railway domain knowledge graph uses the storage structure of the Neo4j graph database, which includes two data storage methods: Node: The entity is regarded as a node. The node contains several attributes in the form of key-value pairs. Different types of nodes are distinguished according to the corresponding label of each node. Relationship: Contains its own attributes and type tag, as well as the IDs of the start and end nodes.
6. According to claim 5, a railway bureau configuration file error prevention system based on domain knowledge graph is characterized in that: Use the Cypher language to query the graph database.
Citation Information
Patent Citations
An intelligent substation configuration file intelligent verification and auxiliary decision system and method
CN109409711A
Operation order scheduling logic legality verification method based on knowledge graph
CN112487789A
Chinese error correction method, device and equipment and readable storage medium
CN113128224A
Knowledge Canvassing Using a Knowledge Graph and a Question and Answer System
US20160378851A1
