Information storage and display methods, devices, media, and equipment
By treating the test questions as a combination of elements and storing and displaying them with elements as the smallest units, the problem of insufficient support for special question types in the existing technology is solved, and the effect of efficient storage and effective display is achieved.
Patent Information
- Application Number
- CN202111012487.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-08-31
- Publication Date
- 2025-06-13
- Estimated Expiration
- 2041-08-31
AI Technical Summary
When storing and displaying test questions in teaching aids, the existing technology is difficult to effectively support various special question types, resulting in low storage efficiency and inability to effectively restore the display effect.
By treating the test questions as combinations of elements, they are stored and displayed in the smallest units. The specific steps include obtaining the entry information of the test questions, determining its structure and description information, generating node information and data records, storing and displaying the test questions.
It realizes efficient storage and display of test questions of various question structures, improves storage efficiency, and effectively restores the display and interaction characteristics of the test questions.
Smart Images

Figure CN115730031B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the technical field of data processing, and specifically relates to methods, devices, media, and equipment for information storage and display. Background Art
[0002] When processing and storing test questions in teaching supplementary books into a database, the test questions are stored with each question as the smallest unit. Due to the diverse question types and structures, there will be situations where the question bank does not support the storage, and it is necessary to develop templates separately for special question types for entry, which greatly affects the efficiency of test question storage. Secondly, when storing test questions with certain special question type structures, it is impossible to describe their internal display and interaction characteristics in detail, resulting in the inability to effectively restore the display and interaction effects of the test questions during display. Summary of the Invention
[0003] In order to improve the efficiency of information storage and effectively restore the display and interaction effects of information, this application provides methods, devices, media, and equipment for information storage and display. The technical solutions are as follows:
[0004] In a first aspect, this application provides an information storage method, which includes:
[0005] Obtain the input information of the target test question object, and determine the structure information and description information of the target test question object according to the input information;
[0006] Determine the first element in the target test question object according to the structure information, and generate the node information of the target test question object and the sub-node information of the first element; the first element is one or more of the stem, options, answers, and analysis;
[0007] Determine the general characteristic information of the target test question object, as well as the general characteristic information and proprietary characteristic information of the first element according to the description information;
[0008] Generate the first data record of the target test question object according to the node information of the target test question object and the general characteristic information of the target test question object;
[0009] Generate the second data record of the first element according to the sub-node information of the first element and the general characteristic information of the first element;
[0010] Generate the third data record of the first element according to the sub-node information of the first element and the proprietary characteristic information of the first element;
[0011] Store the first data record, the second data record, and the third data record as the test question resources of the target test question object in the question bank.
[0012] Second aspect, the present application provides an information display method, the method comprising:
[0013] In response to a display operation for a target test question object, obtain a first data record of the target test question object, the first data record including node information and general feature information of the target test question object;
[0014] According to the node information of the target test question object, determine a first element in the target test question object; the first element is one or more of a stem, options, answers, and analysis;
[0015] Obtain a second data record of the first element and a third data record of the first element; the second data record includes sub-node information and general feature information of the first element; the third data record includes sub-node information and proprietary feature information of the first element;
[0016] According to the node information of the target test question object and the sub-node information of the first element, obtain the structural information of the target test question object;
[0017] According to the general feature information of the target test question object, the general feature information of the first element, and the proprietary feature information, obtain the description information of the target test question object;
[0018] Display the target test question object according to the structural information and the description information.
[0019] Third aspect, the present application provides an information storage device, the device comprising:
[0020] An input information acquisition module, configured to acquire input information of a target test question object, and determine the structural information and description information of the target test question object according to the input information;
[0021] A node information determination module, configured to determine a first element in the target test question object according to the structural information, and generate node information of the target test question object and sub-node information of the first element; the first element is one or more of a stem, options, answers, and analysis;
[0022] A feature information determination module, configured to determine general feature information of the target test question object, as well as general feature information and proprietary feature information of the first element according to the description information;
[0023] A first data record generation module, configured to generate a first data record of the target test question object according to the node information of the target test question object and the general feature information of the target test question object;
[0024] A second data record generation module, configured to generate a second data record of the first element according to the child node information of the first element and the general feature information of the first element;
[0025] A third data record generation module, configured to generate a third data record of the first element according to the child node information of the first element and the proprietary feature information of the first element;
[0026] A storage module, configured to store the first data record, the second data record, and the third data record as the question resources of the target question object in the question bank.
[0027] Fourthly, the present application provides an information display device, and the device includes:
[0028] A first data record acquisition module, configured to acquire a first data record of the target question object in response to a display operation on the target question object, where the first data record includes the node information and general feature information of the target question object;
[0029] A first element determination module, configured to determine a first element in the target question object according to the node information of the target question object; the first element is one or more of a question stem, an option, an answer, and an analysis;
[0030] A second data record acquisition module, configured to acquire a second data record of the first element and a third data record of the first element; the second data record includes the child node information and general feature information of the first element; the third data record includes the child node information and proprietary feature information of the first element;
[0031] A structure information determination module, configured to obtain the structure information of the target question object according to the node information of the target question object and the child node information of the first element;
[0032] A description information determination module, configured to obtain the description information of the target question object according to the general feature information of the target question object, the general feature information of the first element, and the proprietary feature information;
[0033] A display module, configured to display the target question object according to the structure information and the description information.
[0034] Fifthly, the present application provides a computer-readable storage medium, in which at least one instruction or at least one program segment is stored, and the at least one instruction or at least one program segment is loaded and executed by a processor to implement an information storage method as described in the first aspect or an information display method as described in the second aspect.
[0035] In a sixth aspect, the present application provides a computer device, which includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or at least one program segment is loaded and executed by the processor to implement an information storage method as described in the first aspect or an information display method as described in the second aspect.
[0036] In a seventh aspect, the present application provides a computer program product or a computer program. The computer program product or the computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes an information storage method as described in the first aspect or an information display method as described in the second aspect.
[0037] The information storage and display methods, devices, media and equipment provided by the present application have the following technical effects:
[0038] When storing questions in the solution provided by the present application, the questions are regarded as combinations of elements, and the elements are stored as the smallest units. The elements may include question stems, options, answers or analysis. First, determine the structural information and description information of the target question object according to the input information, where the structural information can represent the hierarchical relationship between the target question object and its first element, and the description information can represent the characteristics of the target question object, the content and characteristics of the first element; specifically, according to the structural information, the node information of the target question object and the sub-node information of its first element can be determined; according to the description information, the general characteristic information of the target question object, the general characteristic information of the first element and the proprietary characteristic information can be determined; thus, the first data record of the target entity object, the second data record of the first element and the third data record can be generated, and the node information and general characteristic information of the target question object, the sub-node information and general characteristic information of the first element, and the sub-node information and proprietary characteristic information of the first element are stored respectively, where the proprietary characteristic information can indicate the characteristics of the first element in terms of display and interaction effects. The information storage solution provided by the present application can be applied to questions of various question types, without the need to develop an input template separately for special question types, improving the efficiency of information storage. At the same time, by expanding the proprietary characteristic information of the elements, the characteristics of the questions during display and interaction can be retained.
[0039] When the solution provided by this application displays test questions, the first element attached to the target test question object is determined, so that the structural information and description information of the entire target test question object can be parsed according to the first data record of the target test question object stored, the second data record, and the third data record of the first element. Therefore, not only can the content of the target test question object be displayed, but also the characteristics of the display and interaction of the target test question object can be restored. The solution provided by this application constructs an element-level question bank, and this question bank has stronger compatibility and versatility.
[0040] Additional aspects and advantages of this application will be given in part in the following description, will become apparent in part from the following description, or will be learned through the practice of this application. Brief Description of the Drawings
[0041] To more clearly illustrate the technical solutions and advantages in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, the drawings in the following description are only some embodiments of this application. For those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.
[0042] Figure 1 is a schematic diagram of the implementation environment of an information storage and display method provided by an embodiment of this application;
[0043] Figure 2 is a schematic flowchart of an information storage method provided by an embodiment of this application;
[0044] Figure 3 is a schematic diagram of the structure of an element provided by an embodiment of this application;
[0045] Figure 4 is a schematic diagram of the structure of a multi-level test question object provided by an embodiment of this application;
[0046] Figure 5 is a schematic diagram of the structure of a tree model of another multi-level test question object provided by an embodiment of this application;
[0047] Figure 6(1) is a schematic diagram of the structure of a first data record and a second data record provided by an embodiment of this application;
[0048] Figure 6(2) is a schematic diagram of the structure of a third data record provided by an embodiment of this application;
[0049] Figure 7 is a schematic flowchart of a multi-level information storage method provided by an embodiment of this application;
[0050] Figure 8(1) is a schematic structural diagram of another second data record of the first data record and the second element provided by the embodiment of the present application;
[0051] Figure 8(2) is a schematic structural diagram of another third data record provided by the embodiment of the present application;
[0052] Figure 9 is a schematic flow diagram of obtaining input information provided by the embodiment of the present application;
[0053] Figure 10 is a schematic diagram of an information input page in a specific application scenario provided by the embodiment of the present application;
[0054] Figure 11 is a schematic flow diagram of an information display method provided by the embodiment of the present application;
[0055] Figure 12 is a schematic flow diagram of a multi-level information display method provided by the embodiment of the present application;
[0056] Figure 13 is a schematic flow diagram of another multi-level information display method provided by the embodiment of the present application;
[0057] Figure 14 is a schematic flow diagram of displaying a target test question object provided by the embodiment of the present application;
[0058] Figure 15 is a schematic diagram of an information display page in an application scenario provided by the embodiment of the present application;
[0059] Figure 16 is a schematic diagram of an information storage device provided by the embodiment of the present application;
[0060] Figure 17 is a schematic diagram of an information display device provided by the embodiment of the present application;
[0061] Figure 18 is a schematic hardware structure diagram of a device for implementing an information storage method or an information display method provided by the embodiment of the present application. Detailed implementation manners
[0062] To improve the efficiency of information storage and effectively restore the display and interaction effects of information, the embodiments of the present application provide an information storage and display method, device, medium, and equipment. The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present application. Obviously, the described embodiments are only a part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by those of ordinary skill in the art based on the embodiments of the present application without creative efforts shall fall within the protection scope of the present application. Examples of the embodiments are shown in the accompanying drawings, where the same or similar reference numerals denote the same or similar elements or elements with the same or similar functions throughout.
[0063] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and do not necessarily need to describe a specific order or sequence. It should be understood that such data can be interchanged under appropriate circumstances, so that the embodiments of the present application described here can be implemented in an order different from those illustrated or described here. In addition, the terms "comprising" and "having" and any variations thereof are intended to cover non-exclusive inclusion. For example, a process, method, system, product, or server that includes a series of steps or units does not necessarily need to be limited to those clearly listed steps or units, but may include other steps or units not clearly listed or inherent to these processes, methods, products, or devices.
[0064] Please refer to Figure 1 , which is a schematic diagram of the implementation environment of the information storage and display method provided by the embodiments of the present application. As Figure 1 shown, the implementation environment may at least include a client 01 and a server 02.
[0065] Specifically, the client 01 may include devices such as smartphones, desktop computers, tablet computers, laptop computers, digital assistants, vehicle-mounted terminals, vehicle networking devices, smart wearable devices, monitoring devices, and voice interaction devices, and may also include software running on the devices. For example, some web pages provided by service providers to users, or applications provided by these service providers to users. Specifically, the client 01 may be used to display an information entry page to receive the test question information entered by the user, and the client 01 transmits the entered test question information to the server 02 so that the server 02 generates an element-level data record of the test question according to the entered test question information and stores it. The client 01 may also, in response to a display operation on a target test question object, obtain the element-level data record of the target test question object, and parse the structure information and description information of the target test question object therefrom, and display the target test question object on the displayed information display page.
[0066] Specifically, the server 02 can be an independent physical server, a server cluster or a distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN (Content Delivery Network), and big data and artificial intelligence platforms. The server 02 can include a network communication unit, a processor, a memory, and so on. The terminal and the server can be directly or indirectly connected through wired or wireless communication methods, and this application does not limit this. Specifically, the server 02 can be used to determine the structure information and description information according to the input information for the target test question object, obtain the element-level data record of the target test question object according to the structure information and description information, and store it. The server 02 can also be used to respond to the display operation for the target test question object, and send the element-level data record of the target test question object to the client 01 so that the client 01 can parse the structure information and description information of the target test question object according to the data record, so as to display the target test question object on the page.
[0067] The embodiments of this application can also be implemented in combination with cloud technology. Cloud technology (Cloud technology) refers to a hosting technology that unifies a series of resources such as hardware, software, and networks within a wide area network or a local area network to achieve the calculation, storage, processing, and sharing of data. It can also be understood as the general term for network technology, information technology, integration technology, management platform technology, and application technology based on the cloud computing business model. Cloud technology requires cloud computing as the support. Cloud computing is a computing model that distributes computing tasks on a resource pool composed of a large number of computers, enabling various application systems to obtain computing power, storage space, and information services according to needs. The network that provides resources is called the "cloud". Specifically, the server 02 and the database are located in the cloud, and the server 02 can be a physical machine or a virtualized machine.
[0068] The following introduces an information storage method provided by this application. Figure 2 It is a flowchart of an information storage method provided by the embodiments of this application. This application provides the method operation steps as described in the embodiments or the flowchart, but based on routine or non-creative labor, there can be more or fewer operation steps. The step order listed in the embodiments is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or server product executes, it can be executed in the order of the embodiments or the method shown in the drawings, or executed in parallel (for example, in an environment of parallel processors or multi-threaded processing). Please refer to Figure 2 , an information storage method provided by the embodiments of this application can include the following steps:
[0069] S210: Obtain the input information of the target test question object, and determine the structure information and description information of the target test question object according to the input information.
[0070] In the embodiments of the present application, when storing test questions, the test questions are regarded as a combination of elements, and stored with the element as the smallest unit. The elements can include the question stem, options, answers, or analysis. The test question, as a combination of elements, can also be regarded as a special element. In the present application, an object is used to represent the combination of elements. First, determine the structure information and description information of the test question object according to the input information, where the structure information can characterize the hierarchical relationship between the test question object and its various elements, and the description information can characterize the characteristics of the test question object, the content and characteristics of the elements.
[0071] In an embodiment of the present application, the characteristics of the test question object can be general attributes or labels such as the question type, difficulty level, grade, subject, and knowledge points involved in the test question object; the content of the element can include text data and resource files for displaying the internal information of the test question object. The characteristics of the element can include, in addition to the above general attributes or labels, proprietary characteristics such as the external manifestation form when a single element is displayed or interacted with in the test question.
[0072] Specifically, Figure 3 shows a schematic diagram of the structured definition of the element, as Figure 3 shown, the content of the element can be text data and referenced resource files. The resource files can include, but are not limited to, mathematical formulas, tables, pictures, audio, or video. For the element, various attribute and label, extended attribute, and extended label and other characteristic information can also be marked. It should be noted that the attribute can be the nature and relationship of the test question object or element, the label can be used for classification and retrieval, the extended attribute is an attribute unique to some test question objects or elements, and the extended label can be defined according to specific business requirements, such as the requirements of dynamic display and human-computer interaction. Exemplarily, among the four basic elements of the test question, the content of the question stem can be composed of text and resource files. There can be multiple question stems in the elements of the test question object, or the question stem may not be included; the content of the option includes the option number and the option content. The option content can be composed of text and resource files, and the option number may not have a resource file; the content of the answer can be composed of text and resource files. There can be multiple answers to a test question; the content of the analysis can be composed of text and resource files, and one analysis can be provided for one answer, or one analysis can be provided for one option.
[0073] In summary, the test question object can be an element set freely combined by the four basic elements of the question stem, options, answers, and analysis. The test question object can be regarded as a special element, and characteristic information such as attributes and labels can also be added to the test question object. Figure 4A schematic structural diagram of a multi-level test question object is shown. The test question object can support multi-level nesting. In addition to the basic elements directly corresponding to the test question object, it can also include sub-question objects, and the sub-question objects can include one or more of the four basic elements corresponding to the sub-question objects. Considering that the test question object supports multi-level nesting, the structure of the test question object can be converted into a tree structure. Figure 5 A schematic structural diagram of a tree model of a multi-level test question object is shown. Among them, for the test question object, the first-level elements can include stem 1, option 1, answer 1, analysis 1, and sub-question 1 (sub-question 1 can be regarded as a special element as a set of elements). For the test question object, the second-level elements can include stem 2, option 2, answer 2, and analysis 2. At the same time, stem 2, option 2, answer 2, and analysis 2 are also the basic elements corresponding to sub-question 1.
[0074] S220: Determine the first element in the target test question object according to the structure information, and generate the node information of the target test question object and the sub-node information of the first element; the first element is one or more of a stem, an option, an answer, and an analysis.
[0075] In the embodiments of the present application, the first element in the target test question object is determined according to the structure information that can characterize the hierarchical relationship of the test question object and its various elements, where the first element is a stem, an option, an answer, and an analysis, and the node information of the target test question object and the sub-node information of the first element can be determined according to a preset format.
[0076] In the embodiments shown in steps S220 to S270, the element-level structure of the test question is represented by taking the hierarchical structure of the target test question object - the first element as an example. In this embodiment, the node information of the target test question object can characterize the position of the target test question object as the root node in the tree structure, and the sub-node information of the first element can characterize that the first element is the sub-node of the root node.
[0077] S230: Determine the general characteristic information of the target test question object according to the description information, as well as the general characteristic information and proprietary characteristic information of the first element.
[0078] Specifically, the general characteristic information can include but is not limited to general attributes or labels such as the question type, difficulty level, age group, subject, and knowledge points involved in the target test question object or the first element. The target test question object or the first element can be classified and retrieved through the general characteristic information. The proprietary characteristic information of the first element can include but is not limited to the unique external manifestation characteristics such as the playable characteristic of audio and video and the magnifiable characteristic of pictures during display and interaction of special question types, or can also be a label category defined to meet some specific business requirements.
[0079] S240: Generate a first data record of the target test item object according to the node information and the general feature information of the target test item object.
[0080] In an embodiment of the present application, the relevant data records of the target test item object are stored in a relational database. In the relational database, data is stored in units of rows. Therefore, the tree model of the questions can be converted into data records in units of rows. To avoid performance degradation caused by an overly large database, the data records of the test item object and the four basic elements can be stored separately.
[0081] Exemplarily, as shown in FIG. 6(1), for the target test item object, the question ID (Identity) and PID (Parent ID) in its first data record indicate its node information, that is, the hierarchical position of the target test item object in the tree model, and the general attributes represent its general feature information.
[0082] In the embodiment of the present application, the hierarchical position information and the general feature information of the target test item object as an element set are stored through the first data record.
[0083] S250: Generate a second data record of the first element according to the sub-node information and the general feature information of the first element.
[0084] Exemplarily, as shown in FIG. 6(1), for the target test item object, corresponding second data records are generated for the first elements subordinate to it respectively. Each second data record includes the same question ID, and the element ID is the identifier of each first element. In addition, there may be more than one option, answer, analysis, etc. Therefore, the first element may also have a corresponding index identifier (IndexID). In the embodiment of the present application, the hierarchical position information and the general feature information of the first element corresponding to the target test item object are stored through the second data record. In addition, the second data record can also record the text data in the element and the reference address of the resource file.
[0085] S260: Generate a third data record of the first element according to the sub-node information and the proprietary feature information of the first element.
[0086] For the first element, its proprietary features during display and interaction can also be added, or proprietary tags added for specific business requirements. Exemplarily, the third data record of the first element can be as shown in Figure 6(2), where the question ID and element ID represent the sub-node information of the first element, the type can indicate its element type (question stem, option, answer, or analysis), and the proprietary feature information can be stored in the form of key-Value (key-value pair). The addition of proprietary feature information can eliminate the need to separately develop corresponding software modules for storing test questions for special question types or specific business requirements.
[0087] S270: Store the first data record, the second data record, and the third data record as the test question resources of the target test question object in the question bank.
[0088] In another embodiment of the present application, as Figure 7 shown, the method may further include the following steps:
[0089] S310: Determine the sub-objects in the target test question object and the second elements of the sub-objects according to the structure information; the second elements are one or more of a question stem, an option, an answer, and an analysis.
[0090] In the embodiment shown in steps S310 - S320, the multi-level nesting of test questions is exemplified by the hierarchical structure of the target test question object - the first element and the sub-object - the second element of the sub-object.
[0091] Specifically, in the tree model, the sub-object is also a sub-node of the target test question object (root node), at the same level as the first element of the target test question object, and the sub-object can be regarded as a special first element; while the second element is a grandchild node of the target test question object (root node), an element at the next level of the first element.
[0092] S320: Obtain the first data record of the sub-object, the second data record of the second element, and the third data record of the second element according to the structure information and the description information.
[0093] Exemplarily, for the sub-object in the target test question object, Figure 8(1) shows the first data record of the sub-question (sub-object) and the second data record of the second element, and Figure 8(2) shows the third data record of the second element. Different from Figures 6(1) and 6(2), the sub-question ID is added as an identifier to represent the node information of the sub-object and the sub-node information of the second element.
[0094] In the embodiments of the present application, two hierarchical structures of test questions are provided, namely, a hierarchical structure that only includes the target test question object - the first element, and a hierarchical structure of the target test question object - the first element and the second element of the sub-object - the sub-object. On this basis, multiple sub-objects can be embedded in the target test question object or one or more sub-test question objects can be embedded in the sub-object, so as to realize the storage support for multi-level nested test questions.
[0095] In a specific application scenario provided by the embodiments of the present application, specifically, as Figure 9 shown, the method may further include the following steps:
[0096] S410: Display an information entry page.
[0097] S420: In response to an operation for setting the question type of the target test question object, update the information entry page.
[0098] It can be understood that in the embodiments of the present application, the required question types can be constructed by combining various elements.
[0099] S430: Receive an entry operation of the user based on the updated information entry page, and obtain the entry information of the target test question object.
[0100] Figure 10 Shows a schematic diagram of an information entry page. The test question template can be initialized according to the selected question type and the combination form of elements. The user can enter the corresponding content in the corresponding element area and add corresponding attributes and labels to the element. Abstracting the test question as a combination of elements and designing the information entry page based on the element-level structure, the user can construct the test question object through the free combination of elements and complete the entry, improving the efficiency of information storage.
[0101] The following introduces an information display method provided by the present application. Figure 11 Is a flowchart of an information display method provided by the embodiments of the present application. The present application provides the method operation steps as described in the embodiments or the flowchart, but based on routine or non-creative labor, there may be more or fewer operation steps. The step order listed in the embodiments is only one way among the execution orders of numerous steps and does not represent the only execution order. When the actual system or server product executes, it can be executed in the method order shown in the embodiments or the drawings or executed in parallel (for example, in an environment of parallel processors or multi-threaded processing). Please refer to Figure 11 In the embodiments of the present application, an information display method may include the following steps:
[0102] S510: In response to a display operation on a target test question object, obtain a first data record of the target test question object, where the first data record includes node information and general feature information of the target test question object.
[0103] S520: Determine a first element in the target test question object according to the node information of the target test question object; the first element is one or more of a question stem, options, answers, and analysis.
[0104] S530: Obtain a second data record and a third data record of the first element; the second data record includes sub-node information and general feature information of the first element; the third data record includes sub-node information and proprietary feature information of the first element.
[0105] S540: Obtain the structure information of the target test question object according to the node information of the target test question object and the sub-node information of the first element.
[0106] S550: Obtain the description information of the target test question object according to the general feature information of the target test question object, the general feature information of the first element, and the proprietary feature information.
[0107] S560: Display the target test question object according to the structure information and the description information.
[0108] In steps S510 to S560, the relevant concepts involved can refer to the foregoing embodiments and will not be elaborated here. In the embodiments shown in steps S510 to S560, taking the hierarchical structure of the target test question object - the first element as an example, in the process of test question display with the element as the smallest storage unit, the overall structure information and description information of the target test question object can be parsed according to the first data record of the target test question object stored and the second data record and the third data record of the first element, so that not only the content of the target test question object can be displayed, but also the characteristics of the display and interaction of the target test question object can be restored.
[0109] In an embodiment of the present application, as Figure 12 shown, the method may further include the following steps:
[0110] S610: Determine a sub-object in the target test question object according to the node information of the target test question object.
[0111] S620: Determine the structure information and the description information of the sub-object.
[0112] S630: Display the sub-objects in the target test question object according to the structural information and the description information of the sub-objects.
[0113] In the embodiments shown in steps S610 to S630, taking the hierarchical structure of target test question object - sub-object + first element - second element of the sub-object as an example, the display process when nesting multi-level test questions is presented.
[0114] For multi-level test question nesting, a recursive method can be used to parse and obtain the complete target test question object. Specifically, Figure 13 A flow diagram showing the parsing and display of multi-level test questions is shown. As Figure 13 shown, first, the question ID of the target test question object can be used as the identifier of the parent question, and each first element under the target test question object can be queried through this question ID. If there are no sub-objects among the first elements, that is, all are basic elements, then the elements composed of the first elements form the elements of the target test question object and are mounted under the target test question object to obtain the content of the complete target test question object, and the parsing is completed at this time; if there are sub-objects among the first elements (which can be regarded as a special type of first element), then the sub-object is mounted under the current parent question, and then the sub-object is used as the parent question again, and whether there are sub-questions is searched in the sub-elements of the sub-object. This cycle continues until there are only basic elements and no sub-questions in the sub-elements, and then it ends. According to the hierarchical information of each level of sub-questions and each level of elements, the mounting is performed, so as to display the content of the complete target test question object and complete the parsing.
[0115] In an embodiment of the present application, specifically, as Figure 14 shown, step S560 may include the following steps:
[0116] S561: Display an information display page.
[0117] S563: In response to a display instruction for the target test question object based on the information display page, display the description information of the target test question object step by step according to the structural information.
[0118] Figure 15 A schematic diagram of an information display page is shown. In Figure 15 it, a target test question object containing multiple sub-questions is shown. The target test question object has a basic element of the question stem (a combined form of text and pictures) and is displayed in a certain form. In addition, the target test question object has four sub-questions, and the question types of the sub-questions are not completely the same, and the basic elements included are not completely the same. It can be seen that through the storage and display solution provided by the present application, the storage of test questions of different question types can be completed through the free combination of elements, and the display and interaction effects of the test questions can be effectively restored.
[0119] The embodiment of the present application also provides an information storage device 1600, as Figure 16 shown. The device 1600 may include:
[0120] An input information acquisition module 1610, configured to acquire the input information of a target test question object, and determine the structure information and description information of the target test question object according to the input information;
[0121] A node information determination module 1620, configured to determine a first element in the target test question object according to the structure information, and generate the node information of the target test question object and the child node information of the first element; the first element is one or more of a stem, options, answers, and analysis;
[0122] A feature information determination module 1630, configured to determine the general feature information of the target test question object, as well as the general feature information and proprietary feature information of the first element according to the description information;
[0123] A first data record generation module 1640, configured to generate a first data record of the target test question object according to the node information of the target test question object and the general feature information of the target test question object;
[0124] A second data record generation module 1650, configured to generate a second data record of the first element according to the child node information of the first element and the general feature information of the first element;
[0125] A third data record generation module 1660, configured to generate a third data record of the first element according to the child node information of the first element and the proprietary feature information of the first element;
[0126] A storage module 1670, configured to store the first data record, the second data record, and the third data record as the test question resources of the target test question object in the question bank.
[0127] In an embodiment of the present application, the device 1600 may further include:
[0128] A sub-object first determination module, configured to determine a sub-object in the target test question object and a second element of the sub-object according to the structure information; the second element is one or more of a stem, options, answers, and analysis;
[0129] A sub-object record determination module, configured to obtain the first data record of the sub-object, the second data record of the second element, and the third data record of the second element according to the structure information and the description information.
[0130] In an embodiment of the present application, the input information acquisition module 1610 may include:
[0131] A first page display unit for displaying an information input page;
[0132] A page update unit for updating the information input page in response to an operation of setting the question type for the target question object;
[0133] An information acquisition unit for receiving an input operation of the user based on the updated information input page and acquiring the input information of the target question object.
[0134] It should be noted that for the device provided in the above embodiment, when implementing its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions can be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process can be seen in the method embodiment, which will not be elaborated here.
[0135] The embodiment of the present application also provides an information display device 1700, as Figure 17 shown, the device 1700 may include:
[0136] A first data record acquisition module 1710 for acquiring a first data record of the target question object in response to a display operation for the target question object, where the first data record includes node information and general feature information of the target question object;
[0137] A first element determination module 1720 for determining a first element in the target question object according to the node information of the target question object; the first element is one or more of a question stem, options, answers, and analyses;
[0138] A second data record acquisition module 1730 for acquiring a second data record of the first element and a third data record of the first element; the second data record includes sub-node information of the first element and general feature information of the first element; the third data record includes sub-node information of the first element and proprietary feature information of the first element;
[0139] A structure information determination module 1740 for obtaining the structure information of the target question object according to the node information of the target question object and the sub-node information of the first element;
[0140] A description information determination module 1750, configured to obtain the description information of the target test question object according to the general feature information of the target test question object, the general feature information of the first element, and the proprietary feature information;
[0141] A display module 1760, configured to display the target test question object according to the structure information and the description information;
[0142] In an embodiment of the present application, the device 1700 may further include:
[0143] A sub-object second determination module, configured to determine the sub-objects in the target test question object according to the node information of the target test question object;
[0144] A sub-object information determination module, configured to determine the structure information and the description information of the sub-objects;
[0145] A sub-object display module, configured to display the sub-objects in the target test question object according to the structure information and the description information of the sub-objects.
[0146] In an embodiment of the present application, the display module 1760 may include:
[0147] A second page display unit, configured to display an information display page;
[0148] An information display unit, configured to, in response to a display instruction for the target test question object based on the information display page, display the description information of the target test question object step by step according to the structure information.
[0149] It should be noted that, when the device provided in the above embodiment realizes its functions, only the division of the above function modules is used for illustration. In actual applications, the above functions may be allocated to different function modules according to needs, that is, the internal structure of the device is divided into different function modules to complete all or part of the functions described above. In addition, the device provided in the above embodiment and the method embodiment belong to the same concept, and the specific implementation process thereof can be seen in the method embodiment, which will not be elaborated here.
[0150] An embodiment of the present application provides a computer device, which includes a processor and a memory. At least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement an information storage method or an information display method provided in the above method embodiment.
[0151] Figure 18The figure shows a schematic diagram of the hardware structure of a device for implementing an information storage method or an information display method provided by an embodiment of the present application. The device may participate in forming or include the device or system provided by the embodiment of the present application. As Figure 18 shown, the device 10 may include one or more processors 1002 (shown as 1002a, 1002b, ……, 1002n in the figure) (the processor 1002 may include, but is not limited to, a processing device such as a microprocessor MCU or a programmable logic device FPGA), a memory 1004 for storing data, and a transmission device 1006 for communication functions. In addition, it may further include: a display, an input / output interface (I / O interface), a universal serial bus (USB) port (which may be included as one of the ports of the I / O interface), a network interface, a power supply, and / or a camera. Those of ordinary skill in the art can understand that Figure 18 the structure shown is only schematic and does not limit the structure of the above-mentioned electronic device. For example, the device 10 may further include more or fewer components than Figure 18 shown in, or have a different configuration from Figure 18 shown.
[0152] It should be noted that the above one or more processors 1002 and / or other data processing circuits are generally referred to as "data processing circuits" in this article. The data processing circuit may be embodied in whole or in part as software, hardware, firmware, or any other combination. In addition, the data processing circuit may be a single independent processing module, or be incorporated in whole or in part into any one of the other elements in the device 10 (or mobile device). As involved in the embodiment of the present application, the data processing circuit is a kind of processor control (such as the selection of a variable resistor terminal path connected to an interface).
[0153] The memory 1004 can be used to store software programs and modules of application software, such as the program instructions / data storage device corresponding to the method described in the embodiment of the present application. The processor 1002 executes various functional applications and data processing by running the software programs and modules stored in the memory 1004, that is, implements the above-mentioned information storage method or information display method. The memory 1004 may include a high-speed random access memory, and may further include a non-volatile memory, such as one or more magnetic storage devices, flash memories, or other non-volatile solid-state memories. In some instances, the memory 1004 may further include a memory remotely provided with respect to the processor 1002, and these remote memories can be connected to the device 10 through a network. Examples of the above network include, but are not limited to, the Internet, an enterprise intranet, a local area network, a mobile communication network, and combinations thereof.
[0154] The transmission device 1006 is used to receive or send data via a network. Specific examples of the above network may include a wireless network provided by the communication provider of the device 10. In one example, the transmission device 1006 includes a network adapter (Network Interface Controller, NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 1006 can be a Radio Frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0155] The display can be, for example, a touch-screen liquid crystal display (LCD), which enables the user to interact with the user interface of the device 10 (or mobile device).
[0156] An embodiment of the present application also provides a computer-readable storage medium, which can be arranged in a server to store at least one instruction or at least one program segment related to an information storage method or an information display method in the method embodiment. The at least one instruction or the at least one program segment is loaded and executed by the processor to implement an information storage method or an information display method provided by the above method embodiment.
[0157] Optionally, in this embodiment, the above storage medium can be located in at least one of multiple network servers in a computer network. Optionally, in this embodiment, the above storage medium may include, but is not limited to: various media that can store program codes such as USB flash drives, read-only memories (ROM, Read-Only Memory), random access memories (RAM, Random Access Memory), mobile hard disks, magnetic disks, or optical discs.
[0158] An embodiment of the present invention also provides a computer program product or a computer program, which includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes an information storage method or an information display method provided in the above various optional implementation manners.
[0159] It can be seen from the embodiments of the information storage and display method, device, medium, and equipment provided by the present application that
[0160] When storing test questions, the solution provided by this application regards test questions as combinations of elements and stores them with elements as the smallest unit. Elements can include question stems, options, answers, or analyses. First, determine the structural information and descriptive information of the target test question object according to the input information. The structural information can represent the hierarchical relationship between the target test question object and its first element, and the descriptive information can represent the characteristics of the target test question object, the content and characteristics of the first element. Specifically, the node information of the target test question object and the sub-node information of its first element can be determined according to the structural information; the general characteristic information of the target test question object, the general characteristic information of the first element, and the proprietary characteristic information can be determined according to the descriptive information. Thus, the first data record of the target entity object, the second data record and the third data record of the first element can be generated, and the node information and general characteristic information of the target test question object, the sub-node information and general characteristic information of the first element, and the sub-node information and proprietary characteristic information of the first element are stored respectively. The proprietary characteristic information can indicate the characteristics of the first element in terms of display and interaction effects. The information storage solution provided by this application can be applied to test questions of various question types without the need to develop a separate input template for special question types, improving the efficiency of information storage. At the same time, by expanding the proprietary characteristic information of the elements, the characteristics of the test questions during display and interaction can be retained.
[0161] When the solution provided by this application displays test questions, the first element attached to the target test question object is determined through the target test question object. Thus, according to the first data record of the target test question object stored and the second data record and the third data record of the first element, the overall structural information and descriptive information of the target test question object can be parsed, so that not only the content of the target test question object can be displayed, but also the characteristics of the target test question object during display and interaction can be restored. The solution provided by this application constructs an element-level question bank, and this question bank has stronger compatibility and versatility.
[0162] It should be noted that: the above sequence of embodiments of this application is only for description and does not represent the superiority or inferiority of the embodiments. And the above specific embodiments of this application have been described. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be executed in a different order from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0163] Each embodiment in this application is described in a progressive manner. For the identical or similar parts among the embodiments, reference can be made to each other, and the differences between each embodiment and other embodiments are emphasized. In particular, for the embodiments of devices, equipment, and storage media, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the relevant parts of the method embodiments for the relevant content.
[0164] Those of ordinary skill in the art can understand that all or part of the steps for implementing the above embodiments can be completed by hardware, or can be completed by a program instructing relevant hardware. The program can be stored in a computer-readable storage medium, and the storage medium mentioned above can be a read-only memory, a magnetic disk, an optical disk, or the like.
[0165] The above are only the preferred embodiments of this application, and are not intended to limit this application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of this application shall be included within the protection scope of this application.
Claims
1. An information storage method, characterized in that, the method includes: Obtain the input information of the target test question object, and determine the structure information and description information of the target test question object according to the input information; Determine the first element in the target test question object according to the structure information, and generate the node information of the target test question object and the sub-node information of the first element; the first element is one or more of the stem, options, answers, and analysis; Determine the general feature information of the target test question object, as well as the general feature information and proprietary feature information of the first element according to the description information; Generate the first data record of the target test question object according to the node information of the target test question object and the general feature information of the target test question object; Generate the second data record of the first element according to the sub-node information of the first element and the general feature information of the first element; Generate the third data record of the first element according to the sub-node information of the first element and the proprietary feature information of the first element; Store the first data record, the second data record, and the third data record as the test question resources of the target test question object in the question bank.
2. The method according to claim 1, characterized in that, the method further includes: Determine the sub-objects in the target test question object and the second elements of the sub-objects according to the structure information; the second elements are one or more of the stem, options, answers, and analysis; Obtain the first data record of the sub-object, the second data record of the second element, and the third data record of the second element according to the structure information and the description information.
3. The method according to claim 1, characterized in that, the obtaining of the input information of the target test question object includes: Display an information input page; Update the information input page in response to the question type setting operation for the target test question object; Receive the input operation of the user based on the updated information input page, and obtain the input information of the target test question object.
4. An information display method, characterized in that, the method includes: In response to the display operation for the target test question object, obtain the first data record of the target test question object, and the first data record includes the node information and general feature information of the target test question object; Determine the first element in the target test question object according to the node information of the target test question object; the first element is one or more of the stem, options, answers, and analysis; Obtain the second data record of the first element and the third data record of the first element; the second data record includes the sub-node information and the general feature information of the first element; the third data record includes the sub-node information and the proprietary feature information of the first element; Obtain the structure information of the target test question object according to the node information of the target test question object and the sub-node information of the first element; Obtain the description information of the target test question object according to the general feature information of the target test question object, the general feature information of the first element, and the proprietary feature information; Display the target test question object according to the structure information and the description information.
5. The method according to claim 4, wherein, the method further includes: Determine the sub-objects in the target test question object according to the node information of the target test question object; Determine the structure information of the sub-objects and the description information of the sub-objects; Display the sub-objects in the target test question object according to the structure information of the sub-objects and the description information of the sub-objects.
6. The method according to claim 4, wherein, the displaying the target test question object according to the structure information and the description information includes: Display an information display page; In response to a display instruction for the target test question object based on the information display page, display the description information of the target test question object step by step according to the structure information.
7. An information storage device, wherein, the device includes: An input information acquisition module, configured to acquire the input information of the target test question object, and determine the structure information and description information of the target test question object according to the input information; A node information determination module, configured to determine a first element in the target test question object according to the structure information, and generate the node information of the target test question object and the sub-node information of the first element; the first element is one or more of a stem, options, answers, and analysis; A feature information determination module, configured to determine the general feature information of the target test question object, as well as the general feature information and proprietary feature information of the first element according to the description information; A first data record generation module, configured to generate a first data record of the target test question object according to the node information of the target test question object and the general feature information of the target test question object; A second data record generation module, configured to generate a second data record of the first element according to the sub-node information of the first element and the general feature information of the first element; A third data record generation module, configured to generate a third data record of the first element according to the sub-node information of the first element and the proprietary feature information of the first element; A storage module, configured to store the first data record, the second data record, and the third data record as the test question resources of the target test question object in the question bank.
8. An information display device, wherein, the device includes: A first data record acquisition module, configured to acquire the first data record of the target test question object in response to a display operation for the target test question object, where the first data record includes the node information and general feature information of the target test question object; A first element determination module, configured to determine a first element in the target test question object according to the node information of the target test question object; the first element is one or more of a stem, options, answers, and analysis; The second data record acquisition module is configured to acquire a second data record of the first element and a third data record of the first element; the second data record includes child node information of the first element and general feature information of the first element; the third data record includes child node information of the first element and proprietary feature information of the first element; The structure information determination module is configured to obtain the structure information of the target test question object according to the node information of the target test question object and the child node information of the first element; The description information determination module is configured to obtain the description information of the target test question object according to the general feature information of the target test question object, the general feature information of the first element, and the proprietary feature information; The display module is configured to display the target test question object according to the structure information and the description information.
9. A computer-readable storage medium, characterized in that, at least one instruction or at least one program segment is stored in the storage medium, and the at least one instruction or the at least one program segment is loaded and executed by a processor to implement an information storage method according to any one of claims 1 to 3 or an information display method according to any one of claims 4 to 6.
10. A computer device, characterized in that, the device includes a processor and a memory, and at least one instruction or at least one program segment is stored in the memory, and the at least one instruction or the at least one program segment is loaded and executed by the processor to implement an information storage method according to any one of claims 1 to 3 or an information display method according to any one of claims 4 to 6.
Citation Information
Patent Citations
Examination paper information storing method and examination paper editing method and system
CN103778172A
Object oriented framework mechanism for an electronic catalog
US6052670A