CN111382556B - Data conversion method, device, equipment and storage medium - Google Patents
Data conversion method, device, equipment and storage medium Download PDFInfo
- Publication number
- CN111382556B CN111382556B CN202010219622.9A CN202010219622A CN111382556B CN 111382556 B CN111382556 B CN 111382556B CN 202010219622 A CN202010219622 A CN 202010219622A CN 111382556 B CN111382556 B CN 111382556B
- Authority
- CN
- China
- Prior art keywords
- event
- xapi
- standard
- data
- scorm
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/46—Multiprogramming arrangements
- G06F9/54—Interprogram communication
- G06F9/542—Event management; Broadcasting; Multicasting; Notifications
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- Multimedia (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Stored Programmes (AREA)
Abstract
The embodiment of the disclosure discloses a data conversion method, a device, equipment and a storage medium. The method comprises the following steps: obtaining reference model SCORM standard data of a shared content object to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the learning application programming interface XAPI standard; and correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain the XAPI standard data corresponding to the SCORM standard data. According to the technical scheme, the SCORM standard data can be converted into corresponding XAPI standard data in a platform only supporting the XAPI standard.
Description
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a data conversion method, a data conversion device, data conversion equipment and a storage medium.
Background
There are two general standards in the learning management system (Learning Management System, LMS) that share a content object reference model (Sharable Content Object Reference Model, SCORM) and a learning application programming interface (Experience Application Programming Interface, XAPI), where the SCORM standard is an old generation general standard and the XAPI standard is a new generation standard.
At present, many learning courseware of SCORM standard can only play on the platform supporting SCORM standard, but can not play on the platform supporting XAPI standard, if the platform is compatible with the play of two standard courseware, a great deal of manpower is consumed, and the two standard data are inconsistent and not mutually communicated, so that how to convert the SCORM standard data into the XAPI standard data becomes a problem to be solved under the condition of not being compatible with the two standards.
Disclosure of Invention
The embodiment of the disclosure provides a data conversion method, a device, equipment and a storage medium, so that SCORM standard data can be converted into corresponding XAPI standard data in a platform only supporting the XAPI standard.
In a first aspect, an embodiment of the present disclosure provides a data conversion method, including:
obtaining reference model SCORM standard data of a shared content object to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values;
acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the learning application programming interface XAPI standard;
and correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain the XAPI standard data corresponding to the SCORM standard data.
Optionally, the mapping between the SCORM standard and the XAPI standard includes:
mapping relation between event description information of each learning event in SCORM standard and each XAPI statement in XAPI standard;
each learning event comprises an event verb and an event operation object, and each XAPI statement comprises a statement verb and a statement operation object.
Optionally, before obtaining the SCORM standard data to be converted, the method further includes:
traversing event verbs in a data model of the SCORM standard, and registering the event verbs in a declarative verb list of the XAPI standard;
traversing event operation objects in a data model of the SCORM standard, and registering the event operation objects in a statement object list of the XAPI standard;
traversing a data model in the SCORM standard, and acquiring all event description information corresponding to the data model in the SCORM standard;
and generating XAPI declarations respectively corresponding to the event description information according to the declaration verb list and the declaration object list of the XAPI standard.
Optionally, generating the XAPI claims corresponding to the event description information respectively according to the claim verb list and the claim object list of the XAPI standard includes:
generating a data structure of the XAPI statement corresponding to the current event description information;
the data structure comprises variables corresponding to event values of the current event description information and gaps to be filled, which are matched with event verbs and event operation objects;
filling the declaration verbs corresponding to the event verbs of the current event description information in the declaration verb list of the XAPI standard into gaps to be filled corresponding to the data structure;
and filling the declaration operation object corresponding to the event operation object of the current event description information in the declaration object list of the XAPI standard into a to-be-filled space corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Optionally, after generating the XAPI claims corresponding to the event description information according to the claim verb list and the claim object list of the XAPI standard, the method further includes:
respectively taking a learning event name corresponding to each event description information as a key value name, taking an XAPI statement corresponding to the event description information as a key value, and storing the mapping relation between each event description information in the SCORM standard and each XAPI statement in the XAPI standard;
according to the event description information and the mapping relation between the SCORM standard and the XAPI standard, obtaining the XAPI statement corresponding to each learning event in the SCORM standard data, wherein the method comprises the following steps:
and acquiring the XAPI statement corresponding to the event description information from the mapping relation between the event description information in the SCORM standard and the XAPI statement in the XAPI standard according to the learning event name corresponding to the event description information.
Optionally, the filling the event value correspondence in each learning event in the SCORM standard data into the XAPI statement includes:
event values in each learning event in the SCORM standard data are populated into variables in the data structure corresponding to the XAPI declaration.
Optionally, obtaining the SCORM standard data to be converted includes:
responding to a playing request of SCORM standard data, and acquiring the SCORM standard data;
after obtaining the XAPI standard data corresponding to the score standard data, the method further comprises:
and playing the XAPI standard data by using a playing plug-in based on the XAPI standard.
In a second aspect, an embodiment of the present disclosure further provides a data conversion apparatus, including:
the data acquisition module is used for acquiring SCORM standard data to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values;
the statement acquisition module is used for acquiring the XAPI statement corresponding to each learning event in the SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard;
and the data conversion module is used for correspondingly filling event values in all learning events in the SCORM standard data into the XAPI statement to obtain the XAPI standard data corresponding to the SCORM standard data.
In a third aspect, embodiments of the present disclosure further provide an apparatus, the apparatus comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data conversion method as provided by any embodiment of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure also provide a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a data conversion method as provided by any of the embodiments of the present disclosure.
According to the technical scheme, SCORM standard data to be converted are obtained, the SCORM standard data comprise at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard; event values in each learning event in SCORM standard data are correspondingly filled into an XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data, the problem that learning courseware of the SCORM standard cannot be played on a platform supporting the XAPI standard under the condition that two standards are not compatible in the prior art is solved, and the purpose that the SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard is achieved.
Drawings
FIG. 1 is a flow chart of a data conversion method in accordance with a first embodiment of the present disclosure;
FIG. 2a is a flow chart of a data conversion method in a second embodiment of the disclosure;
FIG. 2b is a flow chart of a data conversion method in a second embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a data conversion device according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural view of an apparatus in a fourth embodiment of the present disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the present disclosure and not limiting thereof. It should be further noted that, for convenience of description, only some, but not all of the structures related to the present disclosure are shown in the drawings.
Example 1
Fig. 1 is a flowchart of a data conversion method in a first embodiment of the present disclosure, which may be applicable to a case of playing a learning courseware of the score standard in a platform supporting the XAPI standard, and the method may be performed by a data conversion apparatus, which may be implemented in a software and/or hardware manner, and may be generally integrated in a device that provides a data conversion function. Referring to fig. 1, the method specifically includes the following steps:
In the embodiment of the disclosure, in response to a playing request of a user for the SCORM standard data, the SCORM standard data to be converted corresponding to the request is obtained, wherein the SCORM standard data can be stored locally, downloaded from the internet, input by the user, or obtained by other modes.
Optionally, the SCORM standard data includes at least one learning event, and the learning event includes: event description information and event values. Wherein a learning event may be understood as a record of a learning course for a user, and event description information may be used to describe the process of the user learning the course, for example, answering a question a, completing a target B, etc., and an event value may represent a value of some recorded variable, for example, learning course C80%, asking course D5 times, etc.
And 120, acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard.
Alternatively, the mapping between the SCORM standard and the XAPI standard may include: mapping relation between event description information of each learning event in SCORM standard and each XAPI statement in XAPI standard; each learning event comprises an event verb and an event operation object, and each XAPI statement comprises a statement verb and a statement operation object.
In the embodiment of the disclosure, since event verbs describing learning events in the SCORM standard are limited and most event verbs have event operation objects with fixed collocation, in order to quickly convert SCORM standard data into XAPI standard data, all possible learning events in the SCORM standard can be obtained in advance, and XAPI statements corresponding to event description information of each learning event can be found, so that a mapping relationship between the SCORM standard and the XAPI standard is determined. Wherein the event verbs in each learning event are matched with the declaration verbs in the corresponding XAPI declarations, and the event operation objects in each learning event are matched with the declaration operation objects in the corresponding XAPI declarations.
In the embodiment of the disclosure, after obtaining SCORM standard data, learning events and corresponding event description information included in the learning event are extracted, and then XAPI statements corresponding to the event description information of each learning event are respectively obtained by querying a mapping relation between the SCORM standard and the XAPI standard.
Alternatively, the mapping between the SCORM standard and the XAPI standard may be: mapping relations between event verbs and event operation objects included in each learning event in the SCORM standard and declaration verbs and declaration operation objects included in each declaration in the XAPI standard. However, in this mapping relationship, it is necessary to replace the event verbs and event operation objects of each learning event in the SCORM standard data into the XAPI declaration in real time.
And 130, correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
In the embodiment of the disclosure, after the XAPI declarations corresponding to the event description information of each learning event in the SCORM standard data are respectively obtained, event values in each learning event are respectively extracted, and the event values are filled into the corresponding XAPI declarations to obtain a complete XAPI declaration corresponding to the learning event, so that the XAPI standard data corresponding to the SCORM standard data are obtained.
According to the technical scheme, SCORM standard data to be converted are obtained, the SCORM standard data comprise at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard; event values in each learning event in SCORM standard data are correspondingly filled into an XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data, the problem that learning courseware of the SCORM standard cannot be played on a platform supporting the XAPI standard under the condition that two standards are not compatible in the prior art is solved, and the purpose that the SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard is achieved.
Example two
Fig. 2a is a flow chart of a data conversion method in a second embodiment of the disclosure, which may be combined with various alternatives in the above embodiments. Specifically, referring to fig. 2a, the method may comprise the steps of:
In an embodiment of the present disclosure, the mapping relationship between the SCORM standard and the XAPI standard may include: mapping relation between event description information of each learning event in SCORM standard and each XAPI statement in XAPI standard.
Alternatively, the mapping relationship between the SCORM standard and the XAPI standard may be established by: traversing event verbs in a data model of the SCORM standard, and registering the event verbs in a declarative verb list of the XAPI standard; traversing event operation objects in a data model of the SCORM standard, and registering the event operation objects in a statement object list of the XAPI standard; traversing a data model in the SCORM standard, and acquiring all event description information corresponding to the data model in the SCORM standard; and generating XAPI declarations respectively corresponding to the event description information according to the declaration verb list and the declaration object list of the XAPI standard.
In the embodiment of the disclosure, each event verb and each event operation object in a data model of the SCORM standard are registered in a declaration verb list and a declaration object list of the XAPI standard respectively, then all possible learning events are simulated according to the data model of the SCORM standard, event description information of each possible learning event is acquired, and corresponding XAPI declarations are generated by acquiring declaration verbs and declaration objects corresponding to the event description information of each learning event from the declaration verb list and the declaration object list of the XAPI standard.
Optionally, generating the XAPI claims corresponding to the event description information respectively according to the claim verb list and the claim object list of the XAPI standard may include: generating a data structure of the XAPI statement corresponding to the current event description information; the data structure comprises variables corresponding to event values of the current event description information and gaps to be filled, which are matched with event verbs and event operation objects; filling the declaration verbs corresponding to the event verbs of the current event description information in the declaration verb list of the XAPI standard into gaps to be filled corresponding to the data structure; and filling the declaration operation object corresponding to the event operation object of the current event description information in the declaration object list of the XAPI standard into a to-be-filled space corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Illustratively, assuming that the current event description information is learning, course a, 80%, the data structure of the corresponding XAPI declaration may be: the user has [ declaration verb ] and [ variable of [ declaration object ], acquires "study" from the declaration verb list of the XAPI standard and fills in [ declaration verb ] vacancy of the data structure, acquires "course A" from the declaration object list of the XAPI standard and fills in [ declaration object ] vacancy of the data structure, namely generates XAPI declaration corresponding to the current event description information.
Optionally, as shown in fig. 2b, registering each event verb and event operation object in the data model of the SCORM standard to the declaration verb list and the declaration object list of the XAPI standard respectively, generating a data structure of an XAPI declaration corresponding to the event description information of each learning event, then filling the declaration operation object corresponding to the event operation object of the current event description information in the declaration object list of the XAPI standard into a to-be-filled space corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Optionally, after generating the XAPI claims corresponding to the event description information according to the claim verb list and the claim object list of the XAPI standard, the method may further include: and respectively taking the learning event names corresponding to the event description information as key value names, taking the XAPI statement corresponding to the event description information as a key value, and storing the mapping relation between the event description information in the SCORM standard and each XAPI statement in the XAPI standard.
In the embodiment of the disclosure, in order to quickly acquire the XAPI statement corresponding to a learning event from the mapping relationship between the SCORM standard and the XAPI standard, each event description information and the XAPI statement corresponding to the event description information may be stored in a key value pair format, so that the corresponding XAPI statement may be quickly retrieved according to the key value name corresponding to the learning event.
Optionally, according to the event description information and the mapping relationship between the SCORM standard and the XAPI standard, obtaining the XAPI statement corresponding to each learning event in the SCORM standard data may include: and acquiring the XAPI statement corresponding to the event description information from the mapping relation between the event description information in the SCORM standard and the XAPI statement in the XAPI standard according to the learning event name corresponding to the event description information.
And 240, correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
Optionally, the filling the event value correspondence in each learning event in the SCORM standard data into the XAPI declaration may include: event values in each learning event in the SCORM standard data are populated into variables in the data structure corresponding to the XAPI declaration.
In the embodiment of the disclosure, the XAPI statement obtained according to the mapping relationship between the SCORM standard and the XAPI standard does not include a specific variable value, and the event value correspondence in the current learning event needs to be filled into the XAPI statement to obtain the XAPI standard data corresponding to the current event.
And 250, playing the XAPI standard data by using a playing plug-in based on the XAPI standard.
According to the technical scheme, SCORM standard data to be converted are obtained, the SCORM standard data comprise at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard; event values in each learning event in SCORM standard data are correspondingly filled into an XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data, the problem that learning courseware of the SCORM standard cannot be played on a platform supporting the XAPI standard under the condition that two standards are not compatible in the prior art is solved, and the purpose that the SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard is achieved.
Example III
Fig. 3 is a schematic structural diagram of a data conversion device in a third embodiment of the present disclosure, which is applicable to a case of playing a learning courseware of the score standard in a platform supporting the XAPI standard. The apparatus may be implemented in software and/or hardware and may generally be integrated in a device providing data conversion functionality. As shown in fig. 3, the apparatus includes: a data acquisition module 310, a claim acquisition module 320, and a data conversion module 330;
the data obtaining module 310 is configured to obtain standard data of a score to be converted, where the standard data of the score includes at least one learning event, and the learning event includes: event description information and event values;
the declaration acquisition module 320 is configured to acquire XAPI declarations corresponding to each learning event in the score standard data according to the event description information and a mapping relationship between the score standard and the XAPI standard;
and the data conversion module 330 is configured to fill event values in each learning event in the SCORM standard data into the XAPI declaration correspondingly, so as to obtain XAPI standard data corresponding to the SCORM standard data.
According to the technical scheme, SCORM standard data to be converted are obtained, the SCORM standard data comprise at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard; event values in each learning event in SCORM standard data are correspondingly filled into an XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data, the problem that learning courseware of the SCORM standard cannot be played on a platform supporting the XAPI standard under the condition that two standards are not compatible in the prior art is solved, and the purpose that the SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard is achieved.
Optionally, the mapping between the SCORM standard and the XAPI standard includes: mapping relation between event description information of each learning event in SCORM standard and each XAPI statement in XAPI standard; each learning event comprises an event verb and an event operation object, and each XAPI statement comprises a statement verb and a statement operation object.
Optionally, the method further comprises: the mapping relation establishing module is used for traversing event verbs in a data model of the SCORM standard before acquiring SCORM standard data to be converted and registering the event verbs in a declarative verb list of the XAPI standard; traversing event operation objects in a data model of the SCORM standard, and registering the event operation objects in a statement object list of the XAPI standard; traversing a data model in the SCORM standard, and acquiring all event description information corresponding to the data model in the SCORM standard; and generating XAPI declarations respectively corresponding to the event description information according to the declaration verb list and the declaration object list of the XAPI standard.
Optionally, the mapping relation establishment module is specifically configured to: generating a data structure of the XAPI statement corresponding to the current event description information; the data structure comprises variables corresponding to event values of the current event description information and gaps to be filled, which are matched with event verbs and event operation objects; filling the declaration verbs corresponding to the event verbs of the current event description information in the declaration verb list of the XAPI standard into gaps to be filled corresponding to the data structure; and filling the declaration operation object corresponding to the event operation object of the current event description information in the declaration object list of the XAPI standard into a to-be-filled space corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Optionally, the method further comprises: the storage module is used for respectively taking the learning event names corresponding to the event description information as key value names after generating the XAPI statement corresponding to each event description information according to the statement verb list and the statement object list of the XAPI standard, taking the XAPI statement corresponding to the event description information as a key value, and storing the mapping relation between each event description information in the SCORM standard and each XAPI statement in the XAPI standard;
optionally, the declaration acquisition module 320 is specifically configured to: and acquiring the XAPI statement corresponding to the event description information from the mapping relation between the event description information in the SCORM standard and the XAPI statement in the XAPI standard according to the learning event name corresponding to the event description information.
Optionally, the data conversion module 330 is specifically configured to: event values in each learning event in the SCORM standard data are populated into variables in the data structure corresponding to the XAPI declaration.
Optionally, the data acquisition module 310 is specifically configured to: responding to a playing request of SCORM standard data, and acquiring the SCORM standard data;
further comprises: and the playing module is used for playing the XAPI standard data by using a playing plug-in based on the XAPI standard after obtaining the XAPI standard data corresponding to the SCORM standard data.
The data conversion device provided by the embodiment of the present disclosure belongs to the same inventive concept as the data conversion method provided by the embodiment of the present disclosure, technical details not described in detail in the embodiment of the present disclosure may be referred to the above embodiment, and the data conversion device of the embodiment of the present disclosure has the same beneficial effects as the data conversion method provided by the above embodiment.
Example IV
The disclosed embodiments provide an apparatus, referring now to fig. 4, that illustrates a schematic diagram of an apparatus (e.g., a terminal device or server) 400 suitable for use in implementing the disclosed embodiments. Devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, etc. The apparatus shown in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the apparatus 400 may include a processing device (e.g., a central processor, a graphics processor, etc.) 401, which may perform various suitable actions and processes according to a program stored in a Read Only Memory (ROM) 402 or a program loaded from a storage device 406 into a Random Access Memory (RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 406 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 shows apparatus 400 having various devices, it is to be understood that not all illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a non-transitory computer readable medium, the computer program comprising program code for performing the method shown in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 406, or from ROM 402. When executed by the processing device 401, the computer program performs the above-described functions defined in the data conversion method of the embodiment of the present disclosure.
Example five
The disclosed embodiments also provide a computer readable storage medium, which may be a computer readable signal medium or a computer readable storage medium or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
In the context of this disclosure, a computer-readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
The computer readable medium may be embodied in the apparatus; or may be present alone without being fitted into the device.
The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: obtaining reference model SCORM standard data of a shared content object to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values; acquiring XAPI statement corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the learning application programming interface XAPI standard; and correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain the XAPI standard data corresponding to the SCORM standard data.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. The name of the unit is not limited to the unit itself in some cases, for example, the declaration acquisition module may also be described as a module for acquiring XAPI declarations corresponding to learning events in the score standard data according to the event description information and the mapping relationship between the score standard and the XAPI standard.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.
Claims (9)
1. A method of data conversion, comprising:
obtaining reference model SCORM standard data of a shared content object to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values;
acquiring XAPI statements corresponding to each learning event in SCORM standard data according to the event description information and the mapping relation between the SCORM standard and a learning application programming interface XAPI standard;
correspondingly filling event values in each learning event in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data;
before obtaining the SCORM standard data to be converted, the method further comprises the following steps:
traversing event verbs in a data model of the SCORM standard, and registering the event verbs in a declarative verb list of the XAPI standard;
traversing event operation objects in a data model of the SCORM standard, and registering the event operation objects in a statement object list of the XAPI standard;
traversing the data model in the SCORM standard, and acquiring all event description information corresponding to the data model in the SCORM standard;
and generating XAPI declarations respectively corresponding to the event description information according to the declaration verb list and the declaration object list of the XAPI standard.
2. The method of claim 1, wherein the mapping between the SCORM standard and the XAPI standard comprises:
mapping relation between event description information of each learning event in the SCORM standard and each XAPI statement in the XAPI standard;
each learning event comprises an event verb and an event operation object, and each XAPI statement comprises a statement verb and a statement operation object.
3. The method according to claim 1, wherein generating XAPI declarations respectively corresponding to the event description information from a declaration verb list and a declaration object list of XAPI standards, comprises:
generating a data structure of the XAPI statement corresponding to the current event description information;
the data structure comprises a variable corresponding to an event value of the current event description information and a to-be-filled vacancy matched with the event verb and the event operation object;
filling the declaration verbs corresponding to the event verbs of the current event description information in the declaration verb list of the XAPI standard into gaps to be filled corresponding to the data structure;
and filling a declaration operation object corresponding to an event operation object of the current event description information in the declaration object list of the XAPI standard into a to-be-filled space corresponding to the data structure, and generating an XAPI declaration corresponding to the current event description information.
4. The method according to claim 3, further comprising, after generating XAPI claims corresponding to the event description information, respectively, based on the list of declarative verbs and the list of declarative objects of the XAPI standard:
respectively taking a learning event name corresponding to each event description information as a key value name, taking an XAPI statement corresponding to the event description information as a key value, and storing a mapping relation between each event description information in the SCORM standard and each XAPI statement in the XAPI standard;
according to the event description information and the mapping relation between the SCORM standard and the XAPI standard, obtaining the XAPI statement corresponding to each learning event in the SCORM standard data, wherein the method comprises the following steps:
and acquiring XAPI statement corresponding to the event description information from the mapping relation between each event description information in the SCORM standard and each XAPI statement in the XAPI standard according to the learning event name corresponding to each event description information.
5. The method of claim 3, wherein populating the XAPI declaration with event values in each learning event in the SCORM standard data, comprising:
and filling event values in each learning event in the SCORM standard data into variables in a data structure corresponding to the XAPI statement.
6. The method of any of claims 1-5, wherein obtaining the score standard data to be converted comprises:
responding to a playing request of the SCORM standard data, and acquiring the SCORM standard data;
after obtaining the XAPI standard data corresponding to the SCORM standard data, the method further comprises:
and playing the XAPI standard data by using a playing plug-in based on the XAPI standard.
7. A data conversion apparatus, comprising:
the data acquisition module is used for acquiring SCORM standard data to be converted, wherein the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and event values;
the statement acquisition module is used for acquiring the XAPI statement corresponding to each learning event in the SCORM standard data according to the event description information and the mapping relation between the SCORM standard and the XAPI standard;
the data conversion module is used for correspondingly filling event values in all learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data;
wherein, still include: the mapping relation establishing module is used for traversing event verbs in a data model of the SCORM standard before acquiring SCORM standard data to be converted, and registering the event verbs in a declarative verb list of the XAPI standard;
traversing event operation objects in a data model of the SCORM standard, and registering the event operation objects in a statement object list of the XAPI standard;
traversing the data model in the SCORM standard, and acquiring all event description information corresponding to the data model in the SCORM standard;
and generating XAPI declarations respectively corresponding to the event description information according to the declaration verb list and the declaration object list of the XAPI standard.
8. An apparatus, the apparatus comprising:
one or more processors;
storage means for storing one or more programs,
when executed by the one or more processors, causes the one or more processors to implement the data conversion method of any of claims 1-6.
9. A computer-readable storage medium, on which a computer program is stored, characterized in that the program, when being executed by a processor, implements a data conversion method as claimed in any one of claims 1-6.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010219622.9A CN111382556B (en) | 2020-03-25 | 2020-03-25 | Data conversion method, device, equipment and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010219622.9A CN111382556B (en) | 2020-03-25 | 2020-03-25 | Data conversion method, device, equipment and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111382556A CN111382556A (en) | 2020-07-07 |
CN111382556B true CN111382556B (en) | 2023-06-30 |
Family
ID=71217482
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010219622.9A Active CN111382556B (en) | 2020-03-25 | 2020-03-25 | Data conversion method, device, equipment and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111382556B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN118426978B (en) * | 2024-07-05 | 2024-09-17 | 四川赛狄信息技术股份公司 | Matrix image memory management optimization method, system, terminal and medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109472009A (en) * | 2018-09-19 | 2019-03-15 | 中国工程物理研究院计算机应用研究所 | A method of IETP data packet is converted into SCORM data packet |
CN109800394A (en) * | 2019-01-21 | 2019-05-24 | 中国人民解放军陆军工程大学 | Method and tool for converting IETM data packet into SCORM standard packet |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7836063B2 (en) * | 2003-12-15 | 2010-11-16 | International Business Machines Corporation | Customizable data translation method and system |
US20110145293A1 (en) * | 2009-12-11 | 2011-06-16 | Samantha Stewart | Methods, Systems, and Products for Creating Sharable Objects |
-
2020
- 2020-03-25 CN CN202010219622.9A patent/CN111382556B/en active Active
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109472009A (en) * | 2018-09-19 | 2019-03-15 | 中国工程物理研究院计算机应用研究所 | A method of IETP data packet is converted into SCORM data packet |
CN109800394A (en) * | 2019-01-21 | 2019-05-24 | 中国人民解放军陆军工程大学 | Method and tool for converting IETM data packet into SCORM standard packet |
Non-Patent Citations (3)
Title |
---|
卜昭锋等.基于xAPI 的数字化学习过程数据跟踪.现代教育技术.2019,第第29卷卷(第第1期期),第86-92页. * |
沈伟 ; .基于xAPI的学习行为大数据研究与实现.信息与电脑(理论版).2016,(15),全文. * |
魏志民 ; 荆楠 ; 刘志东 ; .基于S1000D标准的源数据转换技术应用研究.科技风.2017,(12),全文. * |
Also Published As
Publication number | Publication date |
---|---|
CN111382556A (en) | 2020-07-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111475298B (en) | Task processing method, device, equipment and storage medium | |
CN109582310B (en) | Data processing method and device, electronic equipment and computer readable storage medium | |
US11711441B2 (en) | Method and apparatus for publishing video synchronously, electronic device, and readable storage medium | |
CN109857486B (en) | Method, device, equipment and medium for processing program page data | |
CN110489101A (en) | Interface analogy method, system, medium and electronic equipment | |
US11270690B2 (en) | Method and apparatus for waking up device | |
CN109446025B (en) | Operation behavior playback method and device, electronic equipment and readable medium | |
CN111367516B (en) | Application interface generation method and device and electronic equipment | |
CN111427647B (en) | Page display method and device of application program, storage medium and electronic equipment | |
CN111290819B (en) | Method and device for displaying operation prompt and electronic equipment | |
CN111459364B (en) | Icon updating method and device and electronic equipment | |
CN110765752B (en) | Test question generation method and device, electronic equipment and computer readable storage medium | |
CN110134905B (en) | Page update display method, device, equipment and storage medium | |
CN111382556B (en) | Data conversion method, device, equipment and storage medium | |
CN112416303B (en) | Software development kit hot repair method and device and electronic equipment | |
CN112380883B (en) | Model training method, machine translation method, device, equipment and storage medium | |
CN113391860B (en) | Service request processing method and device, electronic equipment and computer storage medium | |
CN111460432B (en) | On-line document authority control method, device, equipment and computer readable medium | |
CN110618772B (en) | View adding method, device, equipment and storage medium | |
CN111240657A (en) | Method and device for generating SDK and electronic equipment | |
CN111641692B (en) | Session data processing method and device and electronic equipment | |
CN109918357A (en) | Information playback method, device, electronic equipment and computer readable storage medium | |
CN112235333B (en) | Function package management method, device, equipment and storage medium | |
CN112688863B (en) | Gateway data processing method and device and electronic equipment | |
CN118113859A (en) | Interactive information display method, device, equipment and storage medium |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |