Method, equipment and medium for processing educational data
The attribute graph data model is constructed through the graph data modeling method, which solves the problem of low data modeling and query efficiency in the education field, and achieves fast and efficient data management.
Patent Information
- Application Number
- CN202410804840.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-21
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-21
AI Technical Summary
Due to the complexity and diversity of data in the education field, existing relational databases are inefficient in data modeling and querying, and the operations are cumbersome, making it difficult to meet the needs of efficient management.
Using the graph data modeling method, multiple sub-models are constructed and integrated to form an attribute graph data model, which simplifies the data modeling and query process, reduces dependence on relational tables, and improves data modeling and query efficiency.
It realizes fast and efficient modeling and querying of data in the education field, reduces the complexity and operation volume of data modeling and querying, and improves data management efficiency.
Smart Images

Figure CN118377939B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of education, and in particular to a method, device and medium for processing educational data. Background Art
[0002] Data in the field of education involve areas such as school statistics, teacher / student information, course content, and student performance. The data are numerous and complex, and the relationships between the data are also complex and diverse. How to effectively manage data in the field of education is a difficulty that needs to be solved urgently.
[0003] In the prior art, relational databases are usually used to store and manage data in the field of education. That is, based on the principle of sub-library and sub-table, a table structure is designed in advance for each dimension of data, and then the data of each dimension is stored in the corresponding library or table. Since the data in the field of education is intricate and the relationships between the data are also complex and diverse, the method of using relational databases for data modeling is cumbersome and labor-intensive. In addition, when performing queries, due to the complex and diverse relationships between the data, it is usually necessary to perform multi-table joint queries, which is cumbersome and has low query efficiency.
[0004] Therefore, there is a need for a processing solution for educational data that can improve the efficiency of data modeling and data query in the education field. Summary of the invention
[0005] The present application provides a method, device and medium for processing educational data, so as to solve the technical problems of low efficiency of data modeling and low efficiency of data query in the existing education field.
[0006] In a first aspect, the present application provides a method for processing educational data, comprising:
[0007] Receive a data query instruction, and determine key fields corresponding to the data query instruction, wherein the key fields include a target graph database, node data to be queried, and attribute data to be queried;
[0008] According to the preset correspondence between nodes and sub-models, determine the target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database;
[0009] Determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data;
[0010] Among them, the attribute graph data model corresponding to the target graph database is obtained by integrating multiple sub-models, and the sub-models include one or more of the course model, the teacher model and the competition model.
[0011] In a possible implementation manner, before determining the target data corresponding to the attribute data to be queried in the target sub-model, the method further includes:
[0012] Determine whether there is a target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database;
[0013] If so, executing the step of determining the target data in the target sub-model corresponding to the attribute data to be queried;
[0014] If it does not exist, determine the target node that has an association relationship with the node to be queried in the attribute graph data model corresponding to the target graph database; determine the graph data to be queried based on each target node, the relationship edge between each target node and the node to be queried, and the node to be queried; determine the target data corresponding to the attribute data to be queried in the graph data to be queried.
[0015] In a possible implementation, the property graph data model corresponding to the target graph database is obtained in the following manner:
[0016] Classify and abstract the data to be processed to obtain corresponding first entity data, where the first entity data includes entities, relationships between entities, attribute lists of entities, and attribute lists of relationships between entities;
[0017] According to the entities and the relationships between the entities, a plurality of abstract models are constructed respectively, wherein the abstract models include nodes corresponding to the entities and relationship edges between the nodes corresponding to the relationships between the entities;
[0018] According to the data import method corresponding to the target graph database, the attribute list of each entity and the attribute list of the relationship between the entities are respectively imported into the multiple abstract models to obtain multiple corresponding sub-models;
[0019] According to nodes having intersections in the multiple corresponding sub-models, the multiple corresponding sub-models are integrated to obtain a property graph data model corresponding to the target graph database;
[0020] Among them, the attribute graph data model includes one or more of nodes, relationship edges between nodes, attribute lists of each node, and attribute lists of each relationship edge; the entities / nodes include one or more of schools, grades, classes, teachers, students, lectures, courses, exams, and competitions.
[0021] In a possible implementation manner, the multiple abstract models are constructed according to the entities and the relationships between the entities, and specifically include at least one of the following:
[0022] According to the entities in the first entity set and the relationship between the entities in the first entity set, a first abstract model centered on the course node is constructed; the first entity set includes classes, teachers, students, courses and exams;
[0023] According to the entities in the second entity set and the relationship between the entities in the second entity set, a second abstract model centered on the teacher node is constructed; the second entity set includes teachers, schools, grades, classes, students and lectures;
[0024] According to the entities in the third entity set and the relationship between the entities in the third entity set, a third abstract model centered on the competition node is constructed; the relationship edges between the nodes in the third abstract model are hosting relationships and participating relationships; the third entity set includes schools, organizers, teachers, students and competitions.
[0025] In a possible implementation, the attribute list of the entity / the attribute list of the node includes an ID attribute and a common attribute, and the ID attribute is a unique identification attribute of the entity / node in the graph database;
[0026] The general attributes include: entity / node name, region, address, subordinate class name, subordinate student name, age, gender, score, time, or one or more of other attributes;
[0027] The attribute list of the relationship / the attribute list of the relationship edge includes: relationship name, generation date, and one or more of other attributes.
[0028] In a possible implementation, the method further includes:
[0029] Receive a data expansion instruction, and determine a target graph database corresponding to the data expansion instruction and educational data to be expanded;
[0030] Classify and abstract the educational data to be expanded to obtain corresponding second entity data, wherein the second entity data includes one or more of the entities to be expanded, the relationships to be expanded between entities, the attribute lists of the entities to be expanded, and the attribute lists of the relationships to be expanded;
[0031] Generate corresponding nodes to be expanded according to the entities to be expanded in the second entity data, and / or generate corresponding relationship edges to be expanded according to the relationships to be expanded between entities in the second entity data;
[0032] Generate first graph data according to the nodes to be expanded and / or the relationship edges to be expanded;
[0033] According to the data import method corresponding to the target graph database, the attribute list of the entity to be expanded and / or the attribute list of the relationship to be expanded in the second entity data is imported into the first graph data to obtain the target graph data;
[0034] Data expansion processing is performed on the attribute graph data model corresponding to the target graph database according to the target graph data to obtain an expanded attribute graph data model.
[0035] In a possible implementation, performing data expansion processing on the property graph data model corresponding to the target graph database according to the target graph data to obtain the expanded property graph data model specifically includes:
[0036] Traversing the property graph data model corresponding to the target graph database to determine whether there is second graph data in the target graph data, where the second graph data is data that is repeated in the target graph data and the property graph data model;
[0037] If so, data expansion processing is performed on the attribute graph data model according to the data in the target graph data except the second graph data to obtain an expanded attribute graph data model.
[0038] In a second aspect, the present application provides an electronic device, including:
[0039] A receiving module, used to receive a data query instruction and determine key fields corresponding to the data query instruction, wherein the key fields include a target graph database, node data to be queried, and attribute data to be queried;
[0040] A processing module is used to determine the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database according to the preset correspondence between the node and the sub-model; determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data; wherein the attribute graph data model corresponding to the target graph database is obtained by model integration of multiple sub-models, and the sub-models include one or more of a course model, a teacher model and a competition model.
[0041] In a third aspect, the present application provides another electronic device, comprising: a processor, and a memory communicatively connected to the processor;
[0042] The memory stores computer-executable instructions;
[0043] The processor executes the computer-executable instructions stored in the memory to implement the above method.
[0044] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer-executable instructions, and the computer-executable instructions are used to implement the above-mentioned method when executed by a processor.
[0045] In a fifth aspect, the present application provides a computer program product, including a computer program, which implements the above method when executed by a processor.
[0046] The educational data processing method, device and medium provided in the present application can receive data query instructions and determine the key fields corresponding to the data query instructions, the key fields include the target graph database, the node data to be queried and the attribute data to be queried; according to the preset correspondence between the node and the sub-model, determine the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database; determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate query results according to the target data; wherein, the attribute graph data model corresponding to the target graph database is obtained by integrating multiple sub-models, and the sub-models include one or more of the course model, the teacher model and the competition model. The method of the present application can first use the graph data modeling method to construct multiple sub-models according to business relationships or needs, and then integrate the multiple sub-models to obtain the attribute graph data model corresponding to the target graph database, and realize fast and efficient modeling of the data of various dimensions in the field of education through the attribute graph that emphasizes the association relationship, without the need to design a large number of relationship tables, thereby improving the efficiency of data modeling. Furthermore, when receiving a data query instruction to perform a data query, after determining the key fields such as the target graph database, the node data to be queried, and the attribute data to be queried corresponding to the data query instruction, the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database can be determined according to the preset correspondence between the node and the sub-model, and then the target data corresponding to the attribute data to be queried in the target sub-model can be determined. Through such a setting, there is no need to traverse and analyze the entire attribute graph data model. Only the target sub-model corresponding to the node to be queried in the model needs to be extracted, and the target data matching the key fields can be quickly and accurately determined, and there is no need to perform a multi-table joint query. This construction method of the attribute graph data model greatly improves the efficiency of data query. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present application and, together with the description, serve to explain the principles of the present application.
[0048] Figure 1 A flowchart of a method for processing educational data according to an embodiment of the present application;
[0049] Figure 2A flowchart of a method for processing educational data according to another embodiment of the present application;
[0050] Figure 3 It is a structural diagram of the abstract model of the course model;
[0051] Figure 4 A structural diagram for instantiating the course model;
[0052] Figure 5 It is a structural diagram of the abstract model of the teacher model;
[0053] Figure 6 It is a schematic diagram of the structure of the abstract model of the competition model;
[0054] Figure 7 Schematic diagram of the structure instantiated for the competition model;
[0055] Figure 8 A flowchart of a method for processing educational data according to another embodiment of the present application;
[0056] Fig. 9 A schematic diagram of the structure of an electronic device according to an embodiment of the present application;
[0057] Fig.10 This is a schematic structural diagram of an electronic device according to another embodiment of the present application.
[0058] The above drawings have shown clear embodiments of the present application, which will be described in more detail later. These drawings and text descriptions are not intended to limit the scope of the present application in any way, but to illustrate the concept of the present application to those skilled in the art by referring to specific embodiments. DETAILED DESCRIPTION
[0059] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, the same numbers in different drawings represent the same or similar elements unless otherwise indicated. The implementations described in the following exemplary embodiments do not represent all implementations consistent with the present application. Instead, they are merely examples of devices and methods consistent with some aspects of the present application as detailed in the appended claims.
[0060] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with relevant laws, regulations and standards, and provide corresponding operation entrances for users to choose to authorize or refuse.
[0061] The educational data processing method, device and medium of the present application can be applied to scenarios of data management in the education field, especially for data modeling and data query of education field data that is numerous and complex.
[0062] First, the terms involved in this application are explained:
[0063] Graph computing is a computational model for solving complex problems, in which the data and computational tasks of the problem are organized into a graph structure. This model is based on the principles of graph theory and parallel computing and is applicable to many fields, such as social network analysis, bioinformatics, recommendation systems, etc.
[0064] A graph is a data structure consisting of nodes (vertices) and edges, which represents the relationship between entities. In graph computing, directed or undirected graphs are usually used to represent data and computing tasks.
[0065] A node, also called a vertex, represents an entity in a graph and can have attributes and labels.
[0066] Edges are lines connecting nodes, representing the relationship between nodes. Edges can have weights or labels.
[0067] Graph Database is a database specifically used to store and query graph data. It supports graph-structured data models and graph computing operations.
[0068] Educational data refers to data sets or information related to education. In the field of education, data can involve various aspects, such as student information, school statistics, teacher information, course content, student grades, etc.
[0069] Data modeling, data modeling is a method and process used to describe and represent data in the real world and organize it into a structured form for easy understanding, management and processing. Data modeling helps us sort out the relationships and rules between data and provides a view at an abstract level so that data can be better analyzed, stored and operated.
[0070] Graph data modeling is essentially the process of abstracting entities (nodes) and their relationships (edges) in the real world into a graph structure. Graph data modeling can help us sort out the complex relationships between entities and represent and manage these relationships in a visual way.
[0071] Graph data modeling can be done in different ways, depending on the characteristics and requirements of the data. Two common graph data modeling methods are property graph and RDF. This application uses property graph to design the data model. In this model, the graph consists of nodes and edges, and each node and edge can have its own attributes.
[0072] Nodes represent real-world entities, such as people, places, objects, etc. Each node can have multiple attributes, such as name, age, address, etc.
[0073] Edges represent relationships between nodes and can have their own properties. Relationships between nodes and edges can be directed or undirected and can be categorized and filtered by labels.
[0074] Data in the field of education involves school statistics, teacher / student information, course content, student grades, etc. The data is numerous and complex, and the relationships between the data are also complex and diverse. In the prior art, relational databases are usually used to store and manage data in the field of education. That is, based on the principle of separate libraries and tables, a table structure is designed in advance for each dimension of data, and then the data of each dimension is stored in the corresponding library or table.
[0075] Since the data in the education field is complex and the relationships between the data are also complex and diverse, the method of using relational databases to model data is cumbersome and labor-intensive. In addition, when performing queries, due to the complex and diverse relationships between the data, it is usually necessary to perform multi-table joint queries, which is cumbersome and has low query efficiency.
[0076] Based on this technical problem, the inventive concept of this application is: how to provide a method for processing educational data that can improve the efficiency of data modeling and data query in the education field.
[0077] Specifically, a data query instruction can be received, and key fields corresponding to the data query instruction can be determined, and the key fields include the target graph database, the node data to be queried, and the attribute data to be queried; according to the preset correspondence between the node and the sub-model, the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database is determined; the target data corresponding to the attribute data to be queried in the target sub-model is determined, and the query result is generated according to the target data; wherein, the attribute graph data model corresponding to the target graph database is obtained by integrating multiple sub-models, and the sub-models include one or more of the course model, the teacher model, and the competition model. The method of the present application can first utilize the graph data modeling method to construct multiple sub-models according to business relationships or needs, and then integrate the multiple sub-models to obtain the attribute graph data model corresponding to the target graph database, and realize fast and efficient modeling of the data of various dimensions in the field of education through the attribute graph that emphasizes the association relationship, without the need to design a large number of relationship tables, thereby improving the efficiency of data modeling. Furthermore, when receiving a data query instruction to perform a data query, after determining the key fields such as the target graph database, the node data to be queried, and the attribute data to be queried corresponding to the data query instruction, the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database can be determined according to the preset correspondence between the node and the sub-model, and then the target data corresponding to the attribute data to be queried in the target sub-model can be determined. Through such a setting, there is no need to traverse and analyze the entire attribute graph data model. Only the target sub-model corresponding to the node to be queried in the model needs to be extracted, and the target data matching the key fields can be quickly and accurately determined, and there is no need to perform a multi-table joint query. This construction method of the attribute graph data model greatly improves the efficiency of data query.
[0078] The technical solution of the present application and how the technical solution of the present application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be repeated in some embodiments. The embodiments of the present application will be described below in conjunction with the accompanying drawings.
[0079] Embodiment 1
[0080] Figure 1 This is a flow chart of a method for processing educational data according to an embodiment of the present application. This embodiment uses an electronic device as the execution subject to illustrate the method for processing educational data. Figure 1 As shown, the method for processing educational data may include the following steps:
[0081] S101: Receive a data query instruction and determine key fields corresponding to the data query instruction, where the key fields include a target graph database, node data to be queried, and attribute data to be queried.
[0082] In this embodiment, the electronic device can be a terminal device such as a computer, a tablet, a mobile phone, or a server device. The specific type of the electronic device is not limited as long as the electronic device can perform data modeling and data query in this embodiment.
[0083] In this embodiment, the data query instruction can be an instruction input into the electronic device by the user using a query statement of the graph database. The specific implementation method of determining the key field corresponding to the data query instruction can refer to the technical solution of extracting the key field according to the query statement of the existing graph database, which will not be described in detail here.
[0084] In this embodiment, the target graph database may be the user's query scope, that is, which graph database or databases are to be queried. The node data to be queried may be the specific category of data that the user wants to query, such as student data, teacher data, competition data, etc. The attribute data to be queried may be the limited scope of data that the user wants to query, such as time, name, etc.
[0085] S102: Determine the target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database according to the preset correspondence between the node and the sub-model.
[0086] In this embodiment, the property graph data model corresponding to the target graph database is obtained by integrating multiple sub-models, and the sub-models include one or more of a course model, a teacher model, and a competition model.
[0087] In this embodiment, the specific type of the sub-model can be flexibly set in advance by those skilled in the art based on experience, and is not limited to the above content, and can be increased according to the expansion of education field data, for example, it can also be a Belongto model and a leader model, etc., without any limitation here. The business logic relationship between each node in different sub-models is not exactly the same.
[0088] In this embodiment, the correspondence between nodes and sub-models can be flexibly set by those skilled in the art according to actual needs. For example, competition nodes correspond to competition models, course nodes correspond to course models, etc., and no limitation is made here.
[0089] In this embodiment, for the specific method of obtaining the property graph data model corresponding to the target graph database, please refer to Example 2 for details.
[0090] S103: Determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data.
[0091] In this embodiment, after the target data is determined, the electronic device can generate and output a query result according to the target data, so that the user can subsequently perform operations such as data analysis according to the target data.
[0092] In this embodiment, the attribute graph data model has already been imported with data, that is, it includes various data. Therefore, after determining the target sub-model, the target data corresponding to the attribute data to be queried can be directly extracted from the various data in the target sub-model.
[0093] In a possible implementation manner, before determining the target data corresponding to the attribute data to be queried in the target sub-model in the above step S103, the following may also be included:
[0094] S11: Determine whether there is a target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database.
[0095] S12: If it exists, executing the step of determining the target data in the target sub-model corresponding to the attribute data to be queried.
[0096] S13: If it does not exist, determine the target node that has an association relationship with the node to be queried in the attribute graph data model corresponding to the target graph database; determine the graph data to be queried based on each target node, the relationship edge between each target node and the node to be queried, and the node to be queried; determine the target data corresponding to the attribute data to be queried in the graph data to be queried.
[0097] In this embodiment, the graph data to be queried may include each target node, an attribute list of each target node, a node to be queried, an attribute list of the node to be queried, the relationship edge between each target node and the node to be queried, and an attribute list of the relationship edge between each target node and the node to be queried.
[0098] In this embodiment, when constructing the property graph data model, a plurality of different sub-models are constructed according to different business relationships between entities, and then the plurality of sub-models are integrated to obtain the model. That is, the property graph data model itself can be divided into a plurality of sub-models of different types according to the business, and each node in the sub-model has an association relationship. Therefore, if there is a target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database, the data query range can be determined directly according to the target sub-model, and there is no need to traverse and analyze the entire property graph data model, thereby improving the efficiency of data query. If there is no target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database, it is necessary to determine the target node in the property graph data model that has an association relationship with the node to be queried, and the data query range can be accurately determined according to the target node and the node to be queried. Through such a setting, the efficiency of data query can be improved as much as possible while ensuring the accuracy of data query by integrating and constructing multiple sub-models of the property graph data model.
[0099] For example, a user wants to query the competition data of 2022-2023 in graph database A. The user uses the query statement of the graph database to input the data query instruction to the electronic device. After receiving it, the electronic device determines that the key fields corresponding to the data query instruction are the target graph database: graph database A; node data to be queried: competition; attribute data to be queried: 2022-2023. When querying, you can first determine whether there is a competition model corresponding to the competition in graph database A, and then determine the target data that meets the time attribute 2022-2023 from the data corresponding to the competition model in graph database A, and finally generate and output the query result corresponding to the query instruction according to the target data.
[0100] In this embodiment, the graph data modeling method can be first used to construct multiple sub-models according to business relationships or needs, and then the multiple sub-models are integrated to obtain the attribute graph data model corresponding to the target graph database, and the data of each dimension in the field of education can be quickly and efficiently modeled by emphasizing the attribute graph of the association relationship. There is no need to design a large number of relationship tables, which improves the efficiency of data modeling. Further, when receiving a data query instruction for data query, after determining the key fields such as the target graph database, the node data to be queried, and the attribute data to be queried corresponding to the data query instruction, according to the preset correspondence between the node and the sub-model, the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database can be determined, and then the target data corresponding to the attribute data to be queried in the target sub-model can be determined. Through such a setting, there is no need to traverse and analyze the entire attribute graph data model, and only the target sub-model corresponding to the node to be queried in the model needs to be extracted, so that the target data matching the key field can be quickly and accurately determined, and there is no need to perform multi-table joint query. This construction method of the attribute graph data model greatly improves the efficiency of data query.
[0101] The following is a detailed description of the method for obtaining the attribute graph data model corresponding to the target graph database in the above-mentioned embodiment 1, using a specific embodiment 2.
[0102] Embodiment 2
[0103] Figure 2 This is a flowchart of a method for processing educational data according to another embodiment of the present application. This embodiment uses an electronic device as the execution subject to illustrate the method for processing educational data. Figure 2 As shown, the method for processing educational data may include the following steps:
[0104] S201: Classify and abstract the data to be processed to obtain corresponding first entity data.
[0105] In this embodiment, the first entity data may include entities, relationships between entities, attribute lists of entities, and attribute lists of relationships between entities.
[0106] In this embodiment, the data to be processed may be all data to be stored and managed by the target graph database, such as school statistics, teacher / student information, course content, student grades, and other data in multiple fields and systems.
[0107] In this embodiment, for the specific process of classifying and abstracting the data to be processed, please refer to the existing data classification and abstraction process in the process of building the attribute graph data model, which will not be elaborated here.
[0108] S202: constructing a plurality of abstract models according to the entities and the relationships between the entities.
[0109] In this embodiment, the abstract model may include nodes corresponding to each entity and relationship edges between each node corresponding to the relationship between each entity. The relationship between entities may be a business logic relationship between the entities.
[0110] In a possible implementation, multiple abstract models are constructed based on the entities and the relationships between the entities, which may include at least one of the following:
[0111] According to the entities in the first entity set and the relationship between the entities in the first entity set, a first abstract model centered on the course node is constructed; the first entity set includes classes, teachers, students, courses and examinations;
[0112] According to the entities in the second entity set and the relationship between the entities in the second entity set, a second abstract model centered on the teacher node is constructed; the second entity set includes teachers, schools, grades, classes, students and lectures;
[0113] According to the entities in the third entity set and the relationship between the entities in the third entity set, a third abstract model centered on the competition node is constructed; the relationship edges between the nodes in the third abstract model are hosting relationships and participating relationships; the third entity set includes schools, organizers, teachers, students and competitions.
[0114] In this embodiment, the type of abstract model can be determined according to the entity set into which the first entity data can be divided. The specific type of the abstract model can be flexibly set by technical personnel in this field according to actual business relationships, and is not limited to the first abstract model, the second abstract model, and the third abstract model.
[0115] In this embodiment, those skilled in the art can pre-set different types of abstract models (sub-models) based on their experience, as well as entity sets and relationships between entities corresponding to each type of model. After determining the first entity data, the entities and relationships between entities in the first entity data are classified and collected, and corresponding abstract models can be constructed respectively, further improving the efficiency of data modeling.
[0116] S203: According to the data import method corresponding to the target graph database, the attribute list of each entity and the attribute list of the relationship between entities are respectively imported into multiple abstract models to obtain multiple corresponding sub-models.
[0117] In this embodiment, the data import method may be determined by the capabilities of the selected target graph database. For example, taking the tigergraph graph database as an example, the graph database supports the following four data import methods: local file (excel and json), S3, GCS and ABS. You can select any one of them according to the actual operation when importing.
[0118] In this embodiment, the entity / node may include one or more of a school, grade, class, teacher, student, lecture, course, exam, and competition. The specific type of entity / node can be flexibly set by technicians in this field according to the characteristics of the education field data, and is not limited to the above content, and can also include content with community or regional characteristics, etc., without any limitation here. The specific type of sub-model can also be flexibly set in advance by technicians in this field based on experience, and is not limited to the above content, and can be increased according to the expansion of education field data. For example, it can also be a Belong to model and a leader model, etc., without any limitation here. The business logic relationship between nodes in different sub-models is not exactly the same.
[0119] In this embodiment, by setting entities / nodes with characteristics of the education field, such as schools, grades, classes, teachers, students, lectures, courses, examinations and competitions, as well as sub-models such as course models, teacher models and competition models, the education field data can be modeled and managed comprehensively and accurately.
[0120] In a possible implementation, the attribute list of an entity / the attribute list of a node may include an ID attribute and a common attribute, and the ID attribute may be a unique identification attribute of the entity / node in the graph database.
[0121] Common attributes may include: entity / node name, region, address, subordinate class name, subordinate student name, age, gender, score, time, or one or more of other attributes.
[0122] The attribute list of a relationship / the attribute list of a relationship edge may include: relationship name, generation date, or one or more of other attributes.
[0123] In this embodiment, the general attributes in the attribute list of the entity / node can be flexibly set by those skilled in the art, and are not limited to the above contents, and no restrictions are made here, but there is an ID attribute in each entity / node attribute list. The attribute list of the relationship / the attribute list of the edge of the relationship can also be flexibly set by those skilled in the art, and are not limited to the above contents, and no restrictions are made here.
[0124] In this embodiment, each entity / node is characterized comprehensively and fully based on the ID attribute and the common attribute. The ID attribute can be a unique identification attribute of the entity / node in the graph database, and can identify different entities / nodes.
[0125] For example, Figure 3 This is a structural diagram of the abstract model of the course model, such as Figure 3 As shown in the figure, the course model contains five types of nodes, including class, teacher, student, course and exam. The model is centered on the course, and all other nodes are centered around the course. First, a class will have multiple courses, each course corresponds to a teacher, and every student will study the required courses, and students can choose elective courses according to their own interests. Of course, each course will have regular exams, and the exam results correspond to the students who participated in the study.
[0126] The attribute list of a class may include ID attribute, entity / node name, subordinate student name, and other attributes; the attribute list of a student may include ID attribute, entity / node name, age, gender, and other attributes; the attribute list of a teacher may include ID attribute, entity / node name, age, gender, and other attributes; the attribute list of a course may include ID attribute, entity / node name, and other attributes; the attribute list of an exam may include ID attribute, entity / node name, score, and other attributes.
[0127] For example, Figure 4 The structural diagram of the instantiation of the course model is as follows: Figure 4 As shown, import the corresponding attribute list into Figure 4 After the abstract model shown, we can get the course model that records the correspondence between courses, teachers, students and each test score.
[0128] For example, Figure 5 This is a schematic diagram of the structure of the abstract model of the teacher model, such as Figure 5 As shown in the figure, the teacher model contains 6 types of nodes, including school, grade, class, teacher, student and lecture. The model is centered on teachers. Teachers are first employed by a school and may be the principal of the school. They may belong to a certain grade and may be the leader of a certain grade. They teach in a certain class and may be the head teacher of a certain class. At the same time, the relationship between teachers and students can be that a teacher's course is selected by a certain student, or a certain student listens to a certain teacher's lecture, etc. Figure 5 It can be clearly seen that the teacher node gathers the surrounding nodes together, calmly and orderly forming a relationship diagram with the teacher as the core.
[0129] The attribute list of a school may include an ID attribute, an entity / node name, an area, an address, and other attributes; the attribute list of a grade may include an ID attribute, an entity / node name, a subordinate class name, and other attributes; the attribute list of a lecture may include an ID attribute, an entity / node name, a time, a location, and other attributes.
[0130] For example, Figure 6 This is a schematic diagram of the abstract model of the competition model, such as Figure 6 As shown in the figure, it belongs to a bipartite graph model. The competition model uses two types of edges: hosting edges and participating edges. The model consists of four bipartite graphs, with the competition as the center. Schools, organizers, teachers, and students form bipartite graphs with the competition respectively. It contains five types of nodes, including schools, organizers, teachers, students, and competitions.
[0131] A bipartite graph is a specific undirected graph with the following characteristics: the node set V can be divided into two non-intersecting subsets A and B; at least one of the two nodes i and j connected by each edge e is in set A and the other is in set B.
[0132] The attribute list of the organizer may include ID attribute, entity / node name, and other attributes; the attribute list of the competition may include ID attribute, entity / node name, and other attributes.
[0133] For example, Figure 7 The schematic diagram of the instantiation of the competition model is as follows: Figure 7 As shown, import the corresponding attribute list into Figure 7 After the abstract model shown, we can get 4 very obvious bipartite relationship diagrams.
[0134] S204: According to the nodes having intersections in the multiple corresponding sub-models, the multiple corresponding sub-models are integrated to obtain a property graph data model corresponding to the target graph database.
[0135] In this embodiment, the property graph data model may include one or more of nodes, relationship edges between nodes, property lists of each node, and property lists of each relationship edge.
[0136] In this embodiment, the data in the field of education is relatively orderly, and there is usually a hierarchical relationship, such as school, grade, class, etc. This hierarchical relationship can be represented as a tree diagram, in which each node represents a hierarchical unit, for example, a school node is connected to multiple grade nodes, and each grade node is connected to multiple class nodes. In addition, there can actually be connections between the leaf nodes. For example, a cross-school competition will form connections between classes, students and teachers in each school.
[0137] Therefore, if a school is abstracted as a tree, then many schools gathered together form a large forest. It is more appropriate to call the abstract modeling of education data a forest model, that is, the tree diagram and the network diagram are integrated with each other. Educational data is relatively orderly, but there is a lot of disordered data at the same time. The relationship between these nodes forms a network diagram that is no less complex than social data.
[0138] In this embodiment, the attribute graph data model constructed according to the above steps S201-S204 can effectively reduce the complexity of data association in the education field, and the query performance will not decrease linearly after the data volume reaches a certain level. At the same time, the method of superimposing the parent graph on the sub-graph allows the backward data to conveniently expand the current data model without affecting the current data model.
[0139] In this embodiment, the data in the field of education is numerous and complex, and the use of inefficient relational databases for data modeling can no longer meet the needs. Therefore, an attribute graph data model that emphasizes the association relationship and abstracts it into a graph structure and visually represents and manages data can be used to model the data in the field of education. Fast and efficient modeling is achieved through the attribute graph, which not only improves the efficiency of data modeling, but also improves the efficiency of subsequent data expansion. Specifically, when modeling data, the data to be processed can be first classified and abstracted, and each category can be abstracted into an entity to obtain the first entity data, so as to facilitate the construction of the subsequent attribute graph data model. When constructing the attribute graph data model, multiple different sub-models can be constructed according to the different business relationships between the entities, and then the multiple sub-models are integrated according to the nodes with intersections to obtain the attribute graph data model. Through such a setting, not only the efficiency and accuracy of data modeling can be improved, but also the subsequent division of the attribute graph data model into multiple sub-models for segmented analysis is convenient, and data analysis of the entire attribute graph data model is not required, which improves the practicality and flexibility of the attribute graph data model. After obtaining multiple sub-models, the model can be integrated according to the nodes with intersections in the model, so that the attribute graph data model corresponding to the target graph database can be obtained easily and quickly.
[0140] The following is a detailed description of the expansion method of the attribute graph data model corresponding to the target graph database in the above-mentioned embodiment one using a specific embodiment three.
[0141] Embodiment 3
[0142] Figure 8 This is a flowchart of a method for processing educational data according to another embodiment of the present application. This embodiment uses an electronic device as the execution subject to illustrate the method for processing educational data. Figure 8 As shown, the method for processing educational data may include the following steps:
[0143] S301: Receive a data expansion instruction, and determine the target graph database corresponding to the data expansion instruction and the educational data to be expanded.
[0144] In this embodiment, the data expansion instruction may be an instruction input into an electronic device when a staff member wants to expand the data of a certain graph database. The data expansion instruction may include the educational data to be expanded and the target graph database to be expanded.
[0145] S302: Classify and abstract the education data to be expanded to obtain corresponding second entity data.
[0146] In this embodiment, the second entity data may include one or more of entities to be expanded, relationships between entities to be expanded, attribute lists of entities to be expanded, and attribute lists of relationships to be expanded.
[0147] In this embodiment, for the specific process of classifying and abstracting the expanded education data, please refer to the existing data classification and abstraction process in the process of constructing the attribute graph data model, which will not be elaborated here.
[0148] S303: Generate corresponding target graph data according to the second entity data.
[0149] In this embodiment, the target graph data may include one or more of nodes to be expanded, relationship edges to be expanded, attribute lists of nodes to be expanded, and attribute lists of relationship edges to be expanded.
[0150] In this embodiment, the second entity data may be text data, and the target graph data may be attribute graph data corresponding to the second entity data.
[0151] In a possible implementation, generating corresponding target graph data according to the second entity data may include:
[0152] S21: Generate corresponding nodes to be expanded according to entities to be expanded in the second entity data, and / or generate corresponding relationship edges to be expanded according to relationships to be expanded between entities in the second entity data.
[0153] S22: Generate first graph data according to the nodes to be expanded and / or the relationship edges to be expanded.
[0154] S23: According to the data import method corresponding to the target graph database, the attribute list of the entity to be expanded and / or the attribute list of the relationship to be expanded in the second entity data is imported into the first graph data to obtain the target graph data.
[0155] In this embodiment, the data import method can be determined by the capabilities of the selected target graph database. For example, taking the tigergraph graph database as an example, the graph database supports the following four data import methods: local file (excel and json), S3, GCS and ABS. When importing, you can select one according to the actual operation.
[0156] In this embodiment, corresponding nodes to be expanded are generated according to the entities to be expanded, and corresponding relationship edges to be expanded are generated according to the relationships to be expanded between the entities, so that the basic graph structure first graph data can be generated, and the attribute list of the entities to be expanded and / or the attribute list of the relationships to be expanded are imported into the first graph data, so that the target graph data to be expanded can be obtained simply and conveniently, thereby improving the efficiency of data expansion.
[0157] S304: Perform data expansion processing on the property graph data model corresponding to the target graph database according to the target graph data to obtain an expanded property graph data model.
[0158] In this embodiment, the data structure model of the graph is divided into two types: the property graph data model and the RDF graph data model. The property graph data model is suitable for entity attribute and complex relationship modeling, and usually emphasizes association and attribute analysis. The RDF graph emphasizes semantic relationships and semantic reasoning, and has advantages in building semantic networks and data interoperability. Therefore, for data in the field of education, the relationships between various data (entities) are complex and have many attributes. It is undoubtedly very appropriate to use the property graph data model for modeling and storage.
[0159] In a possible implementation, data expansion processing is performed on the property graph data model corresponding to the target graph database according to the target graph data to obtain the expanded property graph data model, which may include:
[0160] S31: Traverse the property graph data model corresponding to the target graph database to determine whether there is second graph data in the target graph data, where the second graph data is data that is repeated in the target graph data and the property graph data model;
[0161] S32: If yes, then perform data expansion processing on the attribute graph data model according to the data in the target graph data except the second graph data to obtain an expanded attribute graph data model.
[0162] S33: If yes, then directly perform data expansion processing on the attribute graph data model corresponding to the target graph database according to the target graph data to obtain an expanded attribute graph data model.
[0163] In this embodiment, the second graph data may include one or more of nodes, relationship edges, attribute lists of nodes, and attribute lists of relationship edges.
[0164] In this embodiment, the target graph data may contain data that is repeated in the attribute graph data model, and these repeated data do not need to be generated and stored again. Therefore, before data expansion, the attribute graph data model corresponding to the target graph database can be traversed to determine whether the target graph data contains the second graph data. If so, the attribute graph data model is expanded based on the data in the target graph data except the second graph data, so as to further improve the efficiency of data expansion.
[0165] In this embodiment, the data in the education field is actually quite complex. If a relational database is used to build a data model, a table must be designed for each node first, and then a relationship table must be designed for the relationship between the related nodes according to business needs. As the business becomes more and more complex, the relationship tables will become more and more numerous and complex. However, when using the data modeling method of the attribute graph data model, for each additional entity, only one node needs to be added, and for each additional business relationship, only one edge needs to be drawn between the related nodes. Moreover, for more complex relationships, they can be separated into a sub-model for separate research. This feature of the attribute graph data model greatly improves the efficiency of data expansion.
[0166] In this embodiment, when managing the data in the field of education, the graph data modeling method can be used first to construct the attribute graph data model corresponding to the target graph database, and the data of each dimension in the field of education can be quickly and efficiently modeled by the attribute graph that emphasizes the association relationship, thereby improving the efficiency of data modeling. When receiving the data expansion instruction to expand the target graph database, it is only necessary to classify and abstract the education data to be expanded to obtain the corresponding second entity data, and generate the corresponding target graph data according to the second entity data, and then the attribute graph data model corresponding to the target graph database can be expanded according to the target graph data, so as to achieve simple and efficient data expansion and reflect the relationship between each data, without the need to design a large number of relationship tables. Since the relationship between each graph data in the attribute graph data model is a kind of transmission property, the attribute graph data model naturally has the ability to be expanded, so the use of graph data for data modeling and data expansion of education data greatly improves the efficiency of data modeling and data expansion.
[0167] The following is an explanation of the method for processing educational data of the present application using a specific embodiment.
[0168] Embodiment 4
[0169] In a specific embodiment, an educational institution uses a graph database to manage educational data. The specific data processing process is as follows:
[0170] In the first step, the computer classifies and abstracts the data to be processed of the educational institution to obtain corresponding first entity data. The first entity data may include entities, relationships between entities, attribute lists of entities, and attribute lists of relationships between entities.
[0171] In the second step, the computer constructs multiple abstract models according to the entities and the relationships between them. The abstract models may include nodes corresponding to the entities and relationship edges between the nodes corresponding to the relationships between the entities.
[0172] In the third step, the computer imports the attribute list of each entity and the attribute list of the relationship between entities into multiple abstract models according to the data import method corresponding to the target graph database, and obtains multiple corresponding sub-models.
[0173] In the fourth step, the computer integrates the multiple corresponding sub-models according to the nodes with intersection in the multiple corresponding sub-models to obtain the attribute graph data model corresponding to the target graph database.
[0174] In the fifth step, the computer receives the data expansion instruction and determines that the key fields corresponding to the data query instruction are: target graph database: graph database A; node data to be queried: competition; attribute data to be queried: 2022-2023.
[0175] In the sixth step, the computer determines that there is a competition model corresponding to the competition in the graph database A based on the correspondence between the preset nodes and sub-models, and then determines the target data that meets the time attribute 2022-2023 from the data corresponding to the competition model in the graph database A.
[0176] In the seventh step, the computer generates target data and outputs the query results.
[0177] Fig. 9 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig. 9As shown, the electronic device includes: a receiving module 11, which is used to receive a data query instruction and determine the key fields corresponding to the data query instruction, and the key fields include a target graph database, node data to be queried, and attribute data to be queried; a processing module 12, which is used to determine the target sub-model corresponding to the node to be queried in the attribute graph data model corresponding to the target graph database according to the preset correspondence between the node and the sub-model; determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data; wherein, the attribute graph data model corresponding to the target graph database is obtained by integrating multiple sub-models, and the sub-models include one or more of a course model, a teacher model, and a competition model. In one embodiment, the description of the specific implementation function of the electronic device can refer to steps S101-S103 in Example 1, steps S201-S204 in Example 2, and steps S301-S304 in Example 3, which will not be repeated here.
[0178] Fig.10 Schematic diagram of the structure of an electronic device according to an embodiment of the present application. Fig.10 As shown, the electronic device includes: a processor 101, and a memory 102 communicatively connected to the processor 101; the memory 102 stores computer execution instructions; the processor 101 executes the computer execution instructions stored in the memory 102 to implement the steps of the educational data processing method in the above-mentioned method embodiments.
[0179] In the above electronic device, the memory 102 and the processor 101 are electrically connected directly or indirectly to realize data transmission or interaction. For example, these elements can be electrically connected to each other through one or more communication buses or signal lines, such as through a bus connection. The memory 102 stores computer-executable instructions for implementing the data access control method, including at least one software function module that can be stored in the memory 102 in the form of software or firmware. The processor 101 executes various functional applications and data processing by running the software programs and modules stored in the memory 102.
[0180] The memory 102 may be, but is not limited to, a random access memory (RAM), a read only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electric erasable programmable read-only memory (EEPROM), etc. The memory 102 is used to store programs, and the processor 101 executes the programs after receiving the execution instruction. Furthermore, the software programs and modules in the above-mentioned memory 102 may also include an operating system, which may include various software components and / or drivers for managing system tasks (such as memory management, storage device control, power management, etc.), and may communicate with various hardware or software components to provide an operating environment for other software components.
[0181] The processor 101 may be an integrated circuit chip having the ability to process signals. The processor 101 may be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc. The methods, steps, and logic diagrams disclosed in the embodiments of the present application may be implemented or executed. The general-purpose processor may be a microprocessor or the processor may be any conventional processor, etc.
[0182] An embodiment of the present application further provides a computer-readable storage medium, in which computer-executable instructions are stored. When the computer-executable instructions are executed by a processor, they are used to implement the steps of each method embodiment of the present application.
[0183] An embodiment of the present application further provides a computer program product, including a computer program, which implements the steps of each method embodiment of the present application when executed by a processor.
[0184] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all optional embodiments, and the actions and modules involved are not necessarily required by the present application.
[0185] It should be further noted that, although the various steps in the flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a portion of the steps in the flowchart may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0186] It should be understood that the above-mentioned device embodiments are only illustrative, and the device of the present application can also be implemented in other ways. For example, the division of units / modules in the above-mentioned embodiments is only a logical function division, and there may be other division methods in actual implementation. For example, multiple units, modules or components can be combined, or can be integrated into another system, or some features can be ignored or not executed.
[0187] In addition, unless otherwise specified, each functional unit / module in each embodiment of the present application may be integrated into one unit / module, each unit / module may exist physically separately, or two or more units / modules may be integrated together. The above-mentioned integrated unit / module may be implemented in the form of hardware or in the form of a software program module.
[0188] In the above embodiments, the description of each embodiment has its own emphasis. For the part not described in detail in a certain embodiment, please refer to the relevant description of other embodiments. The technical features of the above embodiments can be combined arbitrarily. In order to make the description concise, all possible combinations of the technical features in the above embodiments are not 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.
[0189] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the appended claims.
[0190] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. A method for processing educational data, characterized in that: include: Receive a data query instruction, and determine key fields corresponding to the data query instruction, wherein the key fields include a target graph database, node data to be queried, and attribute data to be queried; According to the preset correspondence between nodes and sub-models, determine the target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database; Determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data; The attribute graph data model corresponding to the target graph database is obtained by integrating multiple sub-models after constructing multiple sub-models according to different business relationships between entities, and the sub-models include one or more of a course model, a teacher model and a competition model; Before determining the target data corresponding to the attribute data to be queried in the target sub-model, the method further includes: Determine whether there is a target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database; If so, executing the step of determining the target data corresponding to the attribute data to be queried in the target sub-model; If it does not exist, determine the target node that has an association relationship with the node to be queried in the attribute graph data model corresponding to the target graph database; determine the graph data to be queried based on each target node, the relationship edge between each target node and the node to be queried, and the node to be queried; determine the target data corresponding to the attribute data to be queried in the graph data to be queried.
2. The method for processing educational data according to claim 1, characterized in that: The property graph data model corresponding to the target graph database is obtained in the following way: Classify and abstract the data to be processed to obtain corresponding first entity data, where the first entity data includes entities, relationships between entities, attribute lists of entities, and attribute lists of relationships between entities; According to the entities and the relationships between the entities, a plurality of abstract models are constructed respectively, wherein the abstract models include nodes corresponding to the entities and relationship edges between the nodes corresponding to the relationships between the entities; According to the data import method corresponding to the target graph database, the attribute list of each entity and the attribute list of the relationship between the entities are respectively imported into the multiple abstract models to obtain multiple corresponding sub-models; According to nodes having intersections in the multiple corresponding sub-models, the multiple corresponding sub-models are integrated to obtain a property graph data model corresponding to the target graph database; Among them, the attribute graph data model includes one or more of nodes, relationship edges between nodes, attribute lists of each node, and attribute lists of each relationship edge; the entities / nodes include one or more of schools, grades, classes, teachers, students, lectures, courses, exams, and competitions.
3. The method for processing educational data according to claim 2, characterized in that: The multiple abstract models are constructed according to the entities and the relationships between the entities, and specifically include at least one of the following: According to the entities in the first entity set and the relationship between the entities in the first entity set, a first abstract model centered on the course node is constructed; the first entity set includes classes, teachers, students, courses and exams; According to the entities in the second entity set and the relationship between the entities in the second entity set, a second abstract model centered on the teacher node is constructed; the second entity set includes teachers, schools, grades, classes, students and lectures; According to the entities in the third entity set and the relationship between the entities in the third entity set, a third abstract model centered on the competition node is constructed; the relationship edges between the nodes in the third abstract model are hosting relationships and participating relationships; the third entity set includes schools, organizers, teachers, students and competitions.
4. The method for processing educational data according to claim 3, characterized in that: The attribute list of the entity / the attribute list of the node includes an ID attribute and a common attribute, wherein the ID attribute is a unique identification attribute of the entity / node in the graph database; The general attributes include: entity / node name, region, address, subordinate class name, subordinate student name, age, gender, score, time, or one or more of other attributes; The attribute list of the relationship / the attribute list of the relationship edge includes: relationship name, generation date, and one or more of other attributes.
5. The method for processing educational data according to claim 2, characterized in that: The method further comprises: Receive a data expansion instruction, and determine a target graph database corresponding to the data expansion instruction and educational data to be expanded; Classify and abstract the educational data to be expanded to obtain corresponding second entity data, wherein the second entity data includes one or more of the entities to be expanded, the relationships to be expanded between entities, the attribute lists of the entities to be expanded, and the attribute lists of the relationships to be expanded; Generate corresponding nodes to be expanded according to the entities to be expanded in the second entity data, and / or generate corresponding relationship edges to be expanded according to the relationships to be expanded between entities in the second entity data; Generate first graph data according to the nodes to be expanded and / or the relationship edges to be expanded; According to the data import method corresponding to the target graph database, the attribute list of the entity to be expanded and / or the attribute list of the relationship to be expanded in the second entity data is imported into the first graph data to obtain the target graph data; Data expansion processing is performed on the attribute graph data model corresponding to the target graph database according to the target graph data to obtain an expanded attribute graph data model.
6. The method for processing educational data according to claim 5, characterized in that: The performing data expansion processing on the property graph data model corresponding to the target graph database according to the target graph data to obtain the expanded property graph data model specifically includes: Traversing the property graph data model corresponding to the target graph database to determine whether there is second graph data in the target graph data, where the second graph data is data that is repeated in the target graph data and the property graph data model; If so, data expansion processing is performed on the attribute graph data model according to the data in the target graph data except the second graph data to obtain an expanded attribute graph data model.
7. An electronic device, characterized in that: include: A receiving module, used to receive a data query instruction and determine key fields corresponding to the data query instruction, wherein the key fields include a target graph database, node data to be queried, and attribute data to be queried; A processing module, used to determine the target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database according to the preset correspondence between the node and the sub-model; Determine the target data corresponding to the attribute data to be queried in the target sub-model, and generate a query result according to the target data; wherein the attribute graph data model corresponding to the target graph database is obtained by integrating the multiple sub-models after constructing multiple different sub-models according to different business relationships between entities, and the sub-models include one or more of a course model, a teacher model and a competition model; Before determining the target data corresponding to the attribute data to be queried in the target sub-model, the method further includes: Determine whether there is a target sub-model corresponding to the node to be queried in the property graph data model corresponding to the target graph database; If so, executing the step of determining the target data in the target sub-model corresponding to the attribute data to be queried; If it does not exist, determine the target node that has an association relationship with the node to be queried in the attribute graph data model corresponding to the target graph database; determine the graph data to be queried based on each target node, the relationship edge between each target node and the node to be queried, and the node to be queried; determine the target data corresponding to the attribute data to be queried in the graph data to be queried.
8. An electronic device, characterized in that: comprising a processor, and a memory communicatively connected to the processor; The memory stores computer-executable instructions; The processor executes the computer-executable instructions stored in the memory to implement the processing method according to any one of claims 1 to 6.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer-executable instructions, which are used to implement the processing method according to any one of claims 1 to 6 when executed by a processor.
