CN103136172B - The method and apparatus of output examination question - Google Patents

The method and apparatus of output examination question Download PDF

Info

Publication number
CN103136172B
CN103136172B CN201110401163.7A CN201110401163A CN103136172B CN 103136172 B CN103136172 B CN 103136172B CN 201110401163 A CN201110401163 A CN 201110401163A CN 103136172 B CN103136172 B CN 103136172B
Authority
CN
China
Prior art keywords
structured content
content
examination question
masterplate
output
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.)
Expired - Fee Related
Application number
CN201110401163.7A
Other languages
Chinese (zh)
Other versions
CN103136172A (en
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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201110401163.7A priority Critical patent/CN103136172B/en
Publication of CN103136172A publication Critical patent/CN103136172A/en
Application granted granted Critical
Publication of CN103136172B publication Critical patent/CN103136172B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Document Processing Apparatus (AREA)

Abstract

The invention provides a kind of method and apparatus exporting examination question, method includes: receive the output environment that user determines;The structured content of examination question is carried out the form conversion of corresponding described output environment;Wherein, described structured content at least includes one below: exercise question, stem, answer, option, parsing;Examination question after output format is changed under described output environment.By the step in embodiment, user after determining output environment, after structured content being changed according to the form of output environment, corresponding examination question can be exported.The output environment that the examination question of multiple format can determine according to user, exports simultaneously, is effectively increased the efficiency of output examination question.

Description

The method and apparatus of output examination question
Technical field
The present invention relates to data processing field, in particular to a kind of side exporting examination question Method and device.
Background technology
Examination question paper in various formats can export to user in different output environments. Such as: the paper of PS form can be formed in publishing house;Flash figure can be formed in website The paper of sheet;Mobile terminal user can form the paper of epub form.
The form of the examination question used in every kind of output environment is different, examination question before output, Need according to current output environment form, by test questions input to equipment and export.Such as: If showing examination question with flash picture on website, need to be entered into examination question with video format In server, then show with flash picture;If the mobile terminal user shows examination question, Need examination question being entered in server with epub form, after being downloaded by mobile terminal, Show at mobile terminal with epub form.
Owing to the form of every kind of output environment is different, examination question when multiple output environment exports, Export after needing repeatedly to input, there is the problem that delivery efficiency is relatively low.
Summary of the invention
It is desirable to provide a kind of method and apparatus exporting examination question, to solve above-mentioned examination question The inefficient problem of output.
In an embodiment of the present invention, it is provided that a kind of method exporting examination question, including: connect Receive the output environment that user determines;The structured content of examination question is carried out corresponding described output ring The form conversion in border;Wherein, described structured content at least includes one below: exercise question, Stem, answer, option, parsing, described structured content is xml form, and form is changed Relation passes through xlt template record, the form of structured content after form conversion at least include with One of lower: PDF, epub, txt, png, PSD, jpg, word, flash;Described form The process of conversion includes: according to the structuring of the xml form of nodename traversal tree structure The node of content;Wherein, described nodename is exercise question, stem, answer, option or solution Analysis;In the xlt masterplate recording described form transformational relation, search and the node of current traversal The node that title is identical;By the described structured content of the node of described traversal, according to xlt The form conversion of the node of the described lookup in masterplate;Output format under described output environment Examination question after conversion;Described structured content is obtained by following steps: according to described structure Change content creating index masterplate;By index masterplate, the content in examination question is added label, shape Become described structured content.
In an embodiment of the present invention, additionally provide a kind of device exporting examination question, including: Receiver module, for receiving the output environment that user determines;Modular converter, for by examination question Structured content carry out corresponding described output environment form conversion;Wherein, described structure Change content and at least include one below: exercise question, stem, answer, option, parsing, described Structured content is xml form, and form transformational relation passes through xlt template record, and form turns The form of the structured content after changing at least include one below: PDF, epub, txt, png, PSD、jpg、word、flash;Described modular converter includes: spider module, for according to The node of the structured content of the xml form of nodename traversal tree structure;Wherein, institute Stating nodename is exercise question, stem, answer, option or parsing;Search module, be used for Record in the xlt masterplate of described form transformational relation, search and the nodename phase of current traversal Same node;Transform subblock, for the described structured content by the node of described traversal, Form conversion according to the node of the described lookup in xlt masterplate;Output module, in institute State the examination question after output format conversion under output environment;Index creation module, for according to institute State structured content and create index masterplate;Index module, for by indexing masterplate to examination question In content add label, form described structured content.
By the step in embodiment, can be user after determining output environment, by structuring After content is changed according to the form of output environment, export corresponding examination question.The examination of multiple format Topic can export according to the output environment that user determines simultaneously, is effectively increased the effect of output examination question Rate.
Accompanying drawing explanation
Accompanying drawing described herein is used for providing a further understanding of the present invention, constitutes this Shen A part please, the schematic description and description of the present invention is used for explaining the present invention, and Do not constitute inappropriate limitation of the present invention.In the accompanying drawings:
Fig. 1 shows the flow chart of preferred embodiment;
Fig. 2 shows the screenshot capture indexing panel in embodiment;
Fig. 3 shows the screenshot capture after in embodiment indexing examination question;
Fig. 4 shows the flow chart of form conversion in embodiment;
Fig. 5 shows the screenshot capture of a kind of preview graph in embodiment;
Fig. 6 shows the apparatus structure block diagram in embodiment.
Detailed description of the invention
Below with reference to the accompanying drawings and in conjunction with the embodiments, the present invention is described in detail.See Fig. 1, Comprise the following steps:
S11: receive the output environment that user determines;
S12: the structured content of examination question is carried out the form conversion of corresponding described output environment; Wherein, described structured content at least includes one below: exercise question, stem, answer, choosing Item, parsing;
S13: the examination question after output format is changed under described output environment.
By the step in embodiment, can be user after determining output environment, by structuring After content is changed according to the form of output environment, export corresponding examination question.The examination of multiple format Topic can export according to the output environment that user determines simultaneously, is effectively increased the effect of output examination question Rate.
Preferably, described structured content is obtained by following steps:
Index masterplate is created according to described structured content;By index masterplate in examination question Content adds label, forms described structured content.
Examination question is carried out structurized process, needs to be pre-created the index masterplate of xml form. Index masterplate can be arranged according to the structure of examination question.Such as: examination question generally contains exercise question, The various pieces such as crosshead mesh, stem, answer, option, parsing, in options, include again Option A, option B etc., can arrange following index masterplate:
<xs:element name=" exercise question " type=" CT_Question "/>
<xs:element name=" crosshead mesh " type=" CT_SubQuestion "/>
<xs:element name=" option-A " type=" CT_Any "/>
<xs:element name=" option-B " type=" CT_Any "/>
<xs:element name=" option-C " type=" CT_Any "/>
<xs:element name=" option-D " type=" CT_Any "/>
<xs:element name=" option-E " type=" CT_Any "/>
<xs:element name=" option-F " type=" CT_Any "/>
<xs:element name=" answer " type=" CT_Any "/>
<xs:element name=" resolves " type=" CT_Any "/>
By above-mentioned setting, the index face containing above-mentioned setting as shown in Figure 2 can be formed Plate.
Based on Fig. 2 indexes panel, the content in examination question is indexed.The process of index Can in the following ways, such as: click on " exercise question " on index panel, in examination question The item content index.Form the result of the screenshot capture after index as shown in Figure 3.Two Between individual label " exercise question ", for the content of exercise question.Between two labels " answer ", Content for answer.
According to index panel to content index in examination question after, formed structured content.Structuring Content at least includes one below: exercise question, stem, answer, option, parsing.Following generation Code shows the structured content of partial indexing:
In above-mentioned code, it is shown that structured content " exercise question " and " answer ".
Preferably, structured content can be xml form, in the following manner by structuring The form of content is converted to the form of output environment.
See Fig. 4, comprise the following steps:
S21: travel through the structured content of the xml form of tree structure according to nodename Node;Wherein, described nodename is exercise question, stem, answer, option or parsing;
S22: in the xlt masterplate recording described form transformational relation, searches and current traversal The identical node of nodename;
S23: by the described structured content of the node of described traversal, according in xlt masterplate The form conversion of the node of described lookup.
By above-mentioned steps, can be by the content of the node of structured content according in xlt masterplate The form conversion of record inside same node point title.Such as: by the structuring of xml form Hold and be converted to html form, word form or pdf form etc..
Preferably, the form of the structured content after the conversion of described form at least includes with purgation One: PDF, epub, txt, png, PSD, jpg, word, flash.
Preferably, can be that every kind of output environment makes xlt masterplate respectively, it is also possible to by each Masterplate gathers together, according to the selection of user, and the structuring after output format conversion respectively Content.
During preferably for the terminal that output environment is browse network, can be by xml form Structured content generates Txt, Png picture two parts form, and the content of Txt form is mainly entered The retrieval of row content.Line in examination question is inscribed, due to more complicated, therefore in output When form the output of two kinds of forms by the content in index node, portion is the picture of Png, Portion is the text of Txt, in order to shows and retrieves.
Preferably, the described structured content after being changed by form shows with the form of preview graph; Receive the clicking operation of content in described preview graph, show corresponding structured content;Connect Receive the editor of the structured content to described display, again show with the form of preview graph.Example As: Fig. 5 shows the examination after display format on the terminal of network browsing is changed The screenshot capture of topic.
To the content after preview, if needing editor, can be by structurized xml form Hold and edit, after editor preservation, again show with the form of preview graph.
Preferably, structurized content can store in data base, can provide a user with input Window, all or part of structured content to be selected by user's input, to form multiple shape The collection of the examination question of formula merges output, such as: have the examination question of answer and parsing, do not have answer Examination question etc..These examination questions can show on relevant device according to the form of output environment, such as: Terminal for typesetting, the terminal for network browsing or for network browsing Mobile terminal etc..
Seeing Fig. 6, the present invention also provides for a kind of device exporting examination question, including:
Receiver module 31, for receiving the output environment that user determines;
Modular converter 32, for carrying out the structured content of examination question accordingly according to receiving mould Block 31 determines the form conversion of described output environment;Wherein, described structured content is at least wrapped Include one below: exercise question, stem, answer, option, parsing;
Output module 33, carries out lattice for exporting modular converter 32 under described output environment Examination question after formula conversion.
Preferably, the described structured content in described device is xml form;
Described modular converter 32 includes:
Spider module 321, for the xml form according to nodename traversal tree structure The node of structured content;Wherein, described nodename is exercise question, stem, answer, choosing Item or parsing;
Search module 322, in the xlt masterplate recording described form transformational relation, look into Look for the node identical with the nodename that spider module 321 currently travels through;
Transform subblock 323, for described in the node that described spider module 321 traveled through Structured content, according to the node searching the module 322 described lookup in xlt masterplate Form is changed.Wherein, xlt masterplate have recorded that receiver module 31 determines containing output environment The form transformational relation of form.
Preferably, described device also includes:
Index creation module 34, for creating index masterplate according to described structured content;
Index module 35, for the index masterplate by index creation module 34 establishment to examination Content in topic adds label, forms spider module 321 in the described structuring of traversal Hold.
Preferably, described device also includes:
Preview graph display module 36, the institute after modular converter 32 is carried out form conversion State structured content to show with the form of preview graph;
Link module 37, for receiving the preview to the display of described preview graph display module 36 The clicking operation of content on figure, shows corresponding structured content;
Repeat display module 38, for receiving the structuring to the display of described link module 37 The editor of content, shows with the form of preview graph again.
Preferably, the output environment in described device at least includes the operation of one of following equipment Environment: the terminal for typesetting, the terminal for network browsing, clear for network The mobile terminal look at.
Preferably, the form of the structured content after the conversion of the described form in described device is extremely Include one below less: PDF, epub, txt, png, PSD, jpg, word, flash.
Obviously, those skilled in the art should be understood that the above-mentioned present invention each module or Each step can realize with general calculating device, and they can concentrate on single calculating On device, or it is distributed on the network that multiple calculating device is formed, alternatively, they Can realize with calculating the executable program code of device, it is thus possible to they are stored Performed by calculating device in the storage device, or it is integrated that they are fabricated to respectively Circuit module, or the multiple modules in them or step are fabricated to single integrated circuit mould Block realizes.So, the present invention is not restricted to the combination of any specific hardware and software.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, For a person skilled in the art, the present invention can have various modifications and variations.All Within the spirit and principles in the present invention, any modification, equivalent substitution and improvement etc. made, Should be included within the scope of the present invention.

Claims (5)

1. the method exporting examination question, it is characterised in that including:
Receive the output environment that user determines;
The structured content of examination question is carried out the form conversion of corresponding described output environment;Wherein, described structured content at least includes one below: exercise question, stem, answer, option, parsing, described structured content is xml form, form transformational relation passes through xlt masterplate record, and the form of structured content after form conversion at least includes one below: PDF, epub, txt, png, PSD, jpg, word, flash;The process of described form conversion includes: travel through the node of the structured content of the xml form of tree structure according to nodename;Wherein, described nodename is exercise question, stem, answer, option or parsing;In the xlt masterplate recording described form transformational relation, search the node identical with the nodename of current traversal;By the described structured content of the node of described traversal, according to the form conversion of the node of the described lookup in xlt masterplate;
Examination question after output format is changed under described output environment;
Described structured content is obtained by following steps: create index masterplate according to described structured content;By index masterplate, the content in examination question is added label, form described structured content.
Method the most according to claim 1, it is characterised in that described output environment at least includes the running environment of one of following equipment:
Terminal for typesetting, the terminal for network browsing, mobile terminal for network browsing.
Method the most according to claim 1, it is characterised in that also include before described output:
Described structured content after being changed by form shows with the form of preview graph;
Receive the clicking operation of content in described preview graph, show corresponding structured content;
Receive the editor of the structured content to described display, again show with the form of preview graph.
4. the device exporting examination question, it is characterised in that including:
Receiver module, for receiving the output environment that user determines;
Modular converter, for carrying out the form conversion of corresponding described output environment by the structured content of examination question;Wherein, described structured content at least includes one below: exercise question, stem, answer, option, parsing, described structured content is xml form, form transformational relation passes through xlt masterplate record, and the form of structured content after form conversion at least includes one below: PDF, epub, txt, png, PSD, jpg, word, flash;Described modular converter includes: spider module, for the node of the structured content of the xml form according to nodename traversal tree structure;Wherein, described nodename is exercise question, stem, answer, option or parsing;Search module, in the xlt masterplate recording described form transformational relation, search the node identical with the nodename of current traversal;Transform subblock, for the described structured content by the node of described traversal, according to the form conversion of the node of the described lookup in xlt masterplate;
Output module, the examination question after the conversion of output format under described output environment;
Index creation module, for creating index masterplate according to described structured content;
Index module, for the content in examination question being added label by index masterplate, forms described structured content.
Device the most according to claim 4, it is characterised in that described device also includes:
Preview graph display module, the described structured content after being changed by form shows with the form of preview graph;
Link module, for receiving the clicking operation of content in described preview graph, shows corresponding structured content;
Repeat display module, for receiving the editor of the structured content to described display, again show with the form of preview graph.
CN201110401163.7A 2011-12-05 2011-12-05 The method and apparatus of output examination question Expired - Fee Related CN103136172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110401163.7A CN103136172B (en) 2011-12-05 2011-12-05 The method and apparatus of output examination question

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110401163.7A CN103136172B (en) 2011-12-05 2011-12-05 The method and apparatus of output examination question

Publications (2)

Publication Number Publication Date
CN103136172A CN103136172A (en) 2013-06-05
CN103136172B true CN103136172B (en) 2016-08-24

Family

ID=48496013

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110401163.7A Expired - Fee Related CN103136172B (en) 2011-12-05 2011-12-05 The method and apparatus of output examination question

Country Status (1)

Country Link
CN (1) CN103136172B (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103280130B (en) * 2013-06-09 2015-07-01 深圳市乐望教育科技有限公司 Electric examination achieving method and system used for interaction teaching
CN104123399B (en) * 2014-08-19 2017-12-08 南京富士通南大软件技术有限公司 A kind of cross-platform exam pool resource construction method
CN105069098A (en) * 2015-08-06 2015-11-18 苏州百智通信息技术有限公司 Word test question file online importing and exporting method and system
CN105302506B (en) * 2015-11-10 2018-03-20 武汉启明泰和软件服务有限公司 A kind of sorting bulk print method called automatically based on data
CN111324841A (en) * 2018-12-14 2020-06-23 英业达科技有限公司 Test question file format conversion system and method
CN111274778A (en) * 2020-02-18 2020-06-12 深圳中兴网信科技有限公司 Answer sheet generation system, method, device and computer readable storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534508A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of prereading network resources
CN101107601A (en) * 2005-01-24 2008-01-16 李钟旻 Test question constructing method and apparatus, test sheet fabricated using the method, and computer-readable recording medium storing test question constructing program for executing the method
CN101964152A (en) * 2010-10-27 2011-02-02 昆明冶金高等专科学校 Local area network-based network examination system and implementation method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1534508A (en) * 2003-03-31 2004-10-06 联想(北京)有限公司 Method of prereading network resources
CN101107601A (en) * 2005-01-24 2008-01-16 李钟旻 Test question constructing method and apparatus, test sheet fabricated using the method, and computer-readable recording medium storing test question constructing program for executing the method
CN101964152A (en) * 2010-10-27 2011-02-02 昆明冶金高等专科学校 Local area network-based network examination system and implementation method thereof

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于XML的试题库试卷输出的设计与实现;苗健等;《中国教育信息化》;20071031(第19期);70-72 *

Also Published As

Publication number Publication date
CN103136172A (en) 2013-06-05

Similar Documents

Publication Publication Date Title
CN103136172B (en) The method and apparatus of output examination question
Bojārs et al. Interlinking the social web with semantics
KR100461019B1 (en) web contents transcoding system and method for small display devices
CN104854583B (en) Search result rank and presentation
CN101025738B (en) Template-free dynamic website generating method
CN101488151B (en) System and method for gathering website contents
CN108090104B (en) Method and device for acquiring webpage information
CN103678509B (en) Generate the method and device of web page template
US9069769B2 (en) Creating or modifying an ordered trail of links to pages and/or documents
CN102640148A (en) Method and apparatus for presenting media segments
CN102063488A (en) Code searching method based on semantics
US9607081B2 (en) Ontology based categorization of users
CN108762808A (en) The generation method and system of interface document
US20140059419A1 (en) Method and system of searching composite web page elements and annotations presented by an annotating proxy server
EP3349131A1 (en) Method and system for extracting user-specific content
US20180232410A1 (en) Refining structured data indexes
WO2014000130A1 (en) Method or system for automated extraction of hyper-local events from one or more web pages
CN103744987B (en) Video website media asset integrating method and system based on DOM tree matching
CN103678510B (en) The method and device of visualization mark is provided webpage
CN105183916A (en) Device and method for managing unstructured data
Nadee et al. Towards data extraction of dynamic content from JavaScript Web applications
CN105574037B (en) A kind of information processing method and device
Van der Meij et al. A web-based repository service for vocabularies and alignments in the cultural heritage domain
Tilley Towards an FCA based tool for visualising formal specifications
CN109753335A (en) A kind of conversion method and device at the interface UI

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220622

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, Beijing, Haidian District Cheng Fu Road 298, founder building, 5 floor

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160824

CF01 Termination of patent right due to non-payment of annual fee