1. Technical Field
The embodiments of the present disclosure relate to management technology, and particularly to a validating system and method. 2. Description of Related Art
A technical file (e.g., a patent application file) may include a plurality of elements (e.g., computers), and each element may be labeled an element name and an element reference number (e.g., a computer 10). At present, the element names and the element reference numbers are manually checked by a user, and the manual check may be very time-consuming. For example, if each element name or each element reference number repetitively appear in the patent application file, the user may take a lot of time to check if all of them are correct. Furthermore, if the file is very long (e.g., fifty pages), it is also difficult for the user to check each element name and each element reference number. Therefore, there is room for improvement in the art.
The disclosure is illustrated by way of examples and not by way of limitation in the figures of the accompanying drawings in which like references indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
In general, the word “module”, as used herein, refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an EPROM. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The reading module 22 reads an element information list 210 from the file 200, generates first element identifiers according to the element information list and temporarily stores the first element identifiers into the storage system 28. In one embodiment, the reading module 22 reads an element name and an element reference number corresponding to the element name from the element information list in order, combines the element name with the element reference number to generate a first element identifier, and stores the first element identifier into the storage system 28. Additionally, if the element name corresponds to two or more element reference numbers, the element name is respectively combined with each corresponding reference number to generate more than one first element identifier.
The validation module 24 validates if each first element identifier in the storage system is the same as a second element identifier corresponding to the first element identifier. Each second element identifier also includes the element name and the element reference number. The second element identifier corresponds to the first element identifier upon the condition that both the second element identifier and the first element identifier include the same element name or the same element reference number. Additionally, each first element identifier may correspond to one or more second element identifiers. In one embodiment, the invention takes one second element identifier corresponding to the first element identifier as an example for description below.
In one embodiment, the second element identifier is generated as follows: obtaining an element name from the first element identifier and calculating a character length of the element reference number corresponding to the obtained element name, searching for the obtained element name in the content of the file, and obtaining characters in the content of the file according to the character length of the element reference number, where the obtained characters are behind and next to the searched element name, combining the searched element name with the obtained characters to generate the second element identifier in the content of the file.
For example, as shown in
In another embodiment, the second element identifier is generated as follows: obtaining an element reference number from the first element identifier and calculating a character length of the element name corresponding to the obtained element reference number, searching for the obtained element reference number in the content of the file, and obtaining the characters in the content of the file according to the character length of the element name, which the obtained characters are prior to and next to the searched element reference number, combining the searched element reference number with the obtained characters to generate the second element identifier in the content of the file.
For example, as shown in
The mark module 26 marks the second element identifier in the content of the file, in response to a determination that the first element identifier is different from the second element identifier corresponding to the first element identifier. In one embodiment, the mark module 26 highlights the second element identifier in the content of the file. For example, if the second element identifier is different from the first element identifier, the mark module 26 highlights the second element identifier in a specific color, such as red, or underlines the second element identifier. The mark module 26 may also output a report to show position information of the second element identifier, thereby users may find the second element identifier in the content of file easily and quickly.
In step S10, the reading module 22 reads an element information list 210 from the file 200, generates first element identifiers according to the element information list and temporarily store the first element identifiers into a storage system 28. As mentioned above, the reading module 22 reads an element name and an element reference number from the element information list in order, and combines the element name with the element reference number corresponding to the element name, and generates a first element identifier, then the first element identifier is stored into the storage system 28. For example, as shown
In step S20, the validation module 24 validates if each first element identifier in the storage system is the same as a second element identifier corresponding to the first element identifier. As mentioned above, if the second element identifier includes the element name A, and the first element identifier also include the same element name A, the element reference number in the second element identifier may be different from the element reference number in the first element identifier, the second element identifier corresponds to the first element identifier. Additionally, if the second element identifier includes the element reference number 1000, and the first element identifier also includes the same element reference number 1000, the element name in the second element identifier may be different from the element name in the first element identifier, the second element identifier also corresponds to the first element identifier. In one embodiment, if the first element identifier in the storage system is different from the second element identifier corresponding to the first element identifier, the procedure goes to step S30. Otherwise, if the first element identifier in the storage system is the same as second element identifier corresponding to the first element identifier, the procedure ends.
In step S30, the mark module 26 marks the second element identifier in the content of the file, in response to a determination that the first element identifier is different from the second element identifier corresponding to the first element identifier. For example, if the second element identifier is different from the first element identifier, the mark module 26 highlights the second element identifier in a specific color, such as red, or underlines the second element identifier. The mark module 26 may also output a report to show position information of the second element identifier, thereby users may find the second element identifier in the content of file easily and quickly.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
2012102986815 | Aug 2012 | CN | national |