CN111382556A - Data conversion method, device, equipment and storage medium - Google Patents

Data conversion method, device, equipment and storage medium Download PDF

Info

Publication number
CN111382556A
CN111382556A CN202010219622.9A CN202010219622A CN111382556A CN 111382556 A CN111382556 A CN 111382556A CN 202010219622 A CN202010219622 A CN 202010219622A CN 111382556 A CN111382556 A CN 111382556A
Authority
CN
China
Prior art keywords
xapi
event
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.)
Granted
Application number
CN202010219622.9A
Other languages
Chinese (zh)
Other versions
CN111382556B (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN202010219622.9A priority Critical patent/CN111382556B/en
Publication of CN111382556A publication Critical patent/CN111382556A/en
Application granted granted Critical
Publication of CN111382556B publication Critical patent/CN111382556B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements 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/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/542Event 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)
  • Stored Programmes (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The embodiment of the disclosure discloses a data conversion method, a data conversion device, data conversion equipment and a storage medium. The method comprises the following steps: acquiring SCORM standard data of a reference model of a shared content object to be converted, wherein the SCORM standard data comprises at least one item of learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and a learning application programming interface XAPI standard; and correspondingly filling the event values in the learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data. According to the technical scheme of the embodiment of the disclosure, the SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard.

Description

Data conversion method, device, equipment and storage medium
Technical Field
The embodiments of the present disclosure relate to the field of computer technologies, and in particular, to a data conversion method, apparatus, device, and storage medium.
Background
Two general standards of a Shared Content Object Reference Model (SCORM) and a Learning Application Programming Interface (XAPI) exist in a Learning Management System (LMS), wherein the SCORM standard is an old generation of general standard, and the XAPI standard is a new generation of standard.
At present, many study courseware of the SCORM standard can only be played on a platform supporting the SCORM standard, but cannot be played on a platform supporting the XAPI standard, and if the platform is compatible with the playing of courseware of two standards at the same time, the problems of a large amount of manpower consumption, inconsistency and non-intercommunication of data of the two standards exist, so that the problem of how to convert SCORM standard data into XAPI standard data becomes an urgent solution under the condition that the two standards are not compatible.
Disclosure of Invention
The embodiment of the disclosure provides a data conversion method, device, equipment and storage medium, so as to realize that in a platform only supporting XAPI standard, SCORM standard data can be converted into corresponding XAPI standard data.
In a first aspect, an embodiment of the present disclosure provides a data conversion method, including:
acquiring SCORM standard data of a reference model of a shared content object to be converted, wherein the SCORM standard data comprises at least one item of learning event, and the learning event comprises: event description information and an event value;
acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and a learning application programming interface XAPI standard;
and correspondingly filling the event values in the learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
Optionally, the mapping relationship between the SCORM standard and the XAPI standard includes:
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 declaration comprises a declaration verb and a declaration operation object.
Optionally, before acquiring the score standard data to be converted, the method further includes:
traversing an event verb in a data model of a SCORM standard, and registering the event verb in a declaration verb list of an XAPI standard;
traversing event operation objects in a data model of a SCORM standard, and registering the event operation objects in a declaration object list of an 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 the XAPI declaration corresponding to each event description information according to the declaration verb list and the declaration object list of the XAPI standard.
Optionally, generating an XAPI declaration corresponding to each event description information according to the declaration verb list and the declaration object list of the XAPI standard includes:
generating a data structure of an 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 vacancy to be filled, wherein the vacancy to be filled is matched with an event verb and an event operation object;
filling a declaration verb corresponding to the event verb of the current event description information in a declaration verb list of the XAPI standard into a vacancy to be filled corresponding to the data structure;
and filling a declaration operation object corresponding to the event operation object of the current event description information in a declaration object list of the XAPI standard into a vacancy to be filled corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Optionally, after the XAPI declaration corresponding to each event description information is generated according to the declaration verb list and the declaration object list of the XAPI standard, the method further includes:
respectively taking the 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, the XAPI statement corresponding to each learning event in the SCORM standard data is obtained, and 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, correspondingly filling an event value in each learning event in the SCORM standard data into the XAPI statement, including:
the event values in each learning event in the SCORM criteria data are populated into variables in the data structure corresponding to the XAPI statement.
Optionally, obtaining the score standard data to be converted includes:
responding to a playing request of the SCORM standard data, and acquiring the SCORM standard data;
after obtaining XAPI standard data corresponding to the SCORM standard data, the method further includes:
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 an event value;
the statement acquisition module is used for acquiring XAPI statements corresponding to learning events in 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 the event values in the 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, an embodiment of the present disclosure further provides an apparatus, where the apparatus includes:
one or more processors;
a storage device for storing one or more programs,
when the one or more programs are executed by the one or more processors, the one or more processors implement the data conversion method provided by any embodiment of the present disclosure.
In a fourth aspect, the embodiments of the present disclosure further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data conversion method provided in any of the embodiments of the present disclosure.
According to the technical scheme of the embodiment of the disclosure, the SCORM standard data to be converted is obtained, the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and the XAPI standard; event values in learning events in the SCORM standard data are correspondingly filled into the 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 SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard.
Drawings
Fig. 1 is a flowchart of a data conversion method in a first embodiment of the disclosure;
fig. 2a is a flowchart of a data conversion method in a second embodiment of the disclosure;
fig. 2b is a flowchart of a data conversion method in the second embodiment of the disclosure;
fig. 3 is a schematic structural diagram of a data conversion apparatus in a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus in a fourth embodiment of the disclosure.
Detailed Description
The present disclosure is described in further detail below with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the disclosure and are not limiting of the disclosure. It should be further noted that, for the convenience of description, only some of the structures relevant to the present disclosure are shown in the drawings, not all of them.
Example one
Fig. 1 is a flowchart of a data conversion method in one embodiment of the present disclosure, which may be applied to a case where a study courseware of the SCORM standard is played in a platform supporting the XAPI standard, and the method may be performed by a data conversion apparatus, which may be implemented by software and/or hardware, and may be generally integrated in a device providing a data conversion function. With reference to fig. 1, the method specifically includes the following steps:
and step 110, obtaining the SCORM standard data to be converted.
In the embodiment of the present disclosure, in response to a request for playing the score standard data from a user, the score standard data to be converted corresponding to the request is obtained, where the score standard data may be stored locally, downloaded from the internet, input by the user, or obtained in other manners.
Optionally, the score criterion data includes at least one learning event, and the learning event includes: event description information and event values. A learning event may be understood as a record of a learning course for a user, event description information may be used to describe a process of the user learning the course, for example, answering a question a, completing an objective B, and the like, and an event value may represent a value of some record variable, for example, learning course C80%, questioning course D5 times, and the like.
And step 120, acquiring an 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.
Optionally, the mapping relationship between the SCORM standard and the XAPI standard may include: 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 declaration comprises a declaration verb and a declaration 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 in fixed collocation, so that learning events in the SCORM standard are limited, 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 declarations corresponding to event description information of each learning event can be found, so as to determine a mapping relationship between the SCORM standard and the XAPI standard. Wherein the event verb in each learning event matches the declaration verb in the corresponding XAPI declaration, and the event operand in each learning event matches the declaration operand in the corresponding XAPI declaration.
In the embodiment of the disclosure, after obtaining the SCORM standard data, the learning events and the corresponding event description information included in the SCORM standard data are extracted, and then by querying the mapping relationship between the SCORM standard and the XAPI standard, the XAPI statement corresponding to the event description information of each learning event is obtained respectively.
Optionally, the mapping relationship between the SCORM standard and the XAPI standard may also be: mapping relationships between event verbs and event operands included in each learning event in the SCORM standard and declaration verbs and declaration operands included in each declaration in the XAPI standard. However, under such a mapping relationship, the event verbs and the event operation objects of the learning events in the SCORM standard data need to be replaced into the XAPI declaration in real time.
And step 130, correspondingly filling the event values in the learning events 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 XAPI statements corresponding to 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 in the corresponding XAPI statements to obtain a complete XAPI statement corresponding to the learning event, thereby obtaining XAPI standard data corresponding to the SCORM standard data.
According to the technical scheme of the embodiment of the disclosure, the SCORM standard data to be converted is obtained, the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and the XAPI standard; event values in learning events in the SCORM standard data are correspondingly filled into the 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 SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard.
Example two
Fig. 2a is a flowchart of a data conversion method in a second embodiment of the present disclosure, and the second embodiment of the present disclosure may be combined with various alternatives in the above embodiments. Specifically, referring to fig. 2a, the method may include the steps of:
and step 210, establishing a mapping relation between the SCORM standard and the XAPI standard in advance.
In the 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 the SCORM standard and each XAPI statement in the XAPI standard.
Optionally, the mapping relationship between the SCORM standard and the XAPI standard may be established by: traversing an event verb in a data model of a SCORM standard, and registering the event verb in a declaration verb list of an XAPI standard; traversing event operation objects in a data model of a SCORM standard, and registering the event operation objects in a declaration object list of an 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 the XAPI declaration corresponding to each 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 event operation object in the data model of the SCORM standard are registered in the statement verb list and the statement object list of the XAPI standard, then all possible learning events are simulated according to the data model of the SCORM standard, the event description information of each possible learning event is acquired, and the statement verb and the statement object corresponding to the event description information of each learning event are acquired from the statement verb list and the statement object list of the XAPI standard to generate a corresponding XAPI statement.
Optionally, generating an XAPI declaration corresponding to each event description information according to the declaration verb list and the declaration object list of the XAPI standard may include: generating a data structure of an 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 vacancy to be filled, wherein the vacancy to be filled is matched with an event verb and an event operation object; filling a declaration verb corresponding to the event verb of the current event description information in a declaration verb list of the XAPI standard into a vacancy to be filled corresponding to the data structure; and filling a declaration operation object corresponding to the event operation object of the current event description information in a declaration object list of the XAPI standard into a vacancy to be filled corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
For example, 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 [ statement verb ] the [ variable of [ statement object ], obtains 'learning' from the statement verb list of XAPI standard and fills in the [ statement verb ] slot of the data structure, and obtains 'course A' from the statement object list of XAPI standard and fills in the [ statement object ] slot of the data structure, namely, the XAPI statement corresponding to the current event description information is generated.
Optionally, as shown in fig. 2b, registering each event verb and event operation object in the data model of the SCORM standard into a verb statement list and a declaration object list of the XAPI standard, respectively, and generating a data structure of the XAPI statement corresponding to the event description information of each learning event, and 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 the to-be-filled slot corresponding to the data structure, so as to generate the XAPI statement corresponding to the current event description information.
Optionally, after the XAPI declaration corresponding to each event description information is generated according to the declaration verb list and the declaration object list of the XAPI standard, the method may further include: and respectively taking the learning event name corresponding to each event description information as a key value name, 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.
In the embodiment of the disclosure, in order to subsequently and quickly obtain 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 corresponding XAPI statement 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.
Step 220, responding to the play request of the standard data of SCORM, and acquiring the standard data of SCORM.
And step 230, acquiring an 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.
Optionally, obtaining the XAPI statement corresponding to each learning event in the SCORM standard data according to the event description information and the mapping relationship between the SCORM standard and the XAPI standard 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 step 240, correspondingly filling the event values in the learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
Optionally, correspondingly filling an event value in each learning event in the SCORM standard data into the XAPI statement, which may include: the event values in each learning event in the SCORM criteria data are populated into variables in the data structure corresponding to the XAPI statement.
In the embodiment of the present 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 XAPI standard data corresponding to the current event can be obtained only by correspondingly filling the event value in the current learning event into the XAPI statement.
And step 250, playing the XAPI standard data by using a playing plug-in based on the XAPI standard.
According to the technical scheme of the embodiment of the disclosure, the SCORM standard data to be converted is obtained, the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and the XAPI standard; event values in learning events in the SCORM standard data are correspondingly filled into the 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 SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a data conversion device in a third embodiment of the present disclosure, where the third embodiment of the present disclosure is applied to a case where a study courseware of the SCORM standard is played 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 declaration acquisition module 320, and a data conversion module 330;
a data obtaining module 310, configured to obtain SCORM standard data to be converted, where the SCORM standard data includes at least one learning event, and the learning event includes: event description information and an event value;
a statement obtaining module 320, configured to obtain XAPI statements corresponding to learning events in the SCORM standard data according to the event description information and a mapping relationship between the SCORM standard and the XAPI standard;
the data conversion module 330 is configured to correspondingly fill event values in learning events in the SCORM standard data into the XAPI statement, so as to obtain XAPI standard data corresponding to the SCORM standard data.
According to the technical scheme of the embodiment of the disclosure, the SCORM standard data to be converted is obtained, the SCORM standard data comprises at least one learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and the XAPI standard; event values in learning events in the SCORM standard data are correspondingly filled into the 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 SCORM standard data can be converted into the corresponding XAPI standard data in the platform only supporting the XAPI standard.
Optionally, the mapping relationship between the SCORM standard and the XAPI standard includes: 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 declaration comprises a declaration verb and a declaration operation object.
Optionally, the method further includes: the mapping relation establishing module is used for traversing an event verb in a data model of the SCORM standard before the SCORM standard data to be converted is acquired, and registering the event verb in a declaration verb list of the XAPI standard; traversing event operation objects in a data model of a SCORM standard, and registering the event operation objects in a declaration object list of an 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 the XAPI declaration corresponding to each event description information according to the declaration verb list and the declaration object list of the XAPI standard.
Optionally, the mapping relationship establishing module is specifically configured to: generating a data structure of an 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 vacancy to be filled, wherein the vacancy to be filled is matched with an event verb and an event operation object; filling a declaration verb corresponding to the event verb of the current event description information in a declaration verb list of the XAPI standard into a vacancy to be filled corresponding to the data structure; and filling a declaration operation object corresponding to the event operation object of the current event description information in a declaration object list of the XAPI standard into a vacancy to be filled corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
Optionally, the method further includes: the storage module is used for generating XAPI declarations corresponding to the event description information respectively according to a declaration verb list and a declaration object list of an XAPI standard, then respectively using the learning event names corresponding to the event description information as key value names, using the XAPI declarations corresponding to the event description information as key values, and storing the mapping relation between the event description information in the SCORM standard and the XAPI declarations in the XAPI standard;
optionally, the declaration obtaining 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: the event values in each learning event in the SCORM criteria data are populated into variables in the data structure corresponding to the XAPI statement.
Optionally, the data obtaining module 310 is specifically configured to: responding to a playing request of the SCORM standard data, and acquiring the SCORM standard data;
further comprising: and the playing module is used for playing the XAPI standard data by using a playing plug-in based on the XAPI standard after the XAPI standard data corresponding to the SCORM standard data is obtained.
The data conversion device provided by the embodiment of the present disclosure and the data conversion method provided by the embodiment of the present disclosure belong to the same inventive concept, and technical details that are not described in detail in the embodiment of the present disclosure can be referred to the above embodiment, and the data conversion device of the embodiment of the present disclosure and the data conversion method provided by the above embodiment have the same beneficial effects.
Example four
An apparatus is provided in the disclosed embodiments, and referring now to fig. 4, a schematic structural diagram of an apparatus (e.g., a terminal device or a server) 400 suitable for implementing the disclosed embodiments is shown. The devices in the 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), in-vehicle terminals (e.g., car navigation terminals), and the like, and fixed terminals such as digital TVs, desktop computers, and the like. The device shown in fig. 4 is only an example and should not bring any limitation to the function and use range of the embodiments of the present disclosure.
As shown in fig. 4, the apparatus 400 may include a processing device (e.g., central processing unit, graphics processor, etc.) 401 that may perform various appropriate actions and processes in accordance with 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 necessary 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 via a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
Generally, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touch pad, 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 devices 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 with other devices, either wirelessly or by wire, to exchange data. While fig. 4 illustrates an apparatus 400 having various means, it is to be understood that not all illustrated means are required to be implemented or provided. More or fewer devices may alternatively be implemented or provided.
In particular, according to an embodiment of the present disclosure, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a non-transitory computer readable medium, the computer program containing program code for performing the method illustrated by the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication means 409, or from the storage means 406, or from the ROM 402. The computer program performs the above-described functions defined in the data conversion method of the embodiment of the present disclosure when executed by the processing device 401.
EXAMPLE five
Embodiments of the present disclosure 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. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination 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 present 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 contrast, in the present disclosure, a computer readable signal medium may comprise a propagated data signal with computer readable program code embodied therein, either 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 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, optical cables, RF (radio frequency), etc., or any suitable combination of the foregoing.
The computer readable medium may be embodied in the apparatus; or may be separate and not incorporated into the device.
The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to: acquiring SCORM standard data of a reference model of a shared content object to be converted, wherein the SCORM standard data comprises at least one item of learning event, and the learning event comprises: event description information and an event value; acquiring XAPI declarations corresponding to learning events in SCORM standard data according to event description information and a mapping relation between the SCORM standard and a learning application programming interface XAPI standard; and correspondingly filling the event values in the learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
Computer program code for carrying out operations for the present disclosure may be written in any combination of 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 type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
The flowchart 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 described in the embodiments of the present disclosure may be implemented by software or hardware. The declaration obtaining module may also be described as a module that obtains an XAPI declaration corresponding to each learning event in the SCORM standard data according to the event description information and the mapping relationship between the SCORM standard and the XAPI standard.
The foregoing description is only exemplary of the preferred embodiments of the disclosure and is illustrative of the principles of the technology employed. It will be appreciated by those skilled in the art that the scope of the disclosure herein is not limited to the particular combination of features described above, but also encompasses other embodiments in which any combination of the features described above or their equivalents does not depart from the spirit of the disclosure. For example, the above features and (but not limited to) the features disclosed in this disclosure having similar functions are replaced with each other to form the technical solution.
Further, while 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. Under 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 limitations on the scope of the 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 disclosed as example forms of implementing the claims.

Claims (10)

1. A method of data conversion, comprising:
obtaining SCORM standard data of a reference model of a shared content object to be converted, wherein the SCORM standard data comprises at least one item of learning event, and the learning event comprises: event description information and an event value;
acquiring XAPI declarations corresponding to learning events in the 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;
and correspondingly filling event values in the learning events in the SCORM standard data into the XAPI statement to obtain XAPI standard data corresponding to the SCORM standard data.
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 declaration comprises a declaration verb and a declaration operation object.
3. The method according to claim 2, before obtaining the score standard data to be converted, further comprising:
traversing an event verb in a data model of a SCORM standard, and registering the event verb in a declaration verb list of an XAPI standard;
traversing event operation objects in a data model of a SCORM standard, and registering the event operation objects in a declaration object list of an 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 the XAPI declaration corresponding to each event description information according to the declaration verb list and the declaration object list of the XAPI standard.
4. The method of claim 3, wherein generating the XAPI declaration corresponding to each of the event description information according to the declaration verb list and the declaration object list of the XAPI standard comprises:
generating a data structure of an 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 vacancy to be filled, wherein the vacancy to be filled is matched with the event verb and the event operation object;
filling a declaration verb corresponding to the event verb of the current event description information in the declaration verb list of the XAPI standard into a vacancy to be filled corresponding to the data structure;
filling a 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 vacancy to be filled corresponding to the data structure, and generating the XAPI declaration corresponding to the current event description information.
5. The method of claim 4, after generating the XAPI declaration corresponding to each of the event description information according to the declaration verb list and the declaration object list of the XAPI standard, further comprising:
respectively taking the learning event name corresponding to each event description information as a key value name, 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;
according to the event description information and the mapping relation between the SCORM standard and the XAPI standard, acquiring XAPI declarations corresponding to the learning events in the SCORM standard data, wherein the XAPI declarations comprise:
and acquiring an XAPI statement corresponding to the event description information from a mapping relation between each event description information in the SCORM standard and each XAPI statement in the XAPI standard according to a learning event name corresponding to each event description information.
6. The method of claim 4, wherein correspondingly populating the XAPI declaration with event values in each learning event in the SCORM criteria data comprises:
and filling event values in all learning events in the SCORM standard data into variables in a data structure corresponding to the XAPI statement.
7. The method according to any of claims 1-6, wherein obtaining the SCORM standard data to be converted comprises:
responding to a playing request of the SCORM standard data, and acquiring the SCORM standard data;
after obtaining XAPI standard data corresponding to the SCORM standard data, the method further includes:
and playing the XAPI standard data by using a playing plug-in based on the XAPI standard.
8. A data conversion apparatus, comprising:
a data obtaining module, configured to obtain SCORM standard data to be converted, where the SCORM standard data includes at least one learning event, and the learning event includes: event description information and an event value;
a statement obtaining module, configured to obtain XAPI statements corresponding to learning events in the SCORM standard data according to the event description information and a mapping relationship between a SCORM standard and an 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 XAPI standard data corresponding to the SCORM standard data.
9. An apparatus, characterized in that the apparatus comprises:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a data conversion method as claimed in any one of claims 1-7.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out a data conversion method according to any one of claims 1 to 7.
CN202010219622.9A 2020-03-25 2020-03-25 Data conversion method, device, equipment and storage medium Active CN111382556B (en)

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 true CN111382556A (en) 2020-07-07
CN111382556B 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)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050131970A1 (en) * 2003-12-15 2005-06-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
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 中国人民解放军陆军工程大学 IETM data packet is converted into the Method and kit for of SCORM standard packet

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050131970A1 (en) * 2003-12-15 2005-06-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
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 中国人民解放军陆军工程大学 IETM data packet is converted into the Method and kit for of SCORM standard packet

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
卜昭锋等: "基于xAPI 的数字化学习过程数据跟踪" *
沈伟;: "基于xAPI的学习行为大数据研究与实现" *
魏志民;荆楠;刘志东;: "基于S1000D标准的源数据转换技术应用研究" *

Also Published As

Publication number Publication date
CN111382556B (en) 2023-06-30

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
CN111290819B (en) Method and device for displaying operation prompt and electronic equipment
CN111857720B (en) User interface state information generation method and device, electronic equipment and medium
CN111198859A (en) Data processing method and device, electronic equipment and computer readable storage medium
CN111309304B (en) Method, device, medium and electronic equipment for generating IDL file
CN110865852A (en) Webpage component loading method and device, electronic equipment and storage medium
CN110765752B (en) Test question generation method and device, electronic equipment and computer readable storage medium
CN112380883B (en) Model training method, machine translation method, device, equipment and storage medium
CN112416303B (en) Software development kit hot repair method and device and electronic equipment
CN111273967A (en) Remote hook setting method and device suitable for Android system and electronic equipment
CN111382556B (en) Data conversion method, device, equipment and storage medium
CN113391860B (en) Service request processing method and device, electronic equipment and computer storage medium
CN111625326B (en) Task pipeline execution method and device and electronic equipment
CN111538717B (en) Data processing method, device, electronic equipment and computer readable medium
CN111274104B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN109669720B (en) Chain type asynchronous request processing method and device based on Promise and electronic equipment
CN111240657A (en) Method and device for generating SDK and electronic equipment
CN111787043A (en) Data request method and device
CN113177174B (en) Feature construction method, content display method and related device
CN113448550B (en) Method and device for realizing collection management of classes, electronic equipment and computer medium
CN110618772A (en) View adding method, device, equipment and storage medium
CN111641692B (en) Session data processing method and device and electronic equipment
CN111694833B (en) Data processing method, device, electronic equipment and computer readable storage medium
CN112688863B (en) Gateway data processing method and device and electronic equipment

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