Disclosure of Invention
The technical problem to be solved by the invention is to provide an automatic interactive electronic manual data packet verification tool supporting various standards and supporting a data acquisition software interface, and the verified interactive electronic manual data packet can be loaded into an IETM browsing device, so that the workload generated by repeatedly manufacturing the IETM data packet by each equipment manufacturer is avoided, and the project efficiency is improved.
In order to achieve the above object, the technical scheme of the present invention provides a multi-standard-oriented integrated loading device for an interactive electronic manual, comprising:
the IETM equipment tree analysis module is used for generating an IETM equipment directory tree with a hierarchy and distinguishing according to whether an IETM manual is loaded or not;
the data packet interface module is used for converting the structure of the standard data packet, and the data packet passing through the module is subjected to the converted standard structure and then is subjected to subsequent verification and importing;
the data packet structure verification module is used for checking the correctness and the integrity of the data packet selected by the user or the data packet structure converted by the data acquisition software;
the PM verification module is used for verifying the validity of the PM module;
the resource positioning verification module is used for verifying the validity of the resource positioning file;
the DM verification module is used for verifying the legality and the integrity of all the data modules in the resource positioning;
the registration information confirming module is used for extracting manual registration information from the data packet, and checking that the IETM release catalog name accords with the standard release project name specification, so as to ensure the uniqueness of the IETM release catalog name in the operation platform;
the data packet issuing module is used for establishing a data packet entity storage interval in the server;
the data analysis import module is used for analyzing the data packet and the registration information and inserting relevant data into a database of the IETM operation platform;
the platform access module is used for registering the equipment IETM manual in the operation platform database;
the log output module is used for recording a process log of loading or unloading IETM data packets;
the IETM manual changing module is used for changing and configuring the IETM state;
and the IETM manual unloading module is used for unloading the equipped IETM manual and deleting the release data packet of the project under the release catalog of the operation platform.
Preferably, the directory tree adopts an asynchronous loading strategy, has the basic function of a general navigation tree, supports keyboard shortcut key operation, can perform node operation of 'full expansion' and 'full closing' on the tree, and can distinguish the IETM state of the current equipment according to requirements: 1. grey-unloaded IETM system; 2. black-IETM systems are available; 3. red-IETM systems fail to deactivate or load.
The technical scheme of the invention also provides a multi-standard-oriented interactive electronic manual integrated loading method, which comprises the following steps:
step 201, selecting a loaded IETM equipment;
step 202, selecting a preloaded IETM manual data packet, and performing structure verification on the data packet;
step 203, verifying the validity and legality of the file in the data packet, and whether there is an entity file or not, and whether there is a format file not supported by the operation platform;
step 204, extracting necessary information about the preloaded IETM manual from the data packet, displaying the necessary information to the user, and checking the changed information of the user;
step 205, putting the data packet into a folder corresponding to the publishing catalog of the operation platform;
step 206, inserting the related data information of the IETM manual into the operation platform database;
step 207, registering the equipment IETM manual with a platform database;
step 208, the entire IETM loading process is recorded, including verification of the failed cause and the successful cause of the failed load or process details of the successful load.
Preferably, PMC code compliance verification includes extracting the PMC code of the device from pm.xml and verifying PMC length, segmentation, characters used according to selected standards and version numbers.
Preferably, the resource file integrity verification includes verifying whether the pointed data module file and the external file in pm.xml are mapped in the resource location file, and if the resource location file does not contain the data module file or the external file, the PM module verification is failed.
Preferably, the verification of the validity of the Schema of the resource positioning file comprises the step of calling the Schema file urn_map.xsd of the resource positioning file to perform the verification of the validity of the urn_map.xml file in the data packet.
Preferably, the resource entity file integrity verification includes verifying whether an entity file exists for the relevant resource in the urn_map.xml file.
Preferably, the integrity verification of the resource entity file is specifically to extract the value of the < urn > element [ name ] attribute in the urn_map.xml, and adopt different interception modes as the query basis of the entity file name according to different pairs of [ name ] of the value of the < target > element [ nss ] attribute, and the examination is as follows: 1. whether the name of dm has a corresponding entity file under the dm folder or not; 2. icn whether the name has a corresponding entity file under the illustration folder; 3. pmc if the name of the file folder has a corresponding entity file, if the corresponding entity file is missing, displaying an entity file missing list for the user, and checking that the corresponding entity file does not pass.
Preferably, the validity verification of the Schema of the DM module includes verifying the validity of all DM entity files under the DM folder by invoking the corresponding data module Schema from the network according to the [ type ] attribute value describing DM < target > in url_map.
Preferably, the integrity verification of the DM reference file includes verifying whether the graphics and multimedia referenced in all the data module files under the DM folder are all described in urn_map.xml, and whether there are graphics and multimedia formats not supported by the running platform.
The invention has the following advantages:
the invention provides an automatic IETM standard data packet verification device which can verify from the aspects of standard conformity and data packet content integrity, give a verification report and give accurate problem positioning, and can greatly improve the efficiency and accuracy of data packet acceptance work.
Secondly, the invention is internally provided with the IETM mainstream technical standard and the Schema set of different versions thereof, supports the verification of various standards, and can continuously expand the support of new standards.
Finally, the invention has an information interface with the IETM browsing device, can finish the structure conversion and automatic loading of the IETM data packet, reduces the error rate of manual operation and improves the efficiency of integration work.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The embodiment of the invention discloses a multi-standard-oriented interactive electronic manual integrated loading device, which comprises:
the IETM equipment tree parsing module 101 is configured to generate an IETM equipment directory tree having a hierarchy and distinguish according to whether an IETM manual is loaded.
The data packet interface module 102 is configured to convert the structure of the standard data packet, and perform subsequent verification and import after the data packet passing through the module is subjected to the converted standard structure.
The data packet structure verification module 103 is configured to check the correctness and integrity of the data packet selected by the user or the data packet structure converted by the data acquisition software.
The PM verification module 104 is configured to verify the validity of the PM module.
And the resource location verification module 105 is used for verifying the validity of the resource location file.
The DM verification module 106 is configured to verify the validity and integrity of all the data modules in the resource location.
The registration information confirming module 107 is configured to extract manual registration information from the data packet, and verify that the IETM release catalog name meets the standard release project name specification, so as to ensure uniqueness of the IETM release catalog name in the operation platform.
The data packet issuing module 108 is configured to establish a data packet entity storage interval in the server.
The data parsing import module 109 is configured to parse the "data packet" and the "registration information" and insert the relevant data into the database of the IETM operation platform.
A platform access module 110 for registering the equipment IETM manual in an operating platform database.
The log output module 111 is configured to record a process log of loading or unloading the IETM data packets.
The IETM manual change module 112 is configured to change the configuration of the IETM state.
And the IETM manual unloading module 113 is used for unloading the equipped IETM manual and deleting the release data packet of the project under the release catalog of the operation platform.
In addition, the embodiment discloses a multi-standard-oriented interactive electronic manual integrated loading method, which comprises the following steps:
step 201, selecting a loaded IETM equipment;
step 202, selecting a preloaded IETM manual data packet, and performing structure verification on the data packet;
step 203, verifying the validity and legality of the file in the data packet, and whether there is an entity file or not, and whether there is a format file not supported by the operation platform;
step 204, extracting necessary information about the preloaded IETM manual from the data packet, displaying the necessary information to the user, and checking the changed information of the user;
step 205, putting the data packet into a folder corresponding to the publishing catalog of the operation platform;
step 206, inserting the related data information of the IETM manual into the operation platform database;
step 207, registering the equipment IETM manual with a platform database;
step 208, the entire IETM loading process is recorded, including verification of the failed cause and the successful cause of the failed load or process details of the successful load.
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the embodiments of the present invention disclosed below will be described in further detail with reference to the accompanying drawings.
Referring to fig. 1, a schematic block diagram of a multi-standard oriented interactive electronic manual integrated loading device and method in an embodiment of the present invention is shown.
The IETM equipment tree parsing module 101 is configured to generate a multi-IETM equipment directory tree having a hierarchy and distinguish according to whether an IETM manual is loaded.
The directory tree adopts an asynchronous loading strategy, has the basic function of a general navigation tree, supports keyboard shortcut key operation, can perform node operation of 'full expansion' and 'full closing' on the tree, and can distinguish the IETM state of the current equipment according to requirements: 1. grey-unloaded IETM system; 2. black-IETM systems are available; 3. red-IETM systems fail to deactivate or load.
Selecting a certain equipment node, information of the IETM manual can be displayed, and the information comprises: PMC code, IETM state, IETM issue directory name, IETM security class, and load/change operations.
The data packet interface module 102 mainly completes the IETM data packet made by other manufacturers, converts the IETM data packet into a data packet conforming to the standard format of the IETM browsing device, and then invokes the subsequent verification and import module to carry out the loading process of the IETM manual. The page provides an option entry for the interface module, and different standards and version numbers can be selected.
The data packet structure verification module 103 is configured to check the correctness and integrity of the data packet selected by the user or the data packet structure converted by the data acquisition software.
The packet structure is shown in table 1:
table 1 packet directory structure
Whether the files or folders in the data packet meet the standard data packet structure or not is analyzed (as shown in table 1), when the equiplog. Jpg picture is absent, verification cannot be affected, and the system automatically adds default equipment pictures for the data packet and prompts the user. If other files or folders do not exist, the user is presented with a list of missing files.
The PM verification module 104 is configured to verify the validity of the PM module, where the verification content includes a Schema validity verification of the PM module, a PMC code compliance verification, and a resource file integrity verification.
The Schema validity verification of the PM verification module 104 refers to that the Schema file pm.xsd of the calling and publishing module performs validity verification on the pm.xml file in the data packet.
PMC code compliance verification means that PMC codes of the equipment are extracted from pm.xml, and PMC length, segmentation and characters used are verified according to the selected standard and version number.
The integrity verification of the resource file refers to verifying whether the pointed data module file and the external file in pm. If the resource location file does not contain the data module file or the external file, the PM module verification is not passed.
The resource location verification module 105 is configured to verify the validity of the resource location file, where the verification content includes a Schema validity verification of the resource location file and a resource entity file integrity verification.
And (3) verifying the validity of the Schema of the resource positioning file, namely, calling the url_map.xsd of the Schema file of the resource positioning file to verify the validity of the url_map.xml file in the data packet.
And verifying the integrity of the resource entity file, namely verifying whether the related resource in the urn_map.xml file exists in the entity file. Specifically, the value of the attribute of the < urn > element [ name ] in the urn_map.xml is extracted according to
Different pairs of values of the < target > element [ nss ] attribute [ name ] adopt different interception modes as query basis of entity file names, and the following inspection is carried out: 1. whether the name of dm has a corresponding entity file under the dm folder or not; 2. icn whether the name has a corresponding entity file under the illustration folder; 3. pmc, if there is a corresponding entity file under the file folder. If the entity file is missing, displaying an entity file missing list for the user, and checking the entity file missing list not to pass.
The DM verification module 106 is configured to verify the validity and the integrity of all the data modules in the resource location, where the verification content includes the Schema validity verification of the DM module and the integrity verification of the DM reference file.
And the Schema validity verification of the DM module refers to the verification of the validity of all DM entity files under the DM folder by calling the corresponding data module Schema from the network according to the [ type ] attribute value describing DM < target > in the url_map.
The integrity verification of the DM reference file refers to verifying whether graphics and multimedia referenced in all data module files under the DM folder are completely described in urn_map.xml or not, and whether graphics and multimedia formats which are not supported by an operation platform exist or not.
Finally, it should be noted that: the foregoing description of the preferred embodiments of the present invention is not intended to be limiting, but rather, although the present invention has been described in detail with reference to the foregoing embodiments, it will be apparent to those skilled in the art that modifications may be made to the embodiments described, or equivalents may be substituted for elements thereof, and any modifications, equivalents, improvements or changes may be made without departing from the spirit and principles of the present invention.