Automatic cataloguing method, equipment and storage medium

文档序号:1861744 发布日期:2021-11-19 浏览:27次 中文

阅读说明:本技术 一种自动编目方法、设备及存储介质 (Automatic cataloguing method, equipment and storage medium ) 是由 宋相濡 于 2021-08-23 设计创作,主要内容包括:本发明公开一种自动编目方法、设备及存储介质,方法包括:获取预设的编目规则,其中,所述编目规则由多个小规则组合而成;对所述编目规则进行解析,获取与所述编目规则对应的函数;获取待编目数据,执行所述函数,根据所述函数对所述待编目数据进行编目,以得到编目文件。本发明编目规则简单灵活,只需一次配置就能长期运行,而且实现了自动化编目,不需要人工介入,不容易出错,效率较高。(The invention discloses an automatic cataloguing method, equipment and a storage medium, wherein the method comprises the following steps: acquiring a preset cataloguing rule, wherein the cataloguing rule is formed by combining a plurality of small rules; analyzing the cataloguing rule to obtain a function corresponding to the cataloguing rule; and acquiring data to be catalogued, executing the function, and cataloguing the data to be catalogued according to the function to obtain a cataloguing file. The invention has simple and flexible cataloging rule, can run for a long time only by once configuration, realizes automatic cataloging, does not need manual intervention, is not easy to make mistakes and has higher efficiency.)

1. An automatic cataloguing method, comprising the steps of:

acquiring a preset cataloguing rule, wherein the cataloguing rule is formed by combining a plurality of small rules;

analyzing the cataloguing rule to obtain a function corresponding to the cataloguing rule;

and acquiring data to be catalogued, executing the function, and cataloguing the data to be catalogued according to the function to obtain a cataloguing file.

2. The automated cataloging method of claim 1, wherein said cataloging rules comprise fixed rules and custom rules.

3. The automated cataloging method of claim 1, wherein said custom rules comprise at least a collection of places rule and a book number rule.

4. The automatic cataloging method of claim 1, wherein said parsing said cataloging rule to obtain a function corresponding to said cataloging rule specifically comprises:

parsing the cataloguing rules into a plurality of texts corresponding to small rules;

identifying each text, and screening out rules corresponding to the texts which cannot be identified;

matching the remaining screened texts in sequence by adopting a preset function library, and adding functions corresponding to the successfully matched texts into an execution queue;

the functions in the execution queue are prioritized.

5. The auto-cataloging method of claim 4, wherein said execution queue is a FIFO queue.

6. The automatic cataloging method of claim 4, wherein said prioritizing the functions in the execution queue is specifically:

and checking whether the sequence of the functions in the execution queue is correct, and if not, reordering the functions in the execution queue.

7. The automated cataloging method of claim 1, wherein said data to be cataloged is in one of an ISO format, a TXT format, or an EXCEL format.

8. The automated cataloging method of claim 1, further comprising:

and checking the catalogued files, and packaging the catalogued files when the catalogued files are correct.

9. An automatic cataloging apparatus, comprising: a processor and a memory;

the memory has stored thereon a computer readable program executable by the processor;

the processor, when executing the computer readable program, implements the steps in the auto-cataloguing method of any one of claims 1-8.

10. A computer readable storage medium, storing one or more programs, which are executable by one or more processors, to implement the steps in the auto-cataloguing method of any one of claims 1-8.

Technical Field

The invention relates to the technical field of book cataloging, in particular to an automatic cataloging method, automatic cataloging equipment and a storage medium.

Background

Cataloguing is the electronization process of a library for books, cataloguing software is a data processing system for processing the cataloguing business of library documents by using an electronic computer, and the requirements for cataloguing data are different due to different customers (schools and libraries). The rules used by each customer (school, library) require different requirements and the inventory data required is often diverse.

At present, most cataloguing works are complicated in process, cataloguing requirements of various libraries are inconsistent, and because books are increasingly complicated in classification and the subjects are more crossed, the cataloguing complexity is gradually improved, and most cataloguing software cannot meet the requirements.

MARC (machine readable catalog) data appears to be normative and varies from one to another, and once a problem occurs, a great deal of manpower is required to perform cataloging and revising.

The cataloging software on the market does not really realize automation, but carries out cataloging work in a semi-manual and semi-automatic mode, thereby being easy to make mistakes and having low efficiency.

Disclosure of Invention

The invention aims to overcome the technical defects, provides an automatic cataloguing method, equipment and a storage medium, and solves the technical problems of complicated cataloguing and low efficiency in the prior art.

In order to achieve the technical purpose, the invention adopts the following technical scheme:

in a first aspect, the present invention provides an automatic cataloguing method, comprising the steps of:

acquiring a preset cataloguing rule, wherein the cataloguing rule is formed by combining a plurality of small rules;

analyzing the cataloguing rule to obtain a function corresponding to the cataloguing rule;

and acquiring data to be catalogued, executing the function, and cataloguing the data to be catalogued according to the function to obtain a cataloguing file.

Preferably, in the automatic cataloging method, the cataloging rules include fixed rules and custom rules.

Preferably, in the automatic cataloging method, the user-defined rules at least include a collection place rule and a book number search rule.

Preferably, in the automatic cataloguing method, the analyzing the cataloguing rule to obtain a function corresponding to the cataloguing rule specifically includes:

parsing the cataloguing rules into a plurality of texts corresponding to small rules;

identifying each text, and screening out rules corresponding to the texts which cannot be identified;

matching the remaining screened texts in sequence by adopting a preset function library, and adding functions corresponding to the successfully matched texts into an execution queue;

the functions in the execution queue are prioritized.

Preferably, in the automatic cataloging method, the execution queue is an F FO queue.

Preferably, in the automatic cataloging method, the prioritizing the functions in the execution queue specifically includes:

and checking whether the sequence of the functions in the execution queue is correct, and if not, reordering the functions in the execution queue.

Preferably, in the automatic cataloging method, the data to be cataloged is in one of an I SO format, a TXT format, or an EXCEL format.

Preferably, the automatic cataloging method further comprises:

and checking the catalogued files, and packaging the catalogued files when the catalogued files are correct.

In a second aspect, the present invention also provides an automatic cataloguing apparatus comprising: a processor and a memory;

the memory has stored thereon a computer readable program executable by the processor;

the processor, when executing the computer readable program, implements the steps in the auto-cataloguing method as described above.

In a third aspect, the present invention also provides a computer readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the automatic cataloging method as described above.

Compared with the prior art, in the automatic cataloging method, the automatic cataloging equipment and the storage medium, the cataloging rule is formed by combining a plurality of small rules, so that the cataloging rule is decoupled, the granularity is refined, the cataloging rule can be conveniently configured, the cataloging rule is simply and flexibly cataloged according to the rule after the small rules are combined into one large rule, and the long-term operation can be realized only by once configuration. After the rule configuration is completed, the obtained data to be cataloged can be cataloged by analyzing the rule into the corresponding function and executing the function, the steps are simple, automatic cataloging is realized, manual intervention is not needed, errors are not easy to occur, and the efficiency is high.

Drawings

FIG. 1 is a flow chart of a preferred embodiment of an automatic cataloging method provided by the present invention;

FIG. 2 is a diagram of the operating environment of the preferred embodiment of the auto-catalog of the present invention.

Detailed Description

In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention is described in further detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.

Referring to fig. 1, an automatic cataloging method according to an embodiment of the present invention includes the following steps:

s100, acquiring a preset cataloguing rule, wherein the cataloguing rule is formed by combining a plurality of small rules;

s200, analyzing the cataloguing rule to obtain a function corresponding to the cataloguing rule;

s300, obtaining data to be catalogued, executing the function, and cataloguing the data to be catalogued according to the function to obtain a cataloguing file.

In the embodiment, the cataloging rule is set firstly, wherein the cataloging rule is formed by combining a plurality of small rules, so that the cataloging rule is decoupled and granularity is refined, the cataloging rule can be conveniently configured, and after the small rules are combined into one large rule, the cataloging is performed according to the rule, so that the cataloging rule is simple and flexible, and can be operated for a long time only by one-time configuration. After the rule configuration is completed, the obtained data to be cataloged can be cataloged by analyzing the rule into the corresponding function and executing the function, the steps are simple, automatic cataloging is realized, manual intervention is not needed, errors are not easy to occur, and the efficiency is high.

In a preferred embodiment, in step S100, the cataloging rules include fixed rules and customized rules, and the customized rules include at least a collection place rule and a book number rule.

Specifically, the fixed rule is a rule built in a program, is in a hard coding mode, and is mostly a rule required in the library cataloging process. The custom rule is an autonomously defined DSL language. When the user-defined rule is set, the browser is opened and logged in, and then the rule name is input, and the museum place rule and the book searching number rule are set.

In this embodiment, when carrying out collection ground rule setting, at the display interface, the selectable option includes classification number, classification number + duplicate, bar code number + duplicate, whether covers the collection ground of having distributed, wherein, whether covers the collection ground option of having distributed, defaults and does not cover the duplicate of having distributed collection ground, of course, if not distribute collection ground, also can not select the option. The category number option is assigned according to the relationship between the category number and the collection place, for example: the three kingdom performance belongs to the i 11 classification, and when the classification number distribution rule is set, books of the i 11 classification are uniformly distributed to the A collection place, so that the three kingdom performance is correspondingly distributed to the A collection place. The category number + copy option is assigned according to the relationship between the matching category number and the copy configured under the matching category number and the collection place, for example: the three kingdoms rehearsal belongs to the i 11 classification, the copy to be distributed is 5, when the classification number + copy rule is set, 2 copies of the book with the i 11 classification number are distributed to the collection place A, and the other 3 copies are distributed to the collection place B; the books in the three kingdoms profession are correspondingly allocated according to this rule. The bar number + copy option indicates that the collection is allocated in a one-to-one correspondence in order of the bar numbers from small to large, such as: the number of copies of the rehearsal of the three kingdoms is 3, the bar code number is "001,002,003" in proper order, and when setting up the bar code number + duplicate allocation rule, the collection place that sets up the duplicate to be 3 is in proper order: a museum collection ground, a museum collection ground and a museum collection ground; then the three kingdoms rehearsal site with 3 copies is:

001-in the collection of the library A002-in the collection of the library A003-in the collection of the library B.

It should be noted that, if the to-be-allocated copies have a number shortage, the copies with the bar code numbers are preferentially allocated according to the sequence of the bar code numbers, and the copies without the bar code numbers are not allocated to the museum; if the set museum area is smaller than the number of copies to be distributed, the set museum area is distributed first, and the rest copies are not distributed to the museum area. When the option of whether the collection is covered is set to be 'yes', the file to be distributed is uniformly executed according to the collection distribution rule of the time no matter whether the collection is distributed before, and the collection distributed to the collection is covered by a new rule.

Furthermore, when the book number searching rule is set, the book number searching rule setting page is entered, and the book number searching rule can be set in a user-defined mode after the book number searching rule is entered, and the rule can be set through four modes of classification number + type number, classification number + author number (pinyin), classification number + author number (quadrangle code) or classification number + general author number. Specifically, when the classification number + the seed number is set, the file type can be set by a file importing mode, the TXT and the Excel are supported, in addition, a provided template file can be downloaded on a page, the page can be imported after the content is written in the template, the file can be repeatedly imported, and the imported file can be downloaded after being stored on a server. When the classification number + the seed number is set, the seed number of the import file that must be imported for the first time is large, for example, the seed number of the import for the first time is 1, and the seed number of the import file must be larger than 1 for the second time. The method of setting classification number + author number (pinyin), classification number + author number (quadrangle code) or classification number + general author number is similar to the method of setting classification number + secondary number, and is not repeated herein.

And after the setting of the cataloguing rule is finished, cataloguing the data to be cataloguing according to the cataloguing rule.

In a preferred embodiment, the step S200 specifically includes;

parsing the cataloguing rules into a plurality of texts corresponding to small rules;

identifying each text, and screening out rules corresponding to the texts which cannot be identified;

matching the remaining screened texts in sequence by adopting a preset function library, and adding functions corresponding to the successfully matched texts into an execution queue;

the functions in the execution queue are prioritized.

In this embodiment, the rule engine may first analyze the rules set in the library, analyze the cataloguing rules into a text form, enter a one-way channel, throw out the rules that cannot be identified, then enter a back-end listener, match in a function library of the cataloguing rules, match the rules corresponding to the text, and push the rules into an execution queue successfully matched, where the queue is FIFO (first in first out). When the execution queue is reached, the execution queue is sorted by the priority resolver, so that disorder in rule execution is avoided. The function of the fixed rule is in a character string form, a Class (Class) is obtained through reflection in Java, and finally the catalogues are processed successively through a Class method to obtain catalogues and texts. The self-defined rule firstly compiles a source code in a memory, then transfers the source code into a JVM, and runs through the JVM.

In a preferred embodiment, the execution base pair is an FIFO queue, and a first-in first-out mode is adopted, so that the sequential execution of each function can be ensured, and disorder during cataloguing is avoided.

In a preferred embodiment, the prioritizing the functions in the execution queue specifically includes:

and checking whether the sequence of the functions in the execution queue is correct, and if not, reordering the functions in the execution queue.

In this embodiment, the analysis is performed by a priority analyzer, which mainly checks whether the rule meets the specification and whether the sequence is correct, and reorders the functions. The specific way for judging whether the sequence is correct is as follows: when the execution of the latter function does not interfere with the execution result of the former function, the judgment sequence is correct, otherwise, the judgment sequence is incorrect and needs to be reordered, and the execution result of the former function is not interfered until the execution of the latter function.

In a preferred embodiment, in step S300, the data to be cataloged is in one of ISO format, TXT format or EXCEL format. The TXT format requires complete MARC information, the EXCEL format requires header ISBN, duplicate, or a bar code number, or only ISBN. And on the display interface, the data to be catalogued can be imported into the system only by clicking the imported data, so that the method is simple and convenient.

In a preferred embodiment, the automatic cataloging method further comprises:

and checking the catalogued files, and packaging the catalogued files when the catalogued files are correct.

In this embodiment, in order to ensure the accuracy of the cataloguing result, the cataloguing file needs to be checked, specifically, whether the editing result in the cataloguing file is repeated or the cataloguing condition is checked, if not, the checking is passed, at this time, the cataloguing file can be packaged to generate an ISO package, and the ISO package can be archived, printed with a label, and the like on a display interface.

The automatic cataloging method provided by the embodiment of the invention is simple and flexible to operate, has few steps, can be used without configuration if the cataloging rules are configured before, is easy for people familiar with cataloging to use, and can be used stably for a long time by one-time configuration. In addition, now, basically all cataloging systems are developed based on the window system, and our cataloging programs can be integrated in different programs across the system, and in our products, the cataloging programs are integrated in a back-end Java program, and users can directly operate on a browser. And moreover, automatic cataloging can be realized, manual intervention is not needed in most of the time, compared with the semi-manual and semi-automatic mode of the conventional cataloging software, the method is not easy to make mistakes, and the efficiency is higher.

As shown in fig. 2, based on the above automatic cataloguing method, the present invention further provides an automatic cataloguing apparatus, which may be a mobile terminal, a desktop computer, a notebook, a palm computer, a server, or other computing apparatuses. The auto-cataloging apparatus includes a processor 10, a memory 20, and a display 30. Fig. 2 shows only some of the components of the auto-catalog apparatus, but it is to be understood that not all of the shown components are required to be implemented, and that more or fewer components may be implemented instead.

The memory 20 may in some embodiments be an internal storage unit of the auto-cataloging device, such as a hard disk or a memory of the auto-cataloging device. The memory 20 may also be an external storage device of the automatic cataloging apparatus in other embodiments, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), etc. provided on the automatic cataloging apparatus. Further, the memory 20 may also include both an internal storage unit of the auto-catalog apparatus and an external storage apparatus. The memory 20 is used for storing application software installed in the automatic cataloging equipment and various types of data, such as program codes of the automatic cataloging equipment. The memory 20 may also be used to temporarily store data that has been output or is to be output. In one embodiment, the memory 20 stores an auto-cataloguing program 40, and the auto-cataloguing program 40 is executable by the processor 10 to implement the auto-cataloguing method of the embodiments of the present application.

The processor 10 may be, in some embodiments, a Central Processing Unit (CPU), microprocessor or other data Processing chip for executing program codes stored in the memory 20 or Processing data, such as executing the auto-cataloging method.

The display 30 may be an LED display, a liquid crystal display, a touch-sensitive liquid crystal display, an OLED (Organic Light-Emitting Diode) touch panel, or the like in some embodiments. The display 30 is used for displaying information at the automatic cataloging apparatus and for displaying a visual user interface. The components 10-30 of the automatic inventorizing device communicate with each other via a system bus.

In an embodiment, the steps in the automatic cataloging method described above are implemented when processor 10 executes automatic cataloging program 40 in memory 20.

In summary, in the automatic cataloging method, the automatic cataloging equipment and the storage medium provided by the invention, the cataloging rule is formed by combining a plurality of small rules, so that the cataloging rule is decoupled, the granularity is refined, the cataloging rule can be conveniently configured, the cataloging rule is simply and flexibly cataloged according to the rule after the plurality of small rules are combined into one large rule, and the long-term operation can be realized only by once configuration. After the rule configuration is completed, the obtained data to be cataloged can be cataloged by analyzing the rule into the corresponding function and executing the function, the steps are simple, automatic cataloging is realized, manual intervention is not needed, errors are not easy to occur, and the efficiency is high.

The above-described embodiments of the present invention should not be construed as limiting the scope of the present invention. Any other corresponding changes and modifications made according to the technical idea of the present invention should be included in the protection scope of the claims of the present invention.

8页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:文本标注方法、装置、设备及介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!