CN113204340A - Question production method, question management system and electronic equipment - Google Patents

Question production method, question management system and electronic equipment Download PDF

Info

Publication number
CN113204340A
CN113204340A CN202110485613.9A CN202110485613A CN113204340A CN 113204340 A CN113204340 A CN 113204340A CN 202110485613 A CN202110485613 A CN 202110485613A CN 113204340 A CN113204340 A CN 113204340A
Authority
CN
China
Prior art keywords
question
type
style
topic
question type
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110485613.9A
Other languages
Chinese (zh)
Inventor
胡奇
蔡伟
康鑫
冉煜
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Baige Feichi Technology Co ltd
Original Assignee
Zuoyebang Education Technology Beijing Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zuoyebang Education Technology Beijing Co Ltd filed Critical Zuoyebang Education Technology Beijing Co Ltd
Priority to CN202110485613.9A priority Critical patent/CN113204340A/en
Publication of CN113204340A publication Critical patent/CN113204340A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/36Software reuse
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/30Creation or generation of source code
    • G06F8/38Creation or generation of source code for implementing user interfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Systems or methods specially adapted for specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/20Education

Abstract

The invention belongs to the technical field of online education, and provides a question production method, a question management system and electronic equipment, wherein the method comprises the following steps: configuring question type templates of all question types, wherein each question type template comprises a data storage style and a front-end display style of each question type; receiving a question and a question type input by a user, storing the question according to a data storage style of a question type template corresponding to the question type, and displaying the question according to a front-end display style of the question type template corresponding to the question type. The invention unifies the data structures of the questions with the same question type by configuring the question type template, thereby effectively avoiding the situation of repeatedly defining the same question type, improving the readability and expansibility of the question data and improving the development efficiency.

Description

Question production method, question management system and electronic equipment
Technical Field
The invention belongs to the technical field of internet, is particularly suitable for the internet online education technology, and more particularly relates to a question production method, a question production device, a question management system, electronic equipment and a computer readable medium.
Background
With the development of the internet industry, online education has also been greatly developed. Students can not only study in class through online education, but also practice questions through online education. In general, questions can be divided into different question types such as line questions, blank filling questions, selection questions, judgment questions, and question and answer questions. Since the presentation style of the title is different for each title type, different data structures are required to define the different title types. Such as: the selection questions need to show the question stem and various options, and the filling-up questions need to show the question stem and the horizontal lines of the filling-up content.
In the prior art, a corresponding data structure is written at the rear end of each topic type, and different components are rendered for display. For the same topic type, the data structures created by different developers are different, and thousands of people exist. This results in that the same topic type can be developed by using a plurality of different data structures, and the situation of repeatedly defining the same topic type occurs, which is not favorable for readability and expansibility of the topic data, and seriously affects the development progress.
Disclosure of Invention
Technical problem to be solved
The invention aims to solve the technical problems that the readability and the expansibility of the theme data are influenced because the existing data structures of the same theme type cannot be unified.
(II) technical scheme
In order to solve the above technical problems, an aspect of the present invention provides a method for producing a title, the method comprising the steps of:
configuring question type templates of all question types, wherein each question type template comprises a data storage style and a front-end display style of each question type;
receiving a question and a question type input by a user, storing the question according to a data storage style of a question type template corresponding to the question type, and displaying the question according to a front-end display style of the question type template corresponding to the question type.
According to a preferred embodiment of the present invention, the front-end presentation style includes a presentation interface style and/or an editing interface style; the title production method further comprises:
responding to a command of a user for displaying a question, acquiring a display interface style of a question type template corresponding to the question to be displayed, and rendering the question to be displayed according to the acquired display interface style for displaying; and/or the presence of a gas in the gas,
responding to an instruction of a user for inputting or editing a question, acquiring an editing interface style of a question template corresponding to the question to be input or edited, and rendering the question to be input or edited according to the acquired editing interface style for displaying.
According to a preferred embodiment of the present invention, the configuring the question template for each question type includes:
configuring specified fields contained in each topic type according to the topic type structure of each topic type;
configuring a data storage type of the specified field and a front-end rendering component, the front-end rendering component comprising: a first rendering component for presenting an interface, and/or a second rendering component for editing the interface;
optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
According to a preferred embodiment of the invention, question type templates of all question types are configured through the same language format;
preferably, a question type template of each question type is configured through JSON schema;
preferably, the question type templates of the same question type are configured through the same JSON schema.
According to a preferred embodiment of the invention, the method further comprises: and verifying the data storage type of the specified field of each question type through JSONschema, thereby verifying the question type structure of each question type.
According to a preferred embodiment of the invention, the method further comprises:
obtaining a topic type of a target topic, wherein the target topic comprises: a question to be input, or a question to be edited, or a question to be subjected to question type conversion;
generating an editing interface according to the second rendering component of the title type, wherein the editing interface comprises one or more editing components;
receiving input content of a user to each editing assembly in the editing interface; the editing component stores the input content according to the question type template corresponding to the question type;
optionally, for a topic to be subjected to topic type conversion, the input content is based on the specified field content of the original topic type of the target topic.
The second aspect of the present invention provides a question production apparatus based on a question type template, the apparatus comprising:
the system comprises a configuration module, a question type module and a question display module, wherein the configuration module is used for configuring question type templates of all question types, and each question type template comprises a data storage pattern and a front-end display pattern of each question type;
the storage module is used for receiving the questions and the question types input by the user and storing the questions according to the data storage patterns of the question type templates corresponding to the question types;
and the display module is used for displaying the question according to the front-end display style of the question type template corresponding to the question type.
A third aspect of the present invention provides a topic management system, comprising:
the system comprises a configuration module, a question type module and a question display module, wherein the configuration module is used for configuring question type templates of all question types, and each question type template comprises a data storage pattern and a front-end display pattern of each question type;
the storage module is used for storing the question according to the data storage style of the question style template corresponding to the question to be stored;
and the display module is used for displaying the question according to the front end display style of the question type template corresponding to the question to be displayed.
A fourth aspect of the present invention is directed to an electronic device, comprising a processor and a memory, wherein the memory is configured to store a computer-executable program, and when the computer program is executed by the processor, the processor executes the title production method according to any one of the above items.
The fifth aspect of the present invention also provides a computer-readable medium storing a computer-executable program, which when executed, implements the title production method as described in any one of the above.
(III) advantageous effects
The invention configures question type templates corresponding to the front end and the rear end of each question type, and defines the data storage style of the question data of the same question type at the rear end and the display style at the front end through the question type templates, thereby unifying the data structures of the questions of the same question type, ensuring that the data storage style of the questions of the same question type at the rear end and the display style at the front end are the same, thus all users develop the question data by adopting the question type templates corresponding to the question types, effectively avoiding the situation of repeatedly defining the same question types, improving the readability and the expansibility of the question data and improving the development efficiency.
Drawings
FIG. 1 is a schematic flow chart of a topic production method of the present invention;
fig. 2a to 2b are schematic diagrams of question type templates for configuring a single-choice question and a blank-filling question through JSON schema in the embodiment of the present invention, respectively;
FIG. 3a is a diagram of an editing interface for topic production according to an embodiment of the present invention;
FIG. 3b is a diagram illustrating the rendering and display of a radio topic according to a display interface style, in accordance with an embodiment of the present invention;
FIG. 3c is a schematic diagram illustrating the display effect of the single choice question rendered and displayed according to the display interface style defined by the question style template of the single choice question;
FIG. 4 is a schematic flow chart showing a still another topic production method according to an embodiment of the present invention;
FIG. 5 is a schematic flow chart showing a still another topic production method according to an embodiment of the present invention;
FIG. 6 is a schematic structural diagram of a title production apparatus according to an embodiment of the present invention;
FIG. 7 is a schematic structural diagram of an electronic device of one embodiment of the invention;
FIG. 8 is a schematic diagram illustrating an operation principle of a topic management system according to an embodiment of the present invention;
fig. 9 is a schematic diagram of a computer-readable recording medium of an embodiment of the present invention.
Detailed Description
In describing particular embodiments, specific details of structures, properties, effects, or other features are set forth in order to provide a thorough understanding of the embodiments by one skilled in the art. However, it is not excluded that a person skilled in the art may implement the invention in a specific case without the above-described structures, performances, effects or other features.
The flow chart in the drawings is only an exemplary flow demonstration, and does not represent that all the contents, operations and steps in the flow chart are necessarily included in the scheme of the invention, nor does it represent that the execution is necessarily performed in the order shown in the drawings. For example, some operations/steps in the flowcharts may be divided, some operations/steps may be combined or partially combined, and the like, and the execution order shown in the flowcharts may be changed according to actual situations without departing from the gist of the present invention.
The block diagrams in the figures generally represent functional entities and do not necessarily correspond to physically separate entities. I.e. these functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different network and/or processing unit devices and/or microcontroller devices.
The same reference numerals denote the same or similar elements, components, or parts throughout the drawings, and thus, a repetitive description thereof may be omitted hereinafter. It will be further understood that, although the terms first, second, third, etc. may be used herein to describe various elements, components, or sections, these elements, components, or sections should not be limited by these terms. That is, these phrases are used only to distinguish one from another. For example, a first device may also be referred to as a second device without departing from the spirit of the present invention. Further, the terms and/or, and/or are intended to include all combinations of any one or more of the listed items.
In order to solve the technical problems in the background art, the invention provides a question production method based on question type templates, which is characterized in that question type templates of all question types are configured, and the data storage style at the rear end and the display style at the front end of the question data of the same question type are defined through the question type templates, so that the data structures adopted by the questions of the same question type are unified, the data storage style at the rear end and the display style at the front end of the questions of the same question type are ensured to be consistent, therefore, all users develop the question data by adopting the question type templates corresponding to the question types, the situation that the same question type is repeatedly defined can be effectively avoided, the readability and the expansibility of the question data are improved, and the development efficiency is improved.
In the invention, the presentation style of the title at the front end refers to the presentation form of the title at the front end and related parameters for limiting the presentation effect. The presentation style at the front end may be represented as a front end interface, which may include: the display interface is used for displaying the titles, and the editing interface is used for editing/modifying the titles. In other embodiments, only one of the two interfaces may be included.
Optionally, the front-end presentation style may include at least one of a presentation interface style and an editing interface style. Further optionally, the front-end presentation style may include a presentation interface style and an editing interface style.
The method comprises the steps of responding to a command of a user for displaying a question, obtaining a display interface style of a question type template corresponding to the question to be displayed, and rendering the question to be displayed according to the obtained display interface style for displaying; responding to an instruction of a user for inputting or editing a question, acquiring an editing interface style of a question template corresponding to the question to be input or edited, rendering the question to be input or edited according to the acquired editing interface style, displaying the question, and completing inputting or editing and modifying the question based on the editing interface.
In a specific configuration mode, configuring specified fields contained in each topic type according to the topic type structure of each topic type; configuring a data storage type of the specified field and a front-end rendering component, the front-end rendering component comprising: a first rendering component for presenting an interface, and/or a second rendering component for editing the interface;
optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
The invention can adopt the same computer language to configure the question type templates of all question types, thereby ensuring the universality of the question type templates of different question types and being convenient for the question of different question types to realize type conversion. Preferably, the question type template of each question type is configured through JSON schema. Further, the data storage type of the specified field of each topic type can be verified through the JSON schema, so that the question type structure of each topic type can be verified.
In order that the objects, technical solutions and advantages of the present invention will become more apparent, the present invention will be further described in detail with reference to the accompanying drawings in conjunction with the following specific embodiments.
The topic production method based on the topic template provided by the invention can be used for the production of topics and also for the conversion of topic types, for example, converting judgment questions into selection questions, and the invention is not particularly limited.
Fig. 1 is a schematic flow chart of a title production method based on a title template, as shown in fig. 1, the method comprises the following steps:
s1, configuring question type templates of all question types;
the topic type refers to various organizational forms of the topic, including, but not limited to, selection questions, fill-in-blank questions, short-answer questions, judgment questions, line questions, question-and-answer questions, writing questions, and the like.
In the embodiment of the invention, the question type template can comprise a data storage style and a front-end display style of each question type; the data storage pattern refers to a storage mode and the like of the topic data at the back end, and includes but is not limited to a data organization structure, and the data organization structure can be understood as a representation of a logical structure of the topic data at the back end. The front-end presentation style refers to a presentation form of the theme data on a front-end interface. The presentation form at least comprises a presentation format, a presentation field and the like.
In short, the question template can be used to specify the data structure of the question, and it is more intuitive to restrict what the question should show, how the data is stored at the backend, and the like. For example, the presentation style is different between the choice question and the blank filling question, the data structure needs to be organized differently, the choice question has options, and the blank filling question has horizontal lines.
For example, in the configuration process, the content related to the topic data of each topic type may be divided into different specified fields, and then the data storage style and the front-end presentation style of each specified field are configured.
Alternatively, the step S1 of configuring question templates of various question types may include:
s11, configuring the appointed field contained in each topic type according to the topic type structure of each topic type;
wherein, the question type structure refers to necessary functional elements contained in the question of each question type. The functional elements may be: the question stem, the answer, the analysis and the like form a functional unit of the question. For example, the question type structure of the choice question may include: stem, options, answers, and resolution.
In the embodiment of the present invention, each necessary functional element may be configured with a corresponding specified field. Such as: configuring specified fields of choice questions may include: stem, options, answers, and resolution. In addition, in order to more clearly identify the topic type, specified fields such as "topic type", "Chinese name of topic type", and/or "English name of topic type" may be further configured to mark the topic type.
S12, configuring the data storage type of the specified field and a front-end rendering component,
this step is used to specify the data storage-related format of the specified fields that make up the topic, as well as whether these fields are to be exposed on the front-end interface and the format of the exposure, if any. Wherein the data storage types include, but are not limited to: numeric (Number), String (String), Boolean (Boolean), Array (Array), Value (Value), Object (Object), space (Whitespace), and the like.
The front-end rendering component is used for rendering the display style of the title at the front end. The display style can be a title display interface style, a title editing interface style, or both the title display interface style and the title editing interface style. The display interface is used for displaying the titles to the user, generally has no editing function, but can be provided with an editing button, and if the user clicks the editing button, some specified fields of the titles enter an editable state. The editing interface is used for providing an interface for a user to enter a title or edit the title. Thus, the front-end rendering component may include only: and a first rendering component for displaying the interface, thereby forming a theme display interface style. The front-end rendering component may also include only: a second rendering component for the editing interface to form a theme editing interface style. The front-end rendering component may also include simultaneously: and the first rendering component is used for displaying the interface and the second rendering component is used for editing the interface, so that the theme in the display interface style and the editing interface style are formed.
In the embodiment of the invention, the front-end rendering component of the designated field can be configured in the same question template, so that different specific rendering components can be correspondingly called according to different required interfaces.
Optionally, the first rendering component corresponding to the display interface may include: and uniformly displaying the template, namely the question type conventional display style. The uniform display template defines the style of the normal display questions, such as the display styles of single-choice questions, multiple-choice questions, blank filling questions, reading comprehension, shape completion and blank filling and the like. FIG. 3c shows a presentation interface for the radio topic. The uniform display template is adopted for the titles of the same type, and the display styles of the titles of different types are similar.
The second rendering component corresponding to the editing interface may include one or more of: a rich text edit box, a blank edit box, a formula editor, a single selection component, and a multiple selection component. The presentation interface may include a plurality of first rendering components and the editing interface may also include a plurality of second rendering components.
The invention adopts the same computer language to configure the question type templates of all question types, thereby ensuring the universality of the question type templates of different question types and being convenient for realizing the type conversion of the questions. The invention can configure the question type template of each question type through the JSON schema. The JSON schema is used to define the question type, and the format and the field of the back-end data storage and the front-end rendering component are determined by the definition of the format and the field.
Preferably, the question type templates of the same question type are configured through the same JSON schema, so that the questions of the same question type can be conveniently and uniformly stored and displayed in a format.
As shown in FIGS. 2 a-2 b, the Chinese and English names of the title type can be defined by title and ti: type, and the title type can be defined by category, such as: 1 represents a radio topic, 3 represents a null topic, etc. For the specified fields of the necessary function elements, the data format (such as numeric type, character string type and the like) and the field name of the question stem, option, answer and other fields can be defined by JSON schema configuration properties; it is possible for the front-end rendering component to define by the JSON schema what rendering component the front-end uses for exposure, ui widget. Name defines the front-end component name. Finally, JSON schemas corresponding to different topic types can be formed through the combination of different mark fields and the designated fields. And the question type template corresponding to the front end and the back end of one question type is realized.
Further, the data storage type of the specified field of each topic type can be verified through the JSON schema, so that the question type structure of each topic type can be verified. Such as: $ ref can be configured through JSON schema: and defining a content verification rule, and verifying the data storage type of the specified field of the topic type through a self mechanism of the same topic type JSONschema. Json data format validation is typically performed using json schema, which is performed before the data is submitted to the business hierarchy.
For example, fig. 2a to 2b are schematic diagrams of question type templates for configuring a single-choice question and a null-filling question through JSON schema in the embodiment of the present invention, respectively. In fact, many components and fields in the two question type templates are common, and title and ti define Chinese and English names of the question types. Category defines the title type (1 represents a single-choice title, 3 represents a blank filling title and the like), data formats such as a question stem, options, answers and the like and field names are defined in properties, title defines the question stem, ui defines what components are used by a front-end editor for presentation, and ui defines the name of a front-end component. $ ref: content verification rules are defined. The common minimum granularity elements are combined with each other to form JSON schema with different question types. Meanwhile, the JSON schema self mechanism can be used for checking the question structure.
In fig. 2a, title is configured through JSON schema: radio topic and ti type: single _ choose defines the chinese and english names of the radio topic, respectively. ti, category: 1, configuring the question type as a single-choice question; configuring properties to define data formats (such as numerical type, character string type and the like) and field names of question stems, options, answers and other fields; and configuring ui for a specified field of question stem: rich-content to define the front end to be exposed using a rich text edit box; configuring ui, name: the question stem defines the name of the rich text box edit box; configure $ ref to define a content check rule that specifies the field "stem". Configuring ui for the designated field 'option' to define the front end to be displayed by using a selection button; name, options to define the name of the option component; a content verification rule is configured that defines the specified field "options" for $ ref.
In fig. 2b, title is configured through JSON schema: fill-in-blank question and ti type: blanks respectively define Chinese names and English names of the blank filling questions; configuration ti, category: 3, representing a blank filling question; configuring properties to define data formats (such as numerical type, character string type and the like) and field names of question stems, options, answers and other fields; and configuring ui for a specified field of question stem: blanks to define front end to be exposed using a fill-in-the-blank component; configuring ui, name: the question stem defines the name of the rich text box displayed at the front end; configure $ ref to define a content check rule that specifies the field "stem". For the specified field "answer," ui is configured: the solution defines the name of the presentation of the solution rich text box at the front end.
In the scheme, the front end and the back end use the same JSON schema to define a question type, and the problems that a question data structure in the background technology is thousands of people and poor in readability and expansibility are solved.
S2, receiving the question and the question type input by the user, storing the question according to the data storage style of the question type template corresponding to the question type, and displaying the question according to the front-end display style of the question type template corresponding to the question type.
The method comprises the following steps of obtaining a question type template according to the question type of a question to be input, and storing relevant data of the question according to a data storage style defined by the question type template, such as question stem content, option content and the like of a selected question. And when the question needs to be displayed, displaying according to the front-end display style of the corresponding question type template. Generally, the front-end presentation style is presented in the form of a presentation interface and an editing interface. The front-end presentation style of the theme template may include a first rendering component for presenting the interface and/or a second rendering component for editing the interface.
In one embodiment, an editing interface can be generated according to the second rendering component of the title type, and the title storage is completed through the input content of the user in the editing interface.
Illustratively, in response to an instruction for a user to enter a topic, an editing interface is called, and according to a topic type of the topic to be entered (which may be obtained from the instruction or obtained through further interaction with the user), a data storage style of a topic template corresponding to the topic to be entered and a front-end presentation style of the editing interface are obtained, where the finally presented editing interface is an interface suitable for entry or editing of the topic of the type, as shown in fig. 3 a. And the user finishes the topic input according to the prompt on the editing interface, and the rear end of the system stores the topic data input by the user according to the data storage style defined by the topic type template. And subsequently, when the question needs to be displayed in the process of inquiring and modifying the question, displaying the question according to the front-end display style of the question template corresponding to the question.
As described above, in the topic production method based on the topic template provided by this embodiment, the topic templates of the topic types are configured, and the data storage pattern at the back end and the presentation pattern at the front end of the topic data of the same topic type are defined by the topic templates, so that the data structures adopted by the topics of the same topic type are unified, and the data storage pattern at the back end and the presentation pattern at the front end of the topic of the same topic type are ensured to be consistent, so that all users develop the topic data by using the topic templates corresponding to the topic types, the situation that the same topic type is repeatedly defined can be effectively avoided, the readability and the expansibility of the topic data are improved, and the development efficiency is improved.
In addition, according to the title production method, if the title template is set, a teacher or other personnel who do not know the programming can participate in the subsequent title production.
In some embodiments, as shown in fig. 4, the title production method may further include:
s21, obtaining the title type of the target title,
wherein the target topic comprises: the theme to be input, or the theme to be edited, or the theme to be converted in theme type. That is to say, the theme to be entered, the theme to be edited, or the theme to be subjected to theme type conversion can be entered, edited and modified through the editing interface to generate a new theme, and the new theme is stored in the data storage style of the theme type corresponding to the new theme.
S22, generating an editing interface according to the second rendering component of the title type;
the editing interface includes one or more editing components.
Optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
The editing interface can be used for editing the title, and generally comprises one or more editing components; the editing component refers to a component that a second rendering component, such as a rich text edit box, a formula editor, a single-choice component, a multiple-choice component, and the like, may represent in an editing interface for receiving user input.
Fig. 3a is a schematic diagram of an editing interface according to an embodiment of the present invention, where the editing interface may include: a text editor for entering the grade and discipline; a singleton component for inputting a topic type; a plurality of rich text editors for inputting stems, answers and analysis (explanation); a text editor for entering knowledge points. Wherein, the parts of the editing interface used for topic entry, such as the question stem, the answer and the analysis (explanation) can be changed correspondingly according to the type of the topic input by the user. The interface shown in fig. 3a is an editing interface suitable for editing or entering subjective questions.
The second rendering component is different according to various question types such as single-choice questions, multiple-choice questions, blank filling questions and subjective questions. Taking the subjective question as an example, as shown in fig. 3a, the editing interface of the subjective question includes: the rich text editor respectively corresponds to the question stem, the answer, the analysis and the like, and the rich text editor comprises controls capable of setting character styles, paragraph styles, formula editing, pinyin insertion and the like.
S23, receiving input contents of the user on each editing assembly in the editing interface;
and generating a corresponding editing interface suitable for the theme input of the theme type according to different theme types. For example, for subjective questions, as shown in fig. 3a, corresponding contents are input in corresponding parts such as question stem, answer and analysis (explanation), and the background stores the contents in the specified fields and formats defined by the question type template.
Optionally, for a topic to be subjected to topic type conversion, the input content is based on the specified field content of the original topic type of the target topic. For the topic of the topic type to be converted, the edit box in the edit component can include the common field content of the original topic type and the target topic type. For example, the choice question is converted into the solution question, the question stem, the analysis and the knowledge point are common fields, and the stored contents are approximately the same, so that the corresponding editing frame of the editing interface can contain the corresponding field contents. For example, in an edit box corresponding to the question stem, the field content of the question stem of the extracted original question type is displayed for the user to modify and confirm; and displaying the field contents of the extracted solution, analysis and knowledge points of the original question type in the corresponding edit boxes of the solution, analysis and knowledge points.
And S24, the editing component stores the input content according to the question type template corresponding to the question type.
After completing the input and submission of the required designated fields on the editing interface in step S23, the system background stores the input contents of these fields according to the storage format defined by the question type template corresponding to the question type.
As described above, according to the title production method based on the title template provided in this embodiment, if the title template is set, a teacher or other person who does not understand the programming can participate in the subsequent title production.
In some embodiments, the front-end presentation style comprises a presentation interface style; the title production method further comprises:
s30, responding to a command of a user for displaying a question, acquiring a display interface style of a question template corresponding to the question to be displayed, and rendering the question to be displayed according to the acquired display interface style for displaying;
wherein the presentation interface style is formed by a first rendering component in the theme template specification field. And the front end realizes the display of the question to be displayed through a first rendering component in the question template. FIG. 3b is a diagram illustrating rendering of a single choice question displayed according to a display interface style defined by a question style template of the single choice question. Wherein: the first rendering component of the radio topic comprises: the unified presentation template, i.e., the question type conventional presentation style, is used to present the question stem 11, the answer 13, the answer 14 and the analysis 15, and the option edit box is used to present each option 12. In the actual display, the display interface style may further include: video links, buttons for performing other additional functions (e.g., download, error correction, finding similar titles, etc.). Fig. 3c is a schematic diagram of a display interface style generated according to the question type template definition of the single-choice question, i.e., a display effect of the single-choice question. Including a first rendering component of the radio questions for presenting the stem, options, answers, solutions and analyses and buttons for performing other additional functions.
In another specific embodiment, the front-end presentation style comprises an editing interface style; the title production method further comprises:
s31, responding to the command of the user for inputting or editing the title, acquiring the editing interface style of the title template corresponding to the title to be input or edited, and rendering the title to be input or edited according to the acquired editing interface style for displaying.
Wherein the editing interface style is composed of a second rendering component in the title template specified field. And the front end displays the title to be input or edited by rendering a second rendering component in the title template. See fig. 3a for a specific editing interface.
In another specific embodiment, the front-end presentation style comprises a presentation interface style and an editing interface style; the title production method further comprises:
s32, responding to a command of a user for displaying a question, acquiring a display interface style of a question template corresponding to the question to be displayed, and rendering the question to be displayed according to the acquired display interface style for displaying; responding to an instruction of a user for inputting or editing a question, acquiring an editing interface style of a question template corresponding to the question to be input or edited, and rendering the question to be input or edited according to the acquired editing interface style for displaying.
Fig. 5 is a schematic flow chart of another topic production method based on a topic template according to an embodiment of the present invention, and as shown in fig. 5, the method includes:
s501, defining title types and configuring specified fields contained in each title type;
the topic type refers to various organizational forms of the topic, including, but not limited to, selection questions, fill-in-blank questions, short-answer questions, judgment questions, line questions, question-and-answer questions, writing questions, and the like.
For example, the specified fields contained in each topic type can be configured according to the topic type structure of each topic type;
wherein, the question type structure refers to necessary functional elements contained in the question of each question type. The functional elements may be: the question stem, the answer, the analysis and the like form a functional unit of the question. For example, the question type structure of the choice question may include: stem, options, answers, and resolution.
In the embodiment of the present invention, each necessary functional element may be configured with a corresponding specified field. Such as: configuring specified fields of choice questions may include: stem, options, answers, and resolution. In addition, in order to more clearly identify the topic type, specified fields such as "topic type", "Chinese name of topic type", and/or "English name of topic type" may be further configured to mark the topic type.
S502, configuring a corresponding question type template according to the structure of each question type by using a programming language such as JSON schema;
in the embodiment of the invention, the question type template can comprise a data storage style and a front-end display style of each question type; the data storage pattern refers to a storage mode and the like of the topic data at the back end, and includes but is not limited to a data organization structure, and the data organization structure can be understood as a representation of a logical structure of the topic data at the back end. The front-end presentation style refers to a presentation form of the theme data on a front-end interface. The presentation form at least comprises a presentation format, a presentation field and the like. Generally, the front-end presentation style is presented in the form of a presentation interface and an editing interface. The front-end presentation style of the theme template may include a first rendering component for presenting the interface and/or a second rendering component for editing the interface.
For example, the data storage style and the front-end presentation style of each specified field in the same topic type can be configured through the same JSON schema, so that the configuration of the topic template corresponding to the topic type can be completed. For a specific configuration, refer to step S1, which is not described herein again.
S503, rendering an editing interface according to the question template;
and rendering the second rendering component of each question template to obtain the editing interface corresponding to the question type. Optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
Fig. 3a is a schematic diagram of an editing interface according to an embodiment of the present invention, where the editing interface may include: a text editor for entering the grade and discipline; a singleton component for inputting a topic type; a plurality of rich text editors for inputting stems, answers and analysis (explanation); a text editor for entering knowledge points.
S504, receiving a title input or edited by a user through an editing interface;
the interface shown in fig. 3a is an editing interface suitable for editing or entering subjective questions. And generating the title by receiving the content input by the user in the corresponding text editor or the rich text editor in the editing interface.
S505, inputting the questions input or edited by the user into a question bank for storage;
the method comprises the following steps of obtaining a question type template according to the question type of an input or editing question, and storing relevant data of the question according to a data storage style defined by the question type template, such as the question stem content, the option content and the like of a selected question.
And generating an editing interface according to a second rendering component defined in the theme template, storing the theme data received from the editing interface according to the data storage pattern defined by the theme template, and completing new theme entry, or editing or theme converting the existing theme.
S506, responding to a retrieval instruction of a user, retrieving the target question, obtaining a question type template corresponding to the target question, and rendering a display interface according to the question type template corresponding to the target question to display the target question.
The question type template of each question type defines a first rendering component for the display interface of the question type, and the first rendering component of each question type template is rendered to obtain the display interface corresponding to the question type. FIG. 3c is a schematic diagram illustrating the display effect of the single choice question rendered and displayed according to the display interface style defined by the question style template of the single choice question.
The invention also provides a question type template corresponding to the question type, wherein the question type template comprises a data storage pattern and a front-end display pattern corresponding to the question type; the data storage pattern is used for defining the storage mode of the titles at the rear end, and the front-end presentation pattern is used for defining the presentation mode of the titles at the front end.
Fig. 6 is a theme production apparatus based on a theme template according to the present invention, as shown in fig. 6, the apparatus includes:
the configuration module 61 is configured to configure question type templates of the question types, where the question type templates include data storage styles and front-end presentation styles of the question types;
the storage module 62 is configured to receive a question and a question type input by a user, and store the question according to a data storage pattern of a question type template corresponding to the question type;
and the display module 63 is configured to display the question according to the front-end display style of the question template corresponding to the question type.
In one embodiment, the front-end presentation style comprises a presentation interface style and/or an editing interface style; the device further comprises:
the first display module is used for responding to a command of a user for displaying a question, acquiring a display interface style of a question template corresponding to the question to be displayed, and rendering the question to be displayed according to the acquired display interface style for displaying; and/or the presence of a gas in the gas,
and the second display module is used for responding to an instruction of inputting or editing the title by the user, acquiring an editing interface style of the title template corresponding to the title to be input or edited, and rendering the title to be input or edited according to the acquired editing interface style for displaying.
In some embodiments, the configuration module 61 may include:
the first configuration module is used for configuring the designated fields contained in each topic type according to the topic type structure of each topic type;
a second configuration module, configured to configure the data storage type of the specified field and a front-end rendering component, where the front-end rendering component includes: a first rendering component for presenting an interface, and/or a second rendering component for editing the interface;
optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
Optionally, the configuration module 61 may configure the question type template of each question type through the JSON schema. The configuration module 61 may also verify the data storage type of the specified field of each question type through JSON schema, so as to verify the question type structure of each question type.
Further, the apparatus may further include:
an obtaining module, configured to obtain a topic type of a target topic, where the target topic includes: the question to be input, or the question to be edited, or the question of the question type to be converted;
the second display module generates an editing interface according to the second rendering component of the title type, wherein the editing interface comprises one or more editing components;
the receiving module is used for receiving input contents of each editing assembly in the editing interface by a user;
and the editing component stores the input content according to the question type template corresponding to the question type.
Those skilled in the art will appreciate that the modules in the above-described embodiments of the apparatus may be distributed as described in the apparatus, and may be correspondingly modified and distributed in one or more apparatuses other than the above-described embodiments. The modules of the above embodiments may be combined into one module, or further split into multiple sub-modules.
Fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention, which includes a processor and a memory, where the memory is used to store a computer-executable program, and when the computer program is executed by the processor, the processor executes a title production method based on a title template.
As shown in fig. 7, the electronic device is in the form of a general purpose computing device. The processor can be one or more and can work together. The invention also does not exclude that distributed processing is performed, i.e. the processors may be distributed over different physical devices. The electronic device of the present invention is not limited to a single entity, and may be a sum of a plurality of entity devices.
The memory stores a computer executable program, typically machine readable code. The computer readable program may be executed by the processor to enable an electronic device to perform the method of the invention, or at least some of the steps of the method.
The memory may include volatile memory, such as Random Access Memory (RAM) and/or cache memory, and may also be non-volatile memory, such as read-only memory (ROM).
Optionally, in this embodiment, the electronic device further includes an I/O interface, which is used for data exchange between the electronic device and an external device. The I/O interface may be a local bus representing one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, and/or a memory storage device using any of a variety of bus architectures.
It should be understood that the electronic device shown in fig. 7 is only one example of the present invention, and elements or components not shown in the above example may be further included in the electronic device of the present invention. For example, some electronic devices further include a display unit such as a display screen, and some electronic devices further include a human-computer interaction element such as a button, a keyboard, and the like. Electronic devices are considered to be covered by the present invention as long as the electronic devices are capable of executing a computer-readable program in a memory to implement the method of the present invention or at least a part of the steps of the method.
The invention also provides a question management system, comprising:
the system comprises a configuration module, a question type module and a question display module, wherein the configuration module is used for configuring question type templates of all question types, and each question type template comprises a data storage pattern and a front-end display pattern of each question type;
the storage module is used for storing the question according to the data storage style of the question style template corresponding to the question to be stored;
and the display module is used for displaying the question according to the front end display style of the question type template corresponding to the question to be displayed.
The operation of the topic management system is shown in FIG. 8. See generally the steps in the title production methods described above and will not be described in detail herein.
Fig. 9 is a schematic diagram of a computer-readable recording medium of an embodiment of the present invention. As shown in fig. 9, the computer-readable recording medium stores therein a computer-executable program, which when executed, implements the title production method based on the title template of the present invention. The computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
From the above description of the embodiments, those skilled in the art will readily appreciate that the present invention can be implemented by hardware capable of executing a specific computer program, such as the system of the present invention, and electronic processing units, servers, clients, mobile phones, control units, processors, etc. included in the system, and the present invention can also be implemented by a vehicle including at least a part of the above system or components. The invention can also be implemented by computer software executing the method of the invention, for example, by control software executed by a microprocessor, an electronic control unit, a client, a server, etc. of a live device. It should be noted that the computer software for executing the method of the present invention is not limited to be executed by one or a specific hardware entity, but may also be implemented in a distributed manner by hardware entities without specific details, and for the computer software, the software product may be stored in a computer readable storage medium (which may be a CD-ROM, a usb disk, a removable hard disk, etc.) or may be stored in a distributed manner on a network, as long as it can enable an electronic device to execute the method according to the present invention.
While the foregoing embodiments have described the objects, aspects and advantages of the present invention in further detail, it should be understood that the present invention is not inherently related to any particular computer, virtual machine or electronic device, and various general-purpose machines may be used to implement the present invention. The invention is not to be considered as limited to the specific embodiments thereof, but is to be understood as being modified in all respects, all changes and equivalents that come within the spirit and scope of the invention.

Claims (10)

1. A method for producing a subject, comprising the steps of:
configuring question type templates of all question types, wherein each question type template comprises a data storage style and a front-end display style of each question type;
receiving a question and a question type input by a user, storing the question according to a data storage style of a question type template corresponding to the question type, and displaying the question according to a front-end display style of the question type template corresponding to the question type.
2. The title production method of claim 1, wherein the front-end presentation style comprises a presentation interface style and/or an editing interface style; the title production method further comprises:
responding to a command of a user for displaying a question, acquiring a display interface style of a question type template corresponding to the question to be displayed, and rendering the question to be displayed according to the acquired display interface style for displaying; and/or the presence of a gas in the gas,
responding to an instruction of a user for inputting or editing a question, acquiring an editing interface style of a question template corresponding to the question to be input or edited, and rendering the question to be input or edited according to the acquired editing interface style for displaying.
3. The title production method of claim 1, wherein said configuring the title template of each title type comprises:
configuring specified fields contained in each topic type according to the topic type structure of each topic type;
configuring a data storage type of the specified field and a front-end rendering component, the front-end rendering component comprising: a first rendering component for presenting an interface, and/or a second rendering component for editing the interface;
optionally, the second rendering component comprises one or more of: a rich text edit box, a formula editor, a single selection component, and a multiple selection component.
4. The title production method of claim 3, wherein the title templates of the respective title types are configured by the same language format;
preferably, a question type template of each question type is configured through JSON schema;
preferably, the question type templates of the same question type are configured through the same JSON schema.
5. The title production method of claim 4, further comprising: and verifying the data storage type of the specified field of each question type through JSON schema, thereby verifying the question type structure of each question type.
6. The title production method of claim 3, further comprising:
obtaining a topic type of a target topic, wherein the target topic comprises: a question to be input, or a question to be edited, or a question to be subjected to question type conversion;
generating an editing interface according to the second rendering component of the title type, wherein the editing interface comprises one or more editing components;
receiving input content of a user to each editing assembly in the editing interface; the editing component stores the input content according to the question type template corresponding to the question type;
optionally, for a topic to be subjected to topic type conversion, the input content is based on the specified field content of the original topic type of the target topic.
7. The utility model provides a title apparatus for producing based on title type template which characterized in that, the device includes:
the system comprises a configuration module, a question type module and a question display module, wherein the configuration module is used for configuring question type templates of all question types, and each question type template comprises a data storage pattern and a front-end display pattern of each question type;
the storage module is used for receiving the questions and the question types input by the user and storing the questions according to the data storage patterns of the question type templates corresponding to the question types;
and the display module is used for displaying the question according to the front-end display style of the question type template corresponding to the question type.
8. A topic management system, comprising:
the system comprises a configuration module, a question type module and a question display module, wherein the configuration module is used for configuring question type templates of all question types, and each question type template comprises a data storage pattern and a front-end display pattern of each question type;
the storage module is used for storing the question according to the data storage style of the question style template corresponding to the question to be stored;
and the display module is used for displaying the question according to the front end display style of the question type template corresponding to the question to be displayed.
9. An electronic device comprising a processor and a memory, the memory for storing a computer-executable program, characterized in that:
the computer program, when executed by the processor, causes the processor to perform the title production method according to any one of claims 1-6.
10. A computer-readable medium storing a computer-executable program, wherein the computer-executable program, when executed, implements the title production method according to any one of claims 1-6.
CN202110485613.9A 2021-04-30 2021-04-30 Question production method, question management system and electronic equipment Pending CN113204340A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110485613.9A CN113204340A (en) 2021-04-30 2021-04-30 Question production method, question management system and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110485613.9A CN113204340A (en) 2021-04-30 2021-04-30 Question production method, question management system and electronic equipment

Publications (1)

Publication Number Publication Date
CN113204340A true CN113204340A (en) 2021-08-03

Family

ID=77028546

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110485613.9A Pending CN113204340A (en) 2021-04-30 2021-04-30 Question production method, question management system and electronic equipment

Country Status (1)

Country Link
CN (1) CN113204340A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741897A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Question list generation method, device, equipment and storage medium
CN114661196A (en) * 2022-04-18 2022-06-24 北京高途云集教育科技有限公司 Exercise display method and device, electronic equipment and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113741897A (en) * 2021-09-06 2021-12-03 北京字节跳动网络技术有限公司 Question list generation method, device, equipment and storage medium
CN114661196A (en) * 2022-04-18 2022-06-24 北京高途云集教育科技有限公司 Exercise display method and device, electronic equipment and storage medium
CN114661196B (en) * 2022-04-18 2024-03-22 北京高途云集教育科技有限公司 Problem display method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
Fox et al. An R companion to applied regression
US7610545B2 (en) Annotations for tracking provenance
WO2004086222A2 (en) Development of software systems
US10379817B2 (en) Computer-applied method for displaying software-type applications based on design specifications
US20160111018A1 (en) Method and system for facilitating learning of a programming language
CN113204340A (en) Question production method, question management system and electronic equipment
US10776351B2 (en) Automatic core data service view generator
WO2013112388A1 (en) Graphical representation of an order of operations
WO2022204345A1 (en) Enabling custom software development by domain experts
CN111459483B (en) Interface processing method and device
US20190266265A1 (en) Integrated computing environment for managing and presenting design iterations
Ahlersten An introduction to MATLAB
Tosic Artificial Intelligence-driven web development and agile project management using OpenAI API and GPT technology: A detailed report on technical integration and implementation of GPT models in CMS with API and agile web development for quality user-centered AI chat service experience
US20160110169A1 (en) Method and system for facilitating learning of a programming language
CN112000315A (en) Automatic generation method of user-defined parameter panel based on operator
Pulido Applying behavior driven development practices and tools to low-code technology
Asenov Envision: reinventing the integrated development environment
Zant Hands-on prototyping in system analysis and design
Atencio et al. Automatic generation of web applications for information systems
Milovanovic et al. Python Data Visualization Cookbook
US8719245B2 (en) Query templates with functional template blocks
Pereira A web-based social environment for Alloy
Zaretska et al. Algorithms Constructor: a Tool to Learn and Teach Algorithms
Tomić et al. An explanation facility framework for rule-based systems
Taeumel et al. The Font Engineering Platform: Collabarative Font Creation in a Self-supporting Programming Environment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20230802

Address after: 6001, 6th Floor, No.1 Kaifeng Road, Shangdi Information Industry Base, Haidian District, Beijing, 100085

Applicant after: Beijing Baige Feichi Technology Co.,Ltd.

Address before: 100085 4002, 4th floor, No.1 Kaifa Road, Shangdi Information Industry base, Haidian District, Beijing

Applicant before: ZUOYEBANG EDUCATION TECHNOLOGY (BEIJING) CO.,LTD.